Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

boost armv7 build

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

like image 790
Mischa22 Avatar asked Mar 12 '26 02:03

Mischa22


1 Answers

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.

like image 51
Julio Gorgé Avatar answered Mar 13 '26 19:03

Julio Gorgé



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!