Skip to content

Instantly share code, notes, and snippets.

@mikewoz
Created August 11, 2010 15:08
Show Gist options
  • Save mikewoz/519121 to your computer and use it in GitHub Desktop.
Save mikewoz/519121 to your computer and use it in GitHub Desktop.
configure static liblo for armv7 & armv7s (iOS6)
./configure \
--host="arm-apple-darwin" \
--enable-static \
--disable-shared \
--disable-dependency-tracking \
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
CPP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-cpp-4.2 \
CXXCPP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-cpp-4.2 \
CXX=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
AR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar \
RANLIB=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib \
NM=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/nm \
CFLAGS="-arch armv7 -arch armv7s -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=5.0 -gdwarf-2 -mthumb -miphoneos-version-min=5.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk" \
LDFLAGS="-arch armv7 -arch armv7s -pipe -std=c99 -gdwarf-2 -mthumb -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk" \
CXXFLAGS="-arch armv7 -arch armv7s -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=5.0 -gdwarf-2 -mthumb -miphoneos-version-min=5.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk"
@mikewoz
Copy link
Author

mikewoz commented Apr 19, 2011

Revision 31cc8a is for iOS 4.3. Use revision a0bc01 for older versions.

@mikewoz
Copy link
Author

mikewoz commented Sep 17, 2011

Okay, and now, I've added revision f1ed3b, which creates a universal build (armv6 + armv7). Note that this requires the --disable-dependency-tracking option. So if you're updating headers, you'll need to do a 'make clean' to ensure that the changes get compiled.

Also, in case you're wondering where to find the library once you've compiled, it's here: src/.libs/liblo.a (that's a hidden folder).

@mikewoz
Copy link
Author

mikewoz commented Sep 24, 2012

Revision 46ad1a is for iOS6 and supports armv7 and armv7s devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment