raylib-haxe icon indicating copy to clipboard operation
raylib-haxe copied to clipboard

Build Failure

Open felipetesc opened this issue 3 years ago • 12 comments

Expected Behavior

To build the example contained inside the readme

Current Behavior

Build Failure

Possible Solution

I don't know how to solve this, but perhaps it's related to how Haxe links the source to Windows, and by reading the output it seems a issue related to a missing file: Build.xml

Steps to Reproduce (for bugs)

  1. Open Windows Powershell
  2. Type 'haxe build.hxml
  3. Wait
  4. Read the message
C:\Users\MyUser\Desktop\HashLink\raylib_sample>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/"
Error: Could not find include file "C:/HaxeToolkit/haxe/lib/raylib-haxe/1,1,0/Build.xml"
Error: Build failed

Media

Not aplied

Test app / minimal test case

I've just followed the example from README.md

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 avatar Aug 23 '22 16:08 felipetesc

To fix: I have added Build.xml inside raylib-haxe\1,1,0\lib\raylib
For some reason haxelib command is not installing several files needed to build the project

felipetesc avatar Aug 23 '22 16:08 felipetesc

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

ianharrigan avatar Aug 23 '22 16:08 ianharrigan

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

I fixed all issues after deleting raylib inside C:\HaxeToolkit\haxe\lib\raylib-haxe\1,1,0\ and I copied the folder from github raylib-haxe/tree/main/lib/raylib inside C:\HaxeToolkit\haxe\lib\raylib-haxe\1,1,0\

felipetesc avatar Aug 23 '22 17:08 felipetesc

Cool - so sounds like a bad haxelib release on my part

ianharrigan avatar Aug 23 '22 17:08 ianharrigan

Also facing this issue but the solution above did not fix it for me.

Its-Kenta avatar Nov 15 '22 20:11 Its-Kenta

Have you tried git versions of haxeui-core and haxeui-raylib?

ianharrigan avatar Nov 15 '22 22:11 ianharrigan

I didnt know you need to use haxeui-core? Is there any reason behind that?

Its-Kenta avatar Nov 16 '22 10:11 Its-Kenta

whoops, sorry, not reading correctly AT ALL... i thought this was the haxeui-raylib repo, ntit the raylib-haxe repo. So no, you shouldnt need haxeui at all. So, have you tried using the git version of this lib?

ianharrigan avatar Nov 16 '22 13:11 ianharrigan

My bad as well! I finally realised what was needed. I did so, but I ran into few problems in terms of using it so I shamefully gave up.. Sorry!

Its-Kenta avatar Nov 16 '22 13:11 Its-Kenta

problems compiling? Or problems using?

ianharrigan avatar Nov 16 '22 13:11 ianharrigan

Using really, maybe it's my lack of knowledge in Haxe as of yet. Not sure.

Its-Kenta avatar Nov 16 '22 13:11 Its-Kenta

Right, well, feel free to post any problems you are having here, i might be able to help (or not) :)

Cheers, Ian

ianharrigan avatar Nov 16 '22 13:11 ianharrigan