Building Qt 5.3.0 ios with SSL
-
I tried it again with these command, but this time from git:
git clone git://gitorious.org/qt/qt5.git qt5
cd qt5
git checkout stableperl init-repository --no-webkit
OPENSSL_LIBS='-L/Users/DevUser/openssl_IOS/lib -lssl -lcrypto' ./configure -openssl-linked -developer-build -opensource -nomake examples -nomake tests -xplatform macx-ios-clang -confirm-license -debug-and-release -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors -c++11 -platform macx-clang
make -j4
It compiles succesfully but :
The result when i compile the project:
Undefined symbols for architecture armv7:
"std::ios_base::Init::~Init()", referenced from:
__GLOBAL__I_a in libToolAPI-1.6.1.a(AE_AudioPlayerAndRecorder.o)
__GLOBAL__I_a in libTool2API-2.0.1.a(Reader_FskController.o)
__GLOBAL__I_a in libTool2API-2.0.1.a(Reader_WavBuffer.o)
__GLOBAL__I_a in llibToolAPI-1.6.1.a(AE_WavBuffer.o)
__GLOBAL__I_a in libTool2API-2.0.1.aAE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in libToolAPI-1.6.1.a(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in libTool2API-2.0.1.a(AE_ManchesterState.o)
...
"std::ios_base::Init::Init()", referenced from:
__GLOBAL__I_a in libToolAPI-1.6.1.a(AE_AudioPlayerAndRecorder.o)
__GLOBAL__I_a in libTool2API-2.0.1.a(Reader_FskController.o)
__GLOBAL__I_a in libTool2API-2.0.1.a(Reader_WavBuffer.o)
__GLOBAL__I_a in libToolAPI-1.6.1.a(AE_WavBuffer.o)
__GLOBAL__I_a in libTool2API-2.0.1.a(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in llibToolAPI-1.6.1.a(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in libTool2API-2.0.1.a(AE_ManchesterState.o)
...
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)make[1]: *** [iphoneos-release] Error 65
make: *** [release-iphoneos] Error 2
11:52:49: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project Product1 (kit: iphoneos-clang Qt 5.3.0ssl))
When executing step 'Make', it still didnt work :(
-
It seems that it's you are missing a symbol from the stdc++ library
-
Wait, I may have missed something. Are you saying that your project fails to build with your custom version of Qt 5.3 ?
-
Just to rule out the obvious, did you rebuild your project from scratch ?
-
I've not yet built 5.3 completely from scratch (I've updated it regularly from git so it might be something subtle).
What I'm wondering is where do you the wrong lib since AFAIK, the mkspecs haven't changed.
I'll do a clean build later
-
The error you are getting is not a bug, you have c++11 activated, this means that you have to use libc++ and you can't mix it with libstdc++.
-
Or (if it is a possibility) rebuild your dependencies to also use libc++