Giter Club home page Giter Club logo

Comments (35)

ruby0x1 avatar ruby0x1 commented on August 17, 2024

Currently haxe 3.2.0/3.2.1 is the stable release, and known to work great.
You wouldn't happen to be running on the 3.3 RC preview builds of haxe? (haxe -version)

EDIT: I see the version in the log my bad.

That error is coming from neko, how did you install haxe?

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

That'd make sense; I have 3.1.3.

It was the default version in NixOs. I'll see if I can upgrade.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

I got haxe upgraded to 3.2; now I'm getting this bug.

flow / 1.0.0-alpha.2 (node.js v5.12.0)
flow / target is linux ( arch 64 )
flow / build only
flow / haxe version 3.2.0

flow / build - luxe.draw 1.0.0 for linux
flow / build - running haxe ...
--macro:1: character 0 : Could not parse `snow.Set.main("luxe.Engine")--macro snow.Set.ident("co
m.luxeengine.testdraw")--macro snow.Set.config("config.json")`                                  --macro:1: character 0 : Missing ;

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Seems like snow.hxml didn't have new lines before each --macro. After adding those and running haxe bin/linux64.build/blind.hxml, it seems to build fine. Not sure where I can make flow do that by default.

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

That's the strangest thing, the hxml is generated from this file and the newlines should be in there once templated across.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Just came across that file. What exactly is doing the templating? Could it be some weird linux edge case?

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

flow runs on a bundled node.js version, with the same code across all targets. It uses handlebars (mustache templates) but, it's also worked all along on my linux builds on ubuntu/mint distros.
I can't imagine what would make it remove a new line character, that seems pretty peculiar.

(thanks for digging btw, it's definitely an abnormal situation so far)

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Ah, I may know what's going on. The bundled node.js binaries weren't working for me, so I quickly modified the flow run script to use my system's node (v5.12.0). What node version is bundled?

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

here's mine on osx for reference, with it's contents untouched. This is what it should be getting in the default configuration, with regards to new lines .

--macro snow.Set.main("luxe.Engine")
--macro snow.Set.ident("com.luxeengine.testdraw")

--macro snow.Set.config("config.json")


The one bundled is node.js v0.12.7, although their versioning is a bit insane lately. I don't think that would affect newlines of files moved across but who knows?

Here is where the templating and file copy happens with these.

There's no build step for flow, so just poking at the js will change it's behavior directly.
Note you can run flow build --log 4 for way more information on what it's doing.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

I should hope it wouldn't, but then again, it is node, and stranger things have happened.

Thanks for all the help.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Doesn't look like I can submit .patch files to GH issues. Oh well, long story short, removing the ~'s worked.

diff --git a/flow/build/snow.hxml b/flow/build/snow.hxml
index 37a0f7d..4ca3a39 100644
--- a/flow/build/snow.hxml
+++ b/flow/build/snow.hxml
@@ -1,20 +1,20 @@
-{{#if snow.main~}}
+{{#if snow.main}}
 --macro snow.Set.main("{{{toString snow.main}}}")
-{{~else~}}
+{{else}}
 --macro snow.Set.main("{{{toString project.app.main}}}")
-{{~/if}}
-{{#if project.app.package~}}
+{{/if}}
+{{#if project.app.package}}
 --macro snow.Set.ident("{{{toString project.app.package}}}")
-{{~/if}}
-{{#if snow.config.log~}}
+{{/if}}
+{{#if snow.config.log}}
 --macro snow.api.Debug.level({{{snow.config.log}}})
-{{~/if}}
-{{#if snow.config.config_path~}}
+{{/if}}
+{{#if snow.config.config_path}}
 --macro snow.Set.config("{{{toString snow.config.config_path}}}")
-{{~/if}}
-{{#if snow.runtime~}}
+{{/if}}
+{{#if snow.runtime}}
 --macro snow.Set.runtime("{{{toString snow.runtime}}}")
-{{~/if}}
-{{#if snow.audio~}}
+{{/if}}
+{{#if snow.audio}}
 --macro snow.Set.audio("{{{toString snow.audio}}}")
-{{~/if}}
+{{/if}}

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

Well, that will change how whitespace is handled, but it doesn't explain why it works consistently across windows, mac, and my other linux distros! I suspect you wouldn't need to eradicate all of them either, but it's hard to know what is causing the discrepancy here at the root of the delta.

As long as you can move on and aren't roadblocked, I'm happy

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Yeah, it's definitely a strange one. Anywho, this fix works for me for now. I guess we'll see if anyone else runs into it in the future.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Any ideas on this one?

The file it's looking for linux64.build/cpp/obj/linux64/__pch/haxe/hxcpp.h doesn't exist, but hxcpp.h.gch does.

flow / 1.0.0-alpha.2 (node.js v5.12.0)
flow / target is linux ( arch 64 )
flow / haxe version 3.2.0

flow / build - luxe.draw 1.0.0 for linux
flow / build - running haxe ...
flow / build - running hxcpp for arch 64 ...
Creating /home/garrett/draw/bin/linux64.build/cpp/obj/linux64/__pch/haxe/hxcpp.h.gch...
 - Compiling group 'haxe' with flags -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//lib/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS(haxe) -DHXCPP_API_LEVEL=321(haxe) -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,3,49/include tags=[haxe,static]
 - Compile : src/snow/systems/io/IO.cpp
 - Compile : src/snow/systems/audio/Audio.cpp
 - Compile : src/snow/systems/audio/AudioSource.cpp
 - Compile : src/snow/systems/audio/AudioInstance.cpp
Error: While running :g++ -I/home/garrett/draw/bin/linux64.build/cpp/obj/linux64/__pch/haxe -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//lib/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,3,49/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/systems/io/IO.cpp -o/home/garrett/draw/bin/linux64.build/cpp/obj/linux64/b41f00c5_IO.o
In file included from include/snow/core/native/io/IO.h:11:0,
                 from ./src/snow/systems/io/IO.cpp:43:
/usr/lib/haxe/lib/linc_sdl/git//linc/linc_sdl.h:6:19: fatal error: /home/garrett/draw/bin/linux64.build/cpp/obj/linux64/__pch/haxe/hxcpp.h: No such file or directory
compilation terminated.
flow / 
 build - stopping because of errors in hxcpp compile, while building arch 64

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

eugh, I think it's backwards incompatibility with the latest hxcpp version. I hope @hughsando has at least been getting/addressing the reports since it's been a while still.

Try haxelib install hxcpp 3.2.205 it's the latest 3.2.x aligned release before 3.3.0rc.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Well, that got it further...

» flow run
flow / 1.0.0-alpha.2 (node.js v5.12.0)
flow / target is linux ( arch 64 )
flow / haxe version 3.2.0

flow / build - luxe.draw 1.0.0 for linux
flow / build - running haxe ...
flow / build - running hxcpp for arch 64 ...
g++ -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//lib/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,2,205/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/modules/openal/ALSound.cpp -o/home/garrett/draw/bin/linux64.build/cpp/obj/linux64/9d017f78_ALSound.o
g++ -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//lib/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,2,205/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/modules/sdl/Runtime.cpp -o/home/garrett/draw/bin/linux64.build/cpp/obj/linux64/7cc13b40_Runtime.o
g++ -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//lib/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,2,205/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/core/native/io/IO.cpp -o/home/garrett/draw/bin/linux64.build/cpp/obj/linux64/4982671b_IO.o
g++ -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//lib/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,2,205/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/modules/interfaces/IO.cpp -o/home/garrett/draw/bin/linux64.build/cpp/obj/linux64/af4c4889_IO.o
Error: In file included from ./src/snow/modules/sdl/Runtime.cpp:4:0:
/usr/lib/haxe/lib/linc_opengl/git//linc/linc_glew.h:4:41: fatal error: ../lib/glew/include/GL/glew.h: No such file or directory
compilation terminated.
flow / 
 build - stopping because of errors in hxcpp compile, while building arch 64

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

Looks like you don't have the cloned linc dependencies with their necessary submodules. Did you use snowfall?

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Yeah, used snowfall

seems like linc_glew is properly installed

haxelib list

flow: git [dev:/usr/lib/haxe/lib/flow/git]
heaps: git [dev:/usr/lib/haxe/lib/heaps/git]
hxcpp: [3.2.205]
hxDaedalus: [0.0.2]
hxjava: [3.2.0]
hxPixels: git [dev:/usr/lib/haxe/lib/hxPixels/git]
hxsdl: git [dev:/usr/lib/haxe/lib/hxsdl/git]
kha: git [dev:/usr/lib/haxe/lib/kha/git]
linc_glew: git [dev:/usr/lib/haxe/lib/linc_glew/git]
linc_modiqus: git [dev:/usr/lib/haxe/lib/linc_modiqus/git]
linc_ogg: git [dev:/usr/lib/haxe/lib/linc_ogg/git]
linc_openal: git [dev:/usr/lib/haxe/lib/linc_openal/git]
linc_opengl: git [dev:/usr/lib/haxe/lib/linc_opengl/git]
linc_sdl: git [dev:/usr/lib/haxe/lib/linc_sdl/git]
linc_stb: git [dev:/usr/lib/haxe/lib/linc_stb/git]
linc_timestamp: git [dev:/usr/lib/haxe/lib/linc_timestamp/git]
luxe: git [dev:/usr/lib/haxe/lib/luxe/git]
mint: git [dev:/usr/lib/haxe/lib/mint/git]
snow: git [dev:/usr/lib/haxe/lib/snow/git]
snowfall: [0.0.14]

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

yea but it's the git submodules inside the glew folder it seems to be missing.
In other words,

cd /usr/lib/haxe/lib/linc_glew/git/
git submodule update --init

Inside the folder, the lib folder would be empty without the submodules.
Again, it's strange, since snowfall clones with recursive.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

It's there now, still no luck. Not sure if it was before running submodules update --init.

» tree /usr/lib/haxe/lib/linc_glew/git/lib       /usr/lib/haxe/lib/luxe/git/tests/features/draw
/usr/lib/haxe/lib/linc_glew/git/lib
└── glew
    ├── include
    │   └── GL
    │       ├── glew.h
    │       ├── glxew.h
    │       └── wglew.h
    ├── README.md
    └── src
        └── glew.c

4 directories, 5 files

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

curious, the line for the Runtime.cpp has
-I/usr/lib/haxe/lib/linc_opengl/git//lib/glew/include/
So it should be finding it, unless the duplicate slash is somehow an issue?

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

hold on, linc_glew != linc_opengl, where is linc_glew getting in from, it's not a dependency (since linc_opengl includes glew)

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

I vaguely remember installing some sort of linc_ manually. (Using haxelib git) Removing linc_glew doesn't change anything.

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

Yea I seem to have confused myself, it's getting the linc_glew file from linc_opengl it's the subsequent header it can't find.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Yeah, I guess it's GL/glu.h that can't be found?

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

no I don't think it's that, ../lib/glew/include/GL/glew.h: No such file or directory is the exact error, relative to linc_opengl/linc/linc_glew.h it can't find that

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Alright, could it be caused by the double /?

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

You can remove the slash here and test.

<compilerflag value='-I${LINC_OPENGL_PATH}lib/glew/include/'/>
It's the one after the }

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Hmm, doesn't seem to have any effect on the error.

flow / build - running hxcpp for arch 64 ...
g++ -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//aardvark/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,2,205/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/modules/sdl/Runtime.cpp -o/usr/lib/haxe/lib/luxe/git/tests/features/draw/bin/linux64.build/cpp/obj/linux64/7cc13b40_Runtime.o
g++ -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//aardvark/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,2,205/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/api/buffers/_ArrayBuffer/ArrayBuffer_Impl_.cpp -o/usr/lib/haxe/lib/luxe/git/tests/features/draw/bin/linux64.build/cpp/obj/linux64/272b13fd_ArrayBuffer_Impl_.o
g++ -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//aardvark/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,2,205/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/api/Timer.cpp -o/usr/lib/haxe/lib/luxe/git/tests/features/draw/bin/linux64.build/cpp/obj/linux64/dc68e609_Timer.o
g++ -Iinclude -I/usr/lib/haxe/lib/linc_ogg/git//lib/ -I/usr/lib/haxe/lib/linc_ogg/git//linc/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//ogg/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//vorbis/include/ -I/usr/lib/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -I/usr/lib/haxe/lib/linc_openal/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//linc/ -I/usr/lib/haxe/lib/linc_opengl/git//aardvark/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -I/usr/lib/haxe/lib/linc_sdl/git//linc/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/ -I/usr/lib/haxe/lib/linc_sdl/git//lib/sdl/include/configs/linux/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -I/usr/lib/haxe/lib/linc_stb/git//lib/ -I/usr/lib/haxe/lib/linc_stb/git//linc/ -I/usr/lib/haxe/lib/linc_timestamp/git//linc/ -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/usr/lib/haxe/lib/hxcpp/3,2,205/include -x c++ -frtti -Wno-invalid-offsetof ./src/snow/api/buffers/ArrayBufferIO.cpp -o/usr/lib/haxe/lib/luxe/git/tests/features/draw/bin/linux64.build/cpp/obj/linux64/15f28a6e_ArrayBufferIO.o
Error: In file included from /usr/lib/haxe/lib/linc_opengl/git//linc/linc_glew.h:4:0,
                 from ./src/snow/modules/sdl/Runtime.cpp:4:
/usr/lib/haxe/lib/linc_opengl/git//linc/../lib/glew/include/GL/glew.h:1201:24: fatal error: GL/glu.h: No such file or directory
 #    include <GL/glu.h>
                        ^
compilation terminated.
flow / 
 build - stopping because of errors in hxcpp compile, while building arch 64

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

hmm, did you follow all the setup steps in the guide? Steps 4.3:

Linux - some dev libs are required:
libgl1-mesa-dev
libglu1-mesa-dev
And currently OpenAL is required libopenal-dev

(I realize these may not map directly to your distro?)

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Alright, I think I've gotten everything sorted out. Due to my using NixOs, it's a bit more of a hassle.
Anywho, thanks so much for your help!

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

Glad you got sorted.

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

p.s I'd be interested to know what the resolution was for your distro, never hurts to know more about other flavours.

from alpha.

garrett-hopper avatar garrett-hopper commented on August 17, 2024

Well, NixOs is a bit strange. I need to create a proper build environment with the required libraries and such.

For anyone that comes across this, perhaps this will help.

let
  pkgs = import <nixpkgs> {};
  stdenv = pkgs.stdenv;
in rec {
  haxe = stdenv.mkDerivation rec {
    name = "haxe";
    version = "0.1";
    src = ./.;
    buildInputs = [ 
      pkgs.mesa
      pkgs.mesa_glu
      pkgs.xorg.kbproto
      pkgs.xorg.libX11
      pkgs.xorg.libXtst
      pkgs.xorg.libxcb
      pkgs.xorg.xkbutils
      pkgs.xorg.libXext
    ];
  };
}

After a little fiddling and some manual ELF patching, I got the linux build to run. I'll need to create a proper nix build in the future if I decide to go the luxe route.

from alpha.

ruby0x1 avatar ruby0x1 commented on August 17, 2024

Right, I see here it mentions the rewrites for rpath and ld. It's relatively straight forward to specify these directly from your hx file or from flow with additional build xml meta data.

for flow, there is a project.build.hxcpp.includes node handled here which will inject an <include> node into the final build xml. This might allow you to add some linker flags to modify rpath and ld linkage directly configuring gcc (or your compiler) via flags. I say might, in that there may be an order of declarations issue of flags. At the very least, it might allow you to get through that bit quicker and is worth a shot.

The alternative is just the regular @:buildXml meta in a haxe file.

More info about the build xml is around online, but I've been writing up a more detailed guide here. That should elaborate on how to specify the linker flags at build time, specifically here under linker flags section.

from alpha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.