2

我一直在尝试在 OSX 10.8.2 http://sourceforge.net/apps/trac/portmedia/wiki/Installing%20portmidi%20on%20Mac上构建 portmidi

无论如何,自述文件告诉我首先使用命令:

 make -f pm_mac/Makefile.osx

但 bash 返回以下错误消息:

 [~/Desktop/portmedia/portmidi]
 DanMoore -> make -f pm_mac/Makefile.osx
 rm -f CMakeCache.txt
 mkdir -p Release
 cd Release; cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
 -- The C compiler identification is GNU 4.2.1
 -- The CXX compiler identification is Clang 4.0.0
 -- Checking whether C compiler has -isysroot
 -- Checking whether C compiler has -isysroot - yes
 -- Checking whether C compiler supports OSX deployment target flag
 -- Checking whether C compiler supports OSX deployment target flag - yes
 -- Check for working C compiler: /usr/bin/gcc
 -- Check for working C compiler: /usr/bin/gcc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - failed
 -- Check for working CXX compiler: /usr/bin/c++
 -- Check for working CXX compiler: /usr/bin/c++ -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - failed
 -- SYSROOT: /Developer/SDKs/MacOSX10.5.sdk
 -- DEFAULT_DEBUG_FLAGS not nil: -g
 -- SYSROOT: /Developer/SDKs/MacOSX10.5.sdk
 -- Configuring done
 -- Generating done
 -- Build files have been written to: /Users/DanMoore/Desktop/portmedia/portmidi/Release
 cd Release; make
 Scanning dependencies of target pmjni
 [  3%] Building C object pm_common/CMakeFiles/pmjni.dir/__/pm_mac/pmmacosxcm.c.o
 llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
 lipo: can't figure out the architecture type of: /var/folders/y4/p_kjk8692z73xy4nhwx6h_100000gn/T//cc73yejt.out
 make[3]: *** [pm_common/CMakeFiles/pmjni.dir/__/pm_mac/pmmacosxcm.c.o] Error 255
 make[2]: *** [pm_common/CMakeFiles/pmjni.dir/all] Error 2
 make[1]: *** [all] Error 2
 make: *** [all] Error 2

我并不期待一个简单的构建,但这些错误对我来说看起来很陌生。谁能解释发生了什么??

我正在尝试为简单的 C 程序呈现一个库文件。(.a 或 .la)

提前感谢任何看的人!

4

0 回答 0