我希望您能在我的iOS应用中使用lasem,但是编译lasem需要glib。如何构建它?
我从https://git.gnome.org/browse/glib/refs/tags下载了glib-2.37.4。我使用autogen.sh获取了一个configure文件,运行了make并在Mac上进行了安装。我编写了一个Shell脚本来构建iOS的glib,如下所示:
当我运行这个脚本时,会返回以下结果:
我从https://git.gnome.org/browse/glib/refs/tags下载了glib-2.37.4。我使用autogen.sh获取了一个configure文件,运行了make并在Mac上进行了安装。我编写了一个Shell脚本来构建iOS的glib,如下所示:
export path=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/:$path
export CC=arm-apple-darwin10-llvm-gcc-4.2
export CFLAGS="-arch armv7"
export LDFLAGS="-miphoneos-version-min=2.0"
export LD="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld--disable-cxx"
./configure --prefix=/usr/local/ios/ --host=arm-apple-darwin10 --enable-static=yes --enable-shared=no CC=$CC CFLAGS=$CFLAGS CPP=cpp AR=ar LDFLAGS=$LDFLAGS LD=$LD
当我运行这个脚本时,会返回以下结果:
checking for arm-apple-darwin10-gcc... arm-apple-darwin10-llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/Users/tinyfool/Downloads/glib-2.34.3':
configure: error: C compiler cannot create executables
我能做些什么?