[NME] Mac compilation fails / missing path?

27 views
Skip to first unread message

bjorn...@gmail.com

unread,
May 1, 2013, 8:02:37 AM5/1/13
to haxe...@googlegroups.com
I'm trying to compile the NyanCat demo project on a Mac

* NME version is 3.5.5 / Haxe 2.10
* OSX 10.8.3 (Mountain Lion), XCode 4.6.2 

After installing NME, I installed the mac toolchain and created the NyanCat demo project. 
Compiling to flash or neko works fine, but I received a lot of error messages when I tried the mac target.
After a bit of research, I tried to install the command-line tools for XCode, and this seemed to help. 

But I still receive the following error message: 

haxelib run hxcpp Build.xml haxe -Dactuate -Dcpp -Ddesktop -Dhaxe_208 -Dhaxe_209 -Dhaxe_210 -Dmac -Dnme -Dnme_install_tool -Dswf -Dsys -Dtrue
Creating obj/darwin//__pch/haxe/hxcpp.h.gch...
g
++ -Iinclude -c -fvisibility=hidden -Qunused-arguments -O2 -I/usr/lib/haxe/lib/hxcpp/3,0,0//include -DHX_MACOS -m32 -DHXCPP_VISIT_ALLOCS -Dhaxe_210 -frtti -o obj/darwin//__pch/haxe/hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/3,0,0//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/3,0,0//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/3,0,0//include/hxcpp.h:184:

/usr/lib/haxe/lib/hxcpp/3,0,0//include/Array.h:199:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/3,0,0//include/hx/Object.h: In member function ‘void hx::ObjectPtr<O>::CastPtr(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/3,0,0//include/hx/Object.h:143: error: must #include <typeinfo> before using typeid
/usr/lib/haxe/lib/hxcpp/3,0,0//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/3,0,0//include/Array.h:394: error: ‘stable_sort’ is not a member of ‘std’
/usr/lib/haxe/lib/hxcpp/3,0,0//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/3,0,0//include/Class.h:141: error: must #include <typeinfo> before using typeid
Called from ? line 1
Called from BuildTool.hx line 1470
Called from BuildTool.hx line 673
Called from a C function
Called from BuildTool.hx line 708
Called from BuildTool.hx line 842
Called from BuildTool.hx line 876
Called from BuildTool.hx line 194
Uncaught exception - Error creating pch: 256 - build cancelled

Something tells me I've not set up NME (hxcpp?) to properly point at where the header files are located,
but I'm really a bit clueless as to how this is done. Any and all help would be greatly appreciated!

Thanks!

Reply all
Reply to author
Forward
0 new messages