******
修改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.o
In 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 directory
In 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-iphone
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Fix:
build setting -> basic -> 搜索对应的目录关键字,将之改为正确的路径,这样子可以修复上面的warning。
****
分享到:
相关推荐
Android 反编译工具 for mac
apk反编译for macOS.zip 包含Mac 所用apktool,dex2jar, jd-gui,用于mac系统进行apk反编译
用C语言编译FOR语句,固定句型的编译。程序初学者,欢迎大家指正
Java反编译forMac
编译原理——for循环语句的翻译,LR,四元式,有报告
编译原理课程设计,for循环(简单优先法、输出三地址),代码加课设,功能强,可读性好,程序很小。
自己做的编译原理课程设计,得了优,关于for循环语句编译成四元式
编译时报 Looking for pthread_create - not found 的解决办法 linux gcc 编译时报Looking for pthread_create - not found 其解决办法是...
在mac 上实现android 反编译,拿到图片等资源、源代码等,学习神器。
iperf3_v3.11 for windows 最新编译
该软件用于java的class文件反编译,实测好用,欢迎大家下载,有问题可以留言。。。。。
编译原理 for 条件语句,while 语句的翻译及各种地质输出,大家慢慢找
PCL for Android 编译过程遇到的问题及办法。如有问题请留言
编译技术中,参照C语言,增加对于 for 语句处理
根据调试方式不同,真机和模拟器文件放置路径不同,分别复制对应的Lib文件到以下路径.../Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
4.0.2的编译过的ffmpeg全款so for Android,给有需要的朋友直接学习ffmpeg
Jar 反编译工具 For Windows
APK反编译工具,里面有详细的说明文档,只支持windows平台,不支持MAC和linux.
KEIL for C51编译手册,包含了KEIL对C51单片机的所有编译语法,关键字的使用。。。想学透51单片机看完这本书就够了,设计编译的所有内容,KEIL官方手册