Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.5 - XCode building failed - Linking failed - Poppler
QtWS25 Last Chance

Qt 5.5 - XCode building failed - Linking failed - Poppler

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
22 Posts 4 Posters 8.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 11 Apr 2016, 08:02 last edited by
    #11

    The symbols that are missing comes from OS X/ iOS frameworks (e.g. CFArrayCreate) not Qt

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    L 1 Reply Last reply 11 Apr 2016, 08:46
    0
    • S SGaist
      11 Apr 2016, 08:02

      The symbols that are missing comes from OS X/ iOS frameworks (e.g. CFArrayCreate) not Qt

      L Offline
      L Offline
      Lordful
      wrote on 11 Apr 2016, 08:46 last edited by Lordful 4 Nov 2016, 08:48
      #12

      @SGaist Hum I will check that, should I add the path to Core in library ? (Anyway, I will try)

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lordful
        wrote on 11 Apr 2016, 09:05 last edited by
        #13

        @SGaist Isn't a problem of architecture ? It seems that XCode try to use some librarie which has been build for OS X and not for iOS.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 11 Apr 2016, 20:45 last edited by SGaist 4 Dec 2016, 23:00
          #14

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          L 1 Reply Last reply 12 Apr 2016, 08:00
          0
          • S SGaist
            11 Apr 2016, 20:45

            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.

            L Offline
            L Offline
            Lordful
            wrote on 12 Apr 2016, 08:00 last edited by
            #15

            @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.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 12 Apr 2016, 23:01 last edited by
              #16

              What about building it using Qt Creator just to ensure you use the right kit ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              L 2 Replies Last reply 13 Apr 2016, 07:42
              0
              • S SGaist
                12 Apr 2016, 23:01

                What about building it using Qt Creator just to ensure you use the right kit ?

                L Offline
                L Offline
                Lordful
                wrote on 13 Apr 2016, 07:42 last edited by
                #17

                @SGaist Yes I tried.

                But I can only run/compile for Desktop. When I try to add a Kit, if I choose to add a kit for iOS, there is no generator in CMake Wizard.

                So ... it's strange.

                1 Reply Last reply
                0
                • S SGaist
                  12 Apr 2016, 23:01

                  What about building it using Qt Creator just to ensure you use the right kit ?

                  L Offline
                  L Offline
                  Lordful
                  wrote on 13 Apr 2016, 08:27 last edited by
                  #18

                  @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.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 13 Apr 2016, 12:47 last edited by
                    #19

                    How did you install Qt ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    L 1 Reply Last reply 13 Apr 2016, 14:52
                    0
                    • S SGaist
                      13 Apr 2016, 12:47

                      How did you install Qt ?

                      L Offline
                      L Offline
                      Lordful
                      wrote on 13 Apr 2016, 14:52 last edited by
                      #20

                      @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 :

                      1. CMake
                      2. XCode building

                      But when you look at the error in XCode, it seems that lib aren't found. So weird.

                      M 1 Reply Last reply 28 Aug 2017, 21:41
                      0
                      • L Lordful
                        13 Apr 2016, 14:52

                        @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 :

                        1. CMake
                        2. XCode building

                        But when you look at the error in XCode, it seems that lib aren't found. So weird.

                        M Offline
                        M Offline
                        Muhammet Ali Asan
                        wrote on 28 Aug 2017, 21:41 last edited by
                        #21

                        @Lordful Hello , Did you managed to build Poppler for IOS ? I have been trying to do it for 2 days :(

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Muhammet Ali Asan
                          wrote on 28 Aug 2017, 21:48 last edited by
                          #22

                          @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

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved