Mavericks XCode 6 iOS 8.1 compiling postgresql-kit
Running: etc/build-frameworks.sh
Most the parts receive: ** BUILD SUCCEEDED *, but the last part gives me: * BUILD FAILED ** as follows:
=== BUILD AGGREGATE TARGET openssl_ios OF PROJECT postgresql-kit WITH CONFIGURATION Release ===
Check dependencies
PhaseScriptExecution Run\ Script build/postgresql-kit.build/Release/openssl_ios.build/Script-6E83260B17AD15C9002AFCBC.sh cd /Users/dev/Documents/source/postgresql-kit /bin/sh -c /Users/dev/Documents/source/postgresql-kit/build/postgresql-kit.build/Release/openssl_ios.build/Script-6E83260B17AD15C9002AFCBC.sh Making /Users/dev/Documents/source/postgresql-kit/tar/openssl-1.0.1e.tar.gz Assuming already exists: /Users/dev/Documents/source/postgresql-kit/build/Release/openssl-1.0.1e/ios_armv7 Assuming already exists: /Users/dev/Documents/source/postgresql-kit/build/Release/openssl-1.0.1e/ios_armv7s Assuming already exists: /Users/dev/Documents/source/postgresql-kit/build/Release/openssl-1.0.1e/ios_simulator
OpenSSL installed: /Users/dev/Documents/source/postgresql-kit/build/Release/openssl-current
=== BUILD AGGREGATE TARGET libpq_ios OF PROJECT postgresql-kit WITH CONFIGURATION Release ===
Check dependencies
PhaseScriptExecution Run\ Script build/postgresql-kit.build/Release/libpq_ios.build/Script-6E83261217AD15F3002AFCBC.sh
cd /Users/dev/Documents/source/postgresql-kit
/bin/sh -c /Users/dev/Documents/source/postgresql-kit/build/postgresql-kit.build/Release/libpq_ios.build/Script-6E83261217AD15F3002AFCBC.sh
Making /Users/dev/Documents/source/postgresql-kit/tar/postgresql-9.2.4.tar.gz
Output to /Users/dev/Documents/source/postgresql-kit/build/Release
~/Documents/source/postgresql-kit/build/postgresql-kit.build/Release/libpq_ios.build/DerivedSources/postgresql-9.2.4 ~/Documents/source/postgresql-kit
Derived data: /Users/dev/Documents/source/postgresql-kit/build/postgresql-kit.build/Release/libpq_ios.build/DerivedSources
Build to: /Users/dev/Documents/source/postgresql-kit/build/Release/postgresql-9.2.4/ios_armv7
Architecture: armv7
Flags: --host=arm-apple-darwin --enable-thread-safety --without-readline --with-openssl --with-includes=/Users/dev/Documents/source/postgresql-kit/build/Release/openssl-current/include --with-libs=/Users/dev/Documents/source/postgresql-kit/build/Release/openssl-current/lib
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-apple-darwin13.4.0
checking host system type... arm-apple-darwin
checking which template to use... darwin
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for arm-apple-darwin-gcc... /usr/bin/gcc -arch armv7
checking for C compiler default output file name...
configure: error: in /Users/dev/Documents/source/postgresql-kit/build/postgresql-kit.build/Release/libpq_ios.build/DerivedSources/postgresql-9.2.4': configure: error: C compiler cannot create executables Seeconfig.log' for more details.
Makefile:14: ../../../src/Makefile.global: No such file or directory
Makefile:80: /src/Makefile.shlib: No such file or directory
make: *** No rule to make target `/src/Makefile.shlib'. Stop.
** BUILD FAILED **
The following build commands failed: PhaseScriptExecution Run\ Script build/postgresql-kit.build/Release/libpq_ios.build/Script-6E83261217AD15F3002AFCBC.sh (1 failure)
That said there is a libcrypto.a ( OpenSSL 1.0.1e ) file in this folder: /Users/dev/Documents/source/postgresql-kit/build/Release/openssl-current/lib/ accompanied with libssl.a
How can I update this to PostgreSQL 9.4 and OpenSSL 1.0.1j?
Hi! I see the issue is probably due to the targets being 10.8 and 7.0. I'll change them throughout.
MACOSX_DEPLOYMENT_TARGET=10.9 IPHONE_DEPLOYMENT_TARGET=8.1
Certainly, with these lines changed in the build scripts, the following line now works:
etc/make-openssl.sh tar/openssl-1.0.1j.tar.gz /tmp --platform=mac_x86_64
Give me a while and I'll update the project.
I have now completed the first pass for the iOS framework build....you should be able to create the framework PGClientKit_ios.framework now, although I haven't tested this yet in my iOS app. Let me know if this works for you, I still have some work to make it compile for Mac OS X.
Thank you for giving me the information about your progress. I will only develop for Mac OS not IOS in the moment but its good to know that I could
Am 03.01.2015 um 15:07 schrieb David Thorpe [email protected]:
I have now completed the first pass for the iOS framework build....you should be able to create the framework PGClientKit_ios.framework now, although I haven't tested this yet in my iOS app. Let me know if this works for you, I still have some work to make it compile for Mac OS X.
— Reply to this email directly or view it on GitHub https://github.com/djthorpe/postgresql-kit/issues/12#issuecomment-68595960.
It's working for Mac now too, but again, without having the unit tests in place yet I need to do some work to verify that everything is working correctly. I'll tag this up as alpha-006, please let me know if it's working or not for you.
ok But in the moment I am lazy developing
Am 03.01.2015 um 16:00 schrieb David Thorpe [email protected]:
It's working for Mac now too, but again, without having the unit tests in place yet I need to do some work to verify that everything is working correctly. I'll tag this up as alpha-006, please let me know if it's working or not for you.
— Reply to this email directly or view it on GitHub https://github.com/djthorpe/postgresql-kit/issues/12#issuecomment-68597412.
I'll add a separate issue in to deal with the "Missing SDK" errors - I am working with TyrfingMjolnir to see what other build issues can be dealt with and will update this issue when I think the build process is more clear.