haXe Forum > Hxcpp, neash and nme ?
-
Romain Aug 17 at 15:17
Hi,
I'm trying to create a basic iphone project using haxe 2.0.6 (and the update for Leopard because i'm on snow leopard), neash 1.0.3 and nm 2.0.0.
I follow the tutorial of Huge on gamehaxe, but it didn't work out. So I'm now trying to just created a cpp project, following the lesson : http://haxe.org/doc/start/cpp
and the firest one work correctly, but the second one with neash and nme give me this error :
"/usr/lib/haxe/lib/neash/1,0,3/neash/events/MouseEvent.hx:4: characters 0-19 : Class not found : nme.Manager"Here is the compile.hxml :
"-main Simple
-lib nme
-lib neash
-debug
--remap flash:neash
--remap neko:cpp
-cpp cpp"Any idea ?
Regards
-
Romain Aug 17 at 17:55
Finally I found that the new nme 2.0.0 doesn't require neash, so just needed to get new Sample.hx and new remove all neash reference in Complie.hx (except the -flash:neah, becoming -flash:nme)
Now, back to the iPhone, I can build but, when it's linking I get :
" ".objc_class_name_NSBundle", referenced from:literal-pointer
__cls_refs@NSBundle in libSDL.iphonesim.a(SDL_uikitappdelegate.o)
literal-pointer
__cls_refs@NSBundle in nme.iphonesim.a(SurfaceIO.o)
literal-pointer
__cls_refs@NSBundle in nme.iphonesim.a(Sound.o)
".objc_class_name_CAEAGLLayer", referenced from:
literal-pointer
__cls_refs@CAEAGLLayer in nme.iphonesim.a(UIStageView.o)
literal-pointer
__cls_refs@CAEAGLLayer in libSDL.iphonesim.a(SDL_uikitopenglview.o)
".objc_class_name_NSAutoreleasePool", referenced from:
literal-pointer
__cls_refs@NSAutoreleasePool in libSDL.iphonesim.a(SDL_uikitappdelegate.o)
literal-pointer
__cls_refs@NSAutoreleasePool in nme.iphonesim.a(UIStageView.o)
".objc_class_name_NSURL", referenced from:
literal-pointer
__cls_refs@NSURL in nme.iphonesim.a(Sound.o)
".objc_class_name_UIAccelerometer", referenced from:
literal-pointer
__cls_refs@UIAccelerometer in nme.iphonesim.a(UIStageView.o)
literal-pointer
__cls_refs@UIAccelerometer in libSDL.iphonesim.a(SDLUIAccelerationDelegate.o)
".objc_class_name_NSObject", referenced from:
.objc_class_name_SDLUIKitDelegate in libSDL.iphonesim.a(SDL_uikitappdelegate.o)
.objc_class_name_NMEAppDelegate in nme.iphonesim.a(UIStageView.o)
.objc_class_name_SDLUIAccelerationDelegate in libSDL.iphonesim.a(SDLUIAccelerationDelegate.o)
".objc_class_name_NSString", referenced from:
literal-pointer
__cls_refs@NSString in nme.iphonesim.a(SurfaceIO.o)
literal-pointer
__cls_refs@NSString in nme.iphonesim.a(Sound.o)
".objc_class_name_UIWindow", referenced from:
literal-pointer
__cls_refs@UIWindow in nme.iphonesim.a(UIStageView.o)
literal-pointer
__cls_refs@UIWindow in libSDL.iphonesim.a(SDL_uikitwindow.o)
".objc_class_name_NSDictionary", referenced from:
literal-pointer
__cls_refs@NSDictionary in nme.iphonesim.a(UIStageView.o)
literal-pointer
__cls_refs@NSDictionary in libSDL.iphonesim.a(SDL_uikitopenglview.o)
".objc_class_name_NSNumber", referenced from:
literal-pointer
__cls_refs@NSNumber in nme.iphonesim.a(UIStageView.o)
literal-pointer
__cls_refs@NSNumber in libSDL.iphonesim.a(SDL_uikitopenglview.o)
".objc_class_name_NSFileManager", referenced from:
literal-pointer
__cls_refs@NSFileManager in libSDL.iphonesim.a(SDL_uikitappdelegate.o)
".objc_class_name_UIScreen", referenced from:
literal-pointer
__cls_refs@UIScreen in nme.iphonesim.a(UIStageView.o)
literal-pointer
__cls_refs@UIScreen in libSDL.iphonesim.a(SDL_uikitopengles.o)
literal-pointer
__cls_refs@UIScreen in libSDL.iphonesim.a(SDL_uikitwindow.o)
".objc_class_name_UIImage", referenced from:
literal-pointer
__cls_refs@UIImage in nme.iphonesim.a(SurfaceIO.o)
".objc_class_name_UITextField", referenced from:
literal-pointer
__cls_refs@UITextField in nme.iphonesim.a(UIStageView.o)
".objc_class_name_EAGLContext", referenced from:
literal-pointer
__cls_refs@EAGLContext in nme.iphonesim.a(UIStageView.o)
literal-pointer
__cls_refs@EAGLContext in libSDL.iphonesim.a(SDL_uikitopengles.o)
literal-pointer
__cls_refs@EAGLContext in libSDL.iphonesim.a(SDL_uikitopenglview.o)
".objc_class_name_UIViewController", referenced from:
.objc_class_name_UIStageViewController in nme.iphonesim.a(UIStageView.o)
".objc_class_name_UIView", referenced from:
.objc_class_name_UIStageView in nme.iphonesim.a(UIStageView.o)
.objc_class_name_SDL_uikitview in libSDL.iphonesim.a(SDL_uikitview.o)
".objc_class_name_UIApplication", referenced from:
literal-pointer
__cls_refs@UIApplication in libSDL.iphonesim.a(SDL_uikitappdelegate.o)
literal-pointer
__cls_refs@UIApplication in libSDL.iphonesim.a(SDL_uikitwindow.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
"Ideas ?
Regards
-
Romain Aug 19 at 09:04
Finally, I found out that in the compilation command the parameter of -cpp has to be iphoneos and not cpp (ie : -cpp iphoneos instead of -cpp cpp) and SDL lib is not necessary with nme 2, but it still require the libfreetype.iphoneos.a and the framework OpenAL.
It works fine for the device simulation
Huge will certainly commit soon a new version of nme.iphonesimu.a to make it work on simulator.
Regards