Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error: Can't find glfw #2

Open
felipetesc opened this issue Aug 23, 2022 · 2 comments
Open

Build Error: Can't find glfw #2

felipetesc opened this issue Aug 23, 2022 · 2 comments

Comments

@felipetesc
Copy link

Expected Behavior

To build hello-world example

Current Behavior

Build failure

Possible Solution

Fix glfw not being downloaded inside raylib/lib/external

Steps to Reproduce (for bugs)

  1. Download library using haxelib install raylib-haxe
  2. Add Build.hxml inside raylib-haxe\1,1,0\lib\raylib\ because it's missing check Build Failure #1 (comment)
  3. Download and extract hello-world from zip at https://github.com/haxeui/raylib-haxe
  4. Open powershell inside hello-world
  5. run haxe build.hxml
  6. Read the output
PS C:\Users\MyUser\Desktop\HashLink\hello-world> haxe build.hxml
haxelib run hxcpp Build.xml haxe -Dhaxe="4.2.5" -Dhaxe3="1" -Dhaxe4="1" -Dhaxe_ver="4.205" -Dhxcpp="4.2.1" -Dhxcpp_api_level="400" -Dhxcpp_smart_strings="1" -Draylib-haxe="1.1.0" -Draylib_haxe="1.1.0" -Dsource_header="Generated by Haxe 4.2.5" -Dstatic="1" -Dtarget.name="cpp" -Dtarget.static="true" -Dtarget.sys="true" -Dtarget.threaded="true" -Dtarget.unicode="true" -Dtarget.utf16="true" -Dutf16="1" -I"src/" -I"C:\\HaxeToolkit\\haxe\\lib\\hxcpp/4,2,1/" -I"C:\\HaxeToolkit\\haxe\\lib\\raylib-haxe/1,1,0/" -I"" -I"C:\\HaxeToolkit\\haxe\\extraLibs/" -I"C:\\HaxeToolkit\\haxe\\std/cpp/_std/" -I"C:\\HaxeToolkit\\haxe\\std/"
Using raylib from: C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib
Using glfw from: C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw
Creating C:/Users/felip/Desktop/HashLink/hello-world/bin/obj/msvc19xp/__pch/haxe/hxcpp.pch...
hxcpp.cpp

Compiling group: haxe
cl.exe -Iinclude -IC:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/include -IC:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib -DSUPPORT_FILEFORMAT_JPG -DSUPPORT_FILEFORMAT_BMP -DSUPPORT_FILEFORMAT_TGA -DPLATFORM_DESKTOP -D_GLFW_WIN32 -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2(optim-std) -Zi(debug) -FdC:\Users\felip\Desktop\HashLink\hello-world\bin\obj/msvc19xp/vc.pdb(debug) -Od(debug) -O2(release) -Os(optim-size) -FS -Oy- -c -EHs -GS- -arch:SSE2 -IC:/HaxeToolkit/haxe/lib/hxcpp/4,2,1/include -DHXCPP_VISIT_ALLOCS(haxe) -DHX_SMART_STRINGS(haxe) -DHXCPP_API_LEVEL=400(haxe) -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -wd4996 ... tags=[haxe,static]
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/osmesa_context.c 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/input.c 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/context.c 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/window.c 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/win32_window.c 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/rcore.c 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/wgl_context.c 
 - src/Main.cpp 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/egl_context.c 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/init.c 
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/rtext.c
 - C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/monitor.c
Error: init.c
c1: fatal error C1083: Cannot open source file: 'C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/init.c': No such file or directory

Error: egl_context.c
c1: fatal error C1083: Cannot open source file: 'C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/external/glfw/src/egl_context.c': No such file or directory

Error: rtext.c
c1: fatal error C1083: Cannot open source file: 'C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/lib/raylib/rtext.c': No such file or directory

Media

Terminal output should help

Test app / minimal test case

Not aplicable

Context

Can't even test the lib

Your Environment

  • Version used: 1,1,0
  • Environment name and version : No
  • Operating System and version (desktop or mobile): Windows 11
  • Link to your project: No
@felipetesc
Copy link
Author

Fix: There are several missing files inside the module which can be downloaded using haxe install:
haxelib install raylib-haxe

@ianharrigan
Copy link
Member

Hmmm, ill check the haxelib install, maybe the zip was bad

@ianharrigan ianharrigan reopened this Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants