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
Forum Updated to NodeBB v4.3 + New Features

Qt 5.5 - XCode building failed - Linking failed - Poppler

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
22 Posts 4 Posters 8.4k Views 1 Watching
  • 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.
  • LordfulL Offline
    LordfulL Offline
    Lordful
    wrote on last edited by Lordful
    #10

    Hum I will try to add these two libs in the library field and see what I get.

    @SGaist It seems that QtCore & libpng are already inside of "Header Search Paths" inside of Poppler & Poppler-qt5

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      LordfulL 1 Reply Last reply
      0
      • SGaistS SGaist

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

        LordfulL Offline
        LordfulL Offline
        Lordful
        wrote on last edited by Lordful
        #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
        • LordfulL Offline
          LordfulL Offline
          Lordful
          wrote on 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by SGaist
            #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

            LordfulL 1 Reply Last reply
            0
            • SGaistS SGaist

              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.

              LordfulL Offline
              LordfulL Offline
              Lordful
              wrote on 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
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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

                LordfulL 2 Replies Last reply
                0
                • SGaistS SGaist

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

                  LordfulL Offline
                  LordfulL Offline
                  Lordful
                  wrote on 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
                  • SGaistS SGaist

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

                    LordfulL Offline
                    LordfulL Offline
                    Lordful
                    wrote on 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
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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

                      LordfulL 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        How did you install Qt ?

                        LordfulL Offline
                        LordfulL Offline
                        Lordful
                        wrote on 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
                        0
                        • LordfulL Lordful

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