iOS中的Gnu科学图书馆 [英] Gnu Scientific Library in iOS
问题描述
如何在iOS应用程序中使用GNU科学图书馆?
How can I use the GNU Scientific Library in an iOS application?
我尝试了以下教程: http://www.os-scientific.org/devel/gslxcode/index.html 。但是这似乎不适用于iOS这种方式,只有OS X。在我使用外部构建系统添加GSL源代码到XCode后,XCode希望构建GSL子项目的目标为OS X SDK而不是iOS SDK。
I tried following this tutorial: http://www.os-scientific.org/devel/gslxcode/index.html. But it seems not to work for iOS this way, only for OS X. After I added the GSL source code to XCode using an "external build system", XCode wants to build the target of that GSL subproject for the OS X SDK instead of the iOS SDK.
推荐答案
好的!对我有用的配置:
Ok! The configuration that worked for me:
sudo ./configure --disable-shared --disable-dependency-tracking
- -host = armv7-apple-darwin10 CFLAGS = - I / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS4.3.sdk / usr / include
-I / Library / iPhone / include -isysroot / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS4.3.sdk
CC =/ Developer / Platforms / iPhoneOS.platform / Developer / usr / bin / arm-apple-darwin10-gcc-4.2。 1
CPP = cpp LDFLAGS = - isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
sudo ./configure --disable-shared --disable-dependency-tracking --host=armv7-apple-darwin10 CFLAGS="-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk" CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1" CPP=cpp LDFLAGS="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk"
这篇关于iOS中的Gnu科学图书馆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!