Unablde to compile heaps to C++ (native compilation)

192 views
Skip to first unread message

Citiga

unread,
Jul 16, 2017, 6:51:43 AM7/16/17
to Haxe
Hello,

I'm trying to get into haxe game development but currently I've problems to compile my test projects to native c++.
As development ide I'm using HaxeDevelop and installed already the heaps library. This is what I get when trying to compile the project:

Running process: C:\Program Files (x86)\HaxeDevelop\Tools\fdbuild\fdbuild.exe "F:\HaxeProjects\HeapSecondTest\HeapSecondTest.hxproj" -ipc 566a3010-3bdc-4c00-9b29-972485e0259d -version "3.4.2" -compiler "C:\HaxeToolkit\haxe" -notrace -library "C:\Program Files (x86)\HaxeDevelop\Library"
Building HeapSecondTest
haxe  -lib heaps -cp src -cpp F:/HaxeProjects/HeapSecondTest/bin -main Main
C:\HaxeToolkit\haxe\lib\heaps/0,9,0/h3d/impl/GlDriver.hx:101: characters 16-27 : Type not found : Framebuffer
C:\HaxeToolkit\haxe\lib\heaps/0,9,0/h3d/Engine.hx:13: lines 13-370 : Defined in this class
C:\HaxeToolkit\haxe\lib\heaps/0,9,0/h3d/impl/GlDriver.hx:75: characters 16-23 : Type not found : Program
Build halted with errors (haxe.exe).
Done(1)

Can anyone give me a hint what I'm missing here?

Citiga

unread,
Jul 16, 2017, 3:21:44 PM7/16/17
to Haxe
I continued working on my little testproject and added HXSDL to the haxe library pool by entering the following command:

haxelib git https://github.com/ncannasse/hxsdl.git

As stated on the the website of the hxsdl I added the SDL2 files and the glext.h, reloaded my project
and tried compiling. The result is:

Running process: C:\Program Files (x86)\HaxeDevelop\Tools\fdbuild\fdbuild.exe "F:\HaxeProjects\HeapSecondTest\HeapSecondTest.hxproj" -ipc 6a3258cf-b36c-46d6-b092-93e59a949c09 -version "3.4.2" -compiler "C:\HaxeToolkit\haxe" -library "C:\Program Files (x86)\HaxeDevelop\Library"
Building HeapSecondTest
haxe  -debug --each -lib hxsdl -lib heaps -cp src -cpp F:/HaxeProjects/HeapSecondTest/bin -main Main -D resourcePath="res"
C:\HaxeToolkit\haxe\lib\heaps/0,9,0/hxd/Stage.hx:175: characters 22-44 : Module sdl.Window does not define type DisplayMode

Build halted with errors (haxe.exe).
Done(1)

I'm really running out of ideas how to get haxe & heaps working als native compile executable file. I can compile the project als javascript target,
but not as C++. Any help is appreciated ......

Reply all
Reply to author
Forward
0 new messages