haxeui / raylib-haxe

RayLib extern bindings for Haxe
MIT License
34 stars 4 forks source link

Build Error: Can't find glfw #2

Open felipetesc opened 2 years ago

felipetesc commented 2 years ago

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 https://github.com/haxeui/raylib-haxe/issues/1#issue-1348205870
  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

felipetesc commented 2 years ago

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

ianharrigan commented 2 years ago

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