문제

I tried this to build armv7 boost libs:

./bjam toolset=darwin cflags="-fvisibility=default" architecture=arm target-os=iphone macosx-version=iphone-4.1 link=static threading=multi define=_LITTLE_ENDIAN include=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/include/c++/4.2.1/armv7-apple-darwin10 --with-thread --with-date_time

But the lipo -info command told me that the compiled library is armv6, not armv7 lib!

Could anyone please tell me a boost command line to create a libs with armv7

도움이 되었습니까?

해결책

Pass the "-arch armv7" flag to the compiler. In your example, setting architecture=armv7 should probably do the trick.

In any case, armv6 executables can always be run (to the extent of my knowledge) on armv7 CPUs.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top