ilibjingle 编译 for iphoneSimulator
来源:互联网 发布:浏览器打开淘宝很慢 编辑:程序博客网 时间:2024/06/07 00:30
******
修改main.soncs
mac_env.Replace(CC = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/i686-apple-darwin10-llvm-g++-4.2') # Use my-gcc instead of the default compiler.mac_env.Replace(CXX = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/i686-apple-darwin10-llvm-gcc-4.2') # Use my-gcc instead of the default compiler.
**
mac_env.Replace(CC = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2') # Use my-gcc instead of the default compiler.mac_env.Replace(CXX = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2') # Use my-gcc instead of the default compiler.
**
mac_env.Replace(CC = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2') # Use my-gcc instead of the default compiler.mac_env.Replace(CXX = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2') # Use my-gcc instead of the default compiler.
**
mac_env.Replace(CC = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2') # Use my-gcc instead of the default compiler.mac_env.Replace(CXX = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2') # Use my-gcc instead of the default compiler.
**
*************
修改main.scons的sdk
注意,这里是
'-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk',而不是
否则会出现以下错误:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.oIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/sys/_types.h:33, from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/_types.h:27, from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/string.h:61, from third_party/expat-2.0.1/lib/xmlparse.c:6:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/machine/_types.h:32:25: error: i386/_types.h: No such file or directoryIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/_types.h:27, from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/string.h:61, from third_party/expat-2.0.1/lib/xmlparse.c:6:***************
下面的问题或许会用得到
********
Q: change C language dialect to GNU89 to get rid of asm and inline issues
Xcode 4.2 had finally added support for C++0X:
In the project build settings screen, switch on "All" options.
In the "Build Options" section, set compiler to "Apple LLVM compiler 3.0".
Scroll down to "Apple LLVM Compiler 3.0 - Language" section and set "C++ Language Dialect" to "C++0X" and "C++ Standard Library" to "libc++".
The std::move(), move constructor and R-Value reference are known to work as expected, and I'm testing on the std::thread and std::atomic.
************
Error:
asm("bswap %0" : "=r" (v) : "0" (v));
implicit declaration of function asm is invalid in c99
fix: 修改c dialect 为 GUN89
*********
Error
ld: warning: directory not found for option '-L/ilibjingle/gtalk/libjingle-0.5/talk/build/dbg/lib /ilibjingle/gtalk/libjingle-0.5/talk/third_party/openssl-1.0.0 /ilibjingle/gtalk/libjingle-0.5/talk/third_party/openssl-1.0.0/lib'ld: library not found for -lcrypto-iphoneclang: error: linker command failed with exit code 1 (use -v to see invocation)
Fix:
build setting -> basic -> 搜索对应的目录关键字,将之改为正确的路径,这样子可以修复上面的warning。
****
- ilibjingle 编译 for iphoneSimulator
- ilibjingle 编译 for iphoneSimulator
- iOS xcode编译错误no such product type for the 'iphonesimulator' platform
- 编译ffmpeg for WinCE
- 编译ffmpeg for WinCE
- 编译QT for WinCE
- 编译QT for Windows
- 编译内核for at91sam9260
- 编译bootstrap for arm
- QT for WinCE 编译
- 编译truecrypt for android
- 编译ffmpeg for ios
- 编译vlc for ios
- 编译mod_python for win
- 编译truecrypt for android
- Linphone for iphone 编译
- 编译ffmpeg for iOS
- 编译OpenCV for windows
- ubuntu bash and dash
- 修改andorid开机LOGO及动画
- WebSphere MQ几个特性的应用
- Win7下安装Oracle 10g
- 52_PHP的文件系统操作(一)文件的类型与属性(53)PHP文件处理(二)文件路径及操作和权限
- ilibjingle 编译 for iphoneSimulator
- 如何使用MQ标头动态确定数据处理程序的行为?
- POJ 2828 - Buy Tickets
- 使用Linux(Centos5)来做iSCSI target/Initiator设置
- 如何在java中使用WebSphere MQ?
- 消息队列和信号量
- 编译优化指南
- 前缀方式与后缀方式的识别
- WebSphere ESB入门:创建POJO并发布(一)