port systemc to mac os x
2010-12-25 23:19
337 查看
很遗憾,systemc官方提供的SDK并不能直接在 mac os x 下用 gcc编译链接。
需要做如下 修改 :
1、为configure添加编译环境支持,简单的说,就是修改config/config.sub,加入i686-apple-darwin10编译环境。不同操作系统版本下,这个字串从/usr/bin/*-*-*-gcc-*中可以看出;关键语句如下:
3、在configure、configure.in脚本中添加i686-apple-darwin10的编译器配置:
并修改一个“硬编码”问题:am__api_version="1.6",将1.6修改为aclocal的实际版本号。
2、add #include <sys/typedef.h> in file rc//sysc/kernel/sc_cor_qt.cpp
需要做如下 修改 :
1、为configure添加编译环境支持,简单的说,就是修改config/config.sub,加入i686-apple-darwin10编译环境。不同操作系统版本下,这个字串从/usr/bin/*-*-*-gcc-*中可以看出;关键语句如下:
maybe_os=`echo $1 | sed 's/^/(.*/)-/([^-]*-[^-]*/)$//2/'` #e.g., apple-darwin10 case $maybe_os in linux-gnu*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^/(.*/)-/([^-]*-[^-]*/)$//1/'` ;; apple-*) vendor=apple basic_machine=`echo $1 | sed 's/^/(.*/)-/([^-]*-[^-]*/)$//1/'` # i686 os=`echo $1 | sed 's/.*-/-/'` # -darwin10 ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac
-darwin*) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration /`$1/'system /`$os/' not recognized 1>&2 exit 1 ;; esac
3、在configure、configure.in脚本中添加i686-apple-darwin10的编译器配置:
case "$target" in i[3456789]86-apple-darwin*) case "$CXX_COMP" in CC) EXTRA_CXXFLAGS="" DEBUG_CXXFLAGS="-g" OPT_CXXFLAGS="-O3" TARGET_ARCH="darwin10" AR_TOOL="$CXX -xar -o" CC="$CXX" CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS" ;; c++ | g++) EXTRA_CXXFLAGS="-Wall" DEBUG_CXXFLAGS="-g" OPT_CXXFLAGS="-O3" TARGET_ARCH="darwin10" AR_TOOL="$ar -ruv" CC="$CXX" CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS" ;; *) { { echo "$as_me:2730: error: /"sorry...compiler not supported/"" >&5 echo "$as_me: error: /"sorry...compiler not supported/"" >&2;} { (exit 1); exit 1; }; } ;; esac AS=as QT_ARCH="i686-apple-darwin10" ;;
并修改一个“硬编码”问题:am__api_version="1.6",将1.6修改为aclocal的实际版本号。
2、add #include <sys/typedef.h> in file rc//sysc/kernel/sc_cor_qt.cpp
相关文章推荐
- port systemc to mac os x
- How to Disable System Integrity Protection (rootless) in Mac OS X
- MAC下GDB出现问题-Unable to find Mach task port for process-id 1262: (os/kern) failure (0x5).
- [Guide] Mac OS X Lion: How To Boot A Linux Live System From An USB Drive & How To Update Any OCZ SSD
- How to set the JAVA_HOME variable in Mac OS X – Snow Leopard
- How to add alias on Mac(It's common for most system)
- The guest operating system is not Mac OS X Server.
- portaudio 安装教程(mac OS X系统 + Xcode)
- Mac OS X配置android过程中遇到“R cannot be resolved to a variable”问题的解决
- How To Fix – Mcrypt PHP extension required in Laravel on Mac OS X (No MAMP)
- iOS 如何在苹果电脑上安装svn 服务器(how to install svn server on the computer of mac os x)
- How to Install Apache Tomcat 8 (on Windows, Mac OS X, Ubuntu) and Get Started with Java Servlet Prog
- How to uninstall CUDA driver and toolkit in Mac OS X?
- Updating to SVN 1.8 for Mac OS X 10.10 Yosemite (svn client is too old to work with working copy)
- MacPorts svn Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path:
- How to Run Mac OS X in VirtualBox on Windows
- How to install latest Mac OS X Lion Virtual Machin
- Solve Problem: “Unable to load realm info from SCDynamicStore” on Mac OS X Mavericks 10.9.1
- Mac OS X “to open Eclipse, you need a Java SE 6 runtime”
- System.Net.Mail with SSL to authenticate against port 465