我尝试使用Xcode在Mac OS X上构建带有一些Gstreamer功能的32位i386 dylib库。我需要创建完全32位的i386库,因为我将使用来自Gtk#app的这个库,但我无法使用Xamarin Studio构建64位应用程序。所以我只能构建32位库和32位应用程序。
当我将dylib Xcode项目中的Architectures
项更改为32 bit Intel(i386)
时,我收到错误:
/Library/Frameworks/GStreamer.framework/Versions/1.0/Headers/glibconfig.h:2:10:找不到'i386 / glibconfig.h'文件
由于这个错误,我尝试使用这些args从git源构建glib(我从INSTALL
文件中获取了这个字符串):
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CPP="gcc -E" CXXCPP="g++ -E"
之后我收到了一个错误。 config.log
说:
//...
configure:3858: checking for gcc
configure:3885: result: gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64
configure:4114: checking for C compiler version
configure:4123: gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64 --version >&5
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: powerpc64-apple-darwin14.5.0
Thread model: posix
configure:4134: $? = 0
configure:4123: gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64 -v >&5
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: powerpc64-apple-darwin14.5.0
Thread model: posix
configure:4134: $? = 0
configure:4123: gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64 -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4134: $? = 1
configure:4123: gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64 -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:4134: $? = 1
configure:4154: checking whether the C compiler works
configure:4176: gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64 conftest.c >&5
error: unable to create target: 'No available targets are compatible with this triple, see -version for the available targets.'
1 error generated.
configure:4180: $? = 1
configure:4218: result: no
configure: failed program was:
//...
所以如何解决此问题并在OS X上为i386架构构建glib 或者如何在OS X上构建具有Gstreamer功能的32位i386 dylib库?