Haxe NME OSX setup issues

124 views
Skip to first unread message

Dave Walker

unread,
Oct 18, 2012, 11:01:13 AM10/18/12
to haxe...@googlegroups.com
I hope someone can help! 

I can build the Actuate_Example for flash, android and html5 OK. When I build for Mac I get this:

$ nme test "Actuate Example.nmml" mac
haxelib run hxcpp Build.xml haxe -Dactuate -Dcpp -Ddesktop -Dhaxe_208 -Dnme -Dnme_install_tool -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/2,08,1//include -DHX_MACOS -m32 -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:14:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:21:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:25:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:188:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:16: error: ‘uint64_t’ does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:198:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Object.h:56: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Object.h:56: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Object.h: In member function ‘void hx::ObjectPtr<O>::CastPtr(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Object.h:140: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:200:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxString.h:20: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxString.h:20: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxString.h: In member function ‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hxString.h:96: error: ‘strcmp’ was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:205:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Anon.h:34: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Anon.h:35: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Anon.h: In static member function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Anon.h:37: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:75: error: ‘size_t’ does not name a type
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:367: error: ‘sort’ is not a member of ‘std’
In file included from /usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:207:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Class.h:117: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,1//include/hxcpp.h:214:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h: In static member function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:465:   instantiated from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Operators.h:238:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:517: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:375:   instantiated from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:528: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:376:   instantiated from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:536: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:537: error: ‘memcpy’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:378:   instantiated from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:370: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:385:   instantiated from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:547: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:386:   instantiated from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,1//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,1//include/Array.h:555: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1152
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 685
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled
Error: Source path "Export/cpp/mac/obj/ApplicationMain" does not exist

I'm running OS X 10.8.2, Xcode 4.5.1 and the current Mac version of Haxe / NME from http://www.haxenme.org/download/ :
actuate: [1.38]
hxcpp: [2.08.1]
jeash: [0.8.7]
nme: [3.2.0]
swf: [1.07]

Thanks!

Dave Walker

unread,
Oct 18, 2012, 11:03:45 AM10/18/12
to haxe...@googlegroups.com
If I upgrade to nme 3.4.3 I get this instead:

/usr/lib/haxe/lib/nme/3,4,3/neash/Loader.hx:9: characters 0-22 : Class not found : sys.io.Process
Export/cpp/mac/haxe/ApplicationMain.hx:39: characters 2-16 : nme.#Lib has no field create
Export/cpp/mac/haxe/ApplicationMain.hx:43: characters 5-32 : nme.#Lib has no field current
Export/cpp/mac/haxe/ApplicationMain.hx:44: characters 5-36 : nme.#Lib has no field current
Export/cpp/mac/haxe/ApplicationMain.hx:64: characters 5-29 : nme.#Lib has no field current
Export/cpp/mac/haxe/ApplicationMain.hx:70: characters 11-27 : nme.#Lib has no field HARDWARE
Export/cpp/mac/haxe/ApplicationMain.hx:71: characters 12-33 : nme.#Lib has no field ALLOW_SHADERS
Export/cpp/mac/haxe/ApplicationMain.hx:72: characters 12-29 : nme.#Lib has no field RESIZABLE
Export/cpp/mac/haxe/ApplicationMain.hx:73: characters 12-30 : nme.#Lib has no field BORDERLESS
Export/cpp/mac/haxe/ApplicationMain.hx:74: characters 12-25 : nme.#Lib has no field VSYNC
Export/cpp/mac/haxe/ApplicationMain.hx:75: characters 12-30 : nme.#Lib has no field FULLSCREEN
Export/cpp/mac/haxe/ApplicationMain.hx:76: characters 13-32 : nme.#Lib has no field HW_AA_HIRES
Export/cpp/mac/haxe/ApplicationMain.hx:77: characters 13-26 : nme.#Lib has no field HW_AA

:(

Achmad Aulia Noorhakim

unread,
Oct 18, 2012, 11:49:20 AM10/18/12
to haxe...@googlegroups.com
Hmmm

1. AFAIK the one on http://www.haxenme.org/download is 3.4.4 (with HaXe 2.10 and HXCPP 2.10.2), are you sure you are using the correct one.
2. Have you tried doing "nme setup mac"
3. Also try creating a simple/blank/hello world NME application before trying out the example(s).

Cheers

Reply all
Reply to author
Forward
0 new messages