Qt 5.5 - XCode building failed - Linking failed - Poppler
-
The symbols that are missing comes from OS X/ iOS frameworks (e.g. CFArrayCreate) not Qt
-
Did you apply the patch proposed in the bug report ? And re-configure / re-build the project ?
Not seeing the linker output I don't know if it get the framework for the wrong architecture or if they are just missing from the linker options.
-
@SGaist Hum as I said earlier, it's no more a problem with gl.h but a problem on linking the two libraries.
Actually, the compilation of Poppler succeed but the compilation of Poppler-Qt5 fail when XCode try to link the two libs.
And before, I solved the problem of "gl.h" by downloading Qt 5.6 & check my path env to point to ios/bin.
-
What about building it using Qt Creator just to ensure you use the right kit ?
-
@SGaist I had update this topic and here is the actual error output from XCode when I try to build poppler-qt5 :
ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) ld: warning: ignoring file /usr/local/Cellar/fontconfig/2.11.1_2/lib/libfontconfig.a, file was built for archive which is not the architecture being linked (arm64): /usr/local/Cellar/fontconfig/2.11.1_2/lib/libfontconfig.a ld: warning: ignoring file /usr/local/Cellar/freetype/2.6.3/lib/libfreetype.a, file was built for archive which is not the architecture being linked (arm64): /usr/local/Cellar/freetype/2.6.3/lib/libfreetype.a ld: warning: ignoring file /usr/local/Cellar/jpeg/8d/lib/libjpeg.a, file was built for archive which is not the architecture being linked (arm64): /usr/local/Cellar/jpeg/8d/lib/libjpeg.a ld: warning: ignoring file /usr/local/Cellar/nss/3.23/lib/libnss.a, file was built for archive which is not the architecture being linked (arm64): /usr/local/Cellar/nss/3.23/lib/libnss.a ld: warning: ignoring file /usr/local/Cellar/libpng/1.6.21/lib/libpng.a, file was built for archive which is not the architecture being linked (arm64): /usr/local/Cellar/libpng/1.6.21/lib/libpng.a ld: warning: ignoring file /usr/local/Cellar/libtiff/4.0.6/lib/libtiff.a, file was built for archive which is not the architecture being linked (arm64): /usr/local/Cellar/libtiff/4.0.6/lib/libtiff.a Undefined symbols for architecture arm64: "_CERT_DestroyCertificate", referenced from: SignatureHandler::validateCertificate() in SignatureHandler.o "_CERT_GetClassicOCSPEnabledSoftFailurePolicy", referenced from: SignatureHandler::validateCertificate() in SignatureHandler.o "_CERT_GetCommonName", referenced from: SignatureHandler::getSignerName() in SignatureHandler.o
And there is more "referebced from" error. And this error appears when linking.
-
How did you install Qt ?
-
@SGaist Simply by installing with Qt Unified Mac (dmg).
Its seems to be a problem of lib, maybe ?
I'm trying to compile Poppler for iOS in 2 steps :
- CMake
- XCode building
But when you look at the error in XCode, it seems that lib aren't found. So weird.
-
@SGaist Lordful seems to have succeeded building Poppler with qt5 on ios . I could not hold the list of error I encountered.
I am trying to build fontconfig , openjpeg and freetype for ios because they are asked in cmake. If I get to Xcode project it fails with different errors. I am new to Ios, and mac os . Should I build the dependencies from source for ios ? If so some of them are harder than poppler