| Issue 183: | Compiling for iPhone Sim seems to generate HXCPP for armv6 code | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. compile a project using nme test ...nmml ios -simulator
What is the expected output? What do you see instead?
Expected: A running simulator, or at least a XCode project that can be started from XCode to run in the simulator.
Instead:
At the end of the compile:
ld: warning: ignoring file
.../export/iphone/lib/i386/libApplicationMain.a, file was built for archive which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_hxcpp_set_top_of_stack", referenced from:
_main in Main.o
...
Compiling in XCode has the same errors.
At the start of the build I see messages like these:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++ -I. -Iinclude -c -O2 -arch armv6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -miphoneos-version-min=3.0 -fvisibility=hidden -fno-stack-protector -DIPHONE -DIPHONEOS -DSTATIC_LINK -I/Users/tr/tmp/hxcpp-read-only//include -x c++ -fvisibility-inlines-hidden -frtti ./src/haxe/io/Input.cpp -oobj/iphoneos//src/haxe/io/Input.o
Which doesn't seem to be right, because here -arch is armv6. It should be i386, shouldn't it?
But in iphonesim-toolchain.xml arch i386 is defined.
What version of the product are you using? On what operating system?
HXCPP and NME from latest trunk.
Jun 27, 2012
Project Member
#1
gameh...@gmail.com
Status:
WontFix
|