Advertisement
lirva

Untitled

Nov 19th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. 这是我的编译指令:
  2.  
  3. ./configure --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='
  4. gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk --enable-cross-compile --target-os=darwin --cpu=arm1176jzf-s --arch=arm --extra-cflags='-arch armv6 --sysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk' --extra-ldflags='-arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk'
  5.  
  6. 重点是extra flags里面的-sysroot和-isysroot...
  7. 虽然嵌入Xcode 项目还是有问题,但是编译都成功了。
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement