miyabichan / curl-ssl-for-ios Goto Github PK
View Code? Open in Web Editor NEWOpenSSL and cURL libraries for iOS.
OpenSSL and cURL libraries for iOS.
Hey, I am using Xcode 4.3.1 with SDK 5.1. In build-libcurl.sh I changed the SDK version to 5.1 and same with OpenSSL. but I tried to compile it using build-libraries.sh... libcurl.a and other 2 files are not created.. Kindly help me with the same. Thanks
wonhee-ui-Mac-Pro:cURL-SSL-for-iOS mario$ sudo sh build-libraries.sh
Start building libraries.
Using openssl-1.0.0d.tar.gz
Building openssl for iPhoneSimulator 4.3 i386
Please stand by...
Configure openssl for iPhoneSimulator 4.3 i386
Make openssl for iPhoneSimulator 4.3 i386
Using curl-7.21.5.tar.gz
Building libcurl for iPhoneSimulator 4.3 i386
Please stand by...
Configure libcurl for iPhoneSimulator 4.3 i386
Copy libraries to 'lib' directory.
cp: /Users/mario/Documents/cURL-SSL-for-iOS/OpenSSL/libcrypto.a: No such file or directory
cp: /Users/mario/Documents/cURL-SSL-for-iOS/OpenSSL/libssl.a: No such file or directory
cp: /Users/mario/Documents/cURL-SSL-for-iOS/OpenSSL/include/openssl: No such file or directory
cp: /Users/mario/Documents/cURL-SSL-for-iOS/cURL/libcurl.a: No such file or directory
cp: /Users/mario/Documents/cURL-SSL-for-iOS/cURL/include/curl: No such file or directory
Building libraries done.
wonhee-ui-Mac-Pro:cURL-SSL-for-iOS mario$
I'm trying to build cURL from sources for the device (armv7). Here's what I do (part of the build script):
export CC="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/usr/bin/gcc"
export CFLAGS="-arch ${ARCH} -isysroot ${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERS ION}.sdk -I${OPENSSL}/include -L${OPENSSL}"
./configure -prefix=${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk --host=${ARCH}-apple-darwin --disable-shared -with-random=/dev/urandom --with-ssl > "${LOG}" 2>&1
make
make install
make clean
However, make fails with following error:
netrc.c: In function 'Curl_parsenetrc':
netrc.c:90: warning: assignment makes pointer from integer without a cast
netrc.c:95: error: dereferencing pointer to incomplete type
make[2]: *** [libcurl_la-netrc.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
Also, I see errors in config.log like:
configure:5177: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Develope r/usr/bin/gcc -c -arch armv7 -isysroot /Applications/Xcode45-DP1.app/Contents/Developer/Platforms/iPhoneOS.platform/De veloper/SDKs/iPhoneOS5.0.sdk -I/OpenSSL/include -L/OpenSSL conftest.c >&5
conftest.c: In function 'main':
conftest.c:60: error: size of array 'test_array' is negative
configure:5177: $? = 1
configure: failed program was:
| /* confdefs.h */
By the way, this builds and works fine for i386 architecture, i.e., on the iOS simulator.
What can I do to get it to build for the iPhone (armv7)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.