Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. macdeployqt and poppler
Forum Updated to NodeBB v4.3 + New Features

macdeployqt and poppler

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
12 Posts 3 Posters 2.9k Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Which version of Qt are you using ?

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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsundermeyer
      wrote on last edited by
      #3

      I am using qt 5.7

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        How did you install poppler ?

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

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jsundermeyer
          wrote on last edited by
          #5

          Self-compiled via cmake/make/make install to /usr/local/lib.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            What if you add -libpath=/usr/local/lib to your macdeployqt call ?

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

            1 Reply Last reply
            1
            • J Offline
              J Offline
              jsundermeyer
              wrote on last edited by
              #7

              macdeployqt does not know the option -libpath or any other option which influence the lib search order.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Then check that you are calling macdeployqt from your Qt 5.7 installation. macdeployqt -h shows you all the options from the application.

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

                J 1 Reply Last reply
                0
                • J jsundermeyer

                  I have been using macdeployqt fro some time to generate portabel osx apps.
                  We are using poppler which is installed in /usr/local/bin.
                  macdeployqt does not find the library unless there is a link in /usr/lib to it.
                  Unfornately osx inhibits setting links there in newer versions of osx, so how do I tell macdeployqt where to find the library ?
                  DYLD_FALLBACK_LIBRARY_PATH is ignored, setting DYLD_LIBRRAY_PATH break functionaliyt completely...

                  A Offline
                  A Offline
                  ambershark
                  wrote on last edited by
                  #9

                  @jsundermeyer macdeployqt has always been pretty weak. In every commercial application I've written for osx I've had to write some sort of bash script in order to make a deployable application. I gave up on macdeployqt long ago for exactly these types of issues.

                  You can just make a bash script that does what you need it to and it can find the correct libs for you. ;)

                  My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jsundermeyer
                    wrote on last edited by
                    #10

                    I was hoping since macdeployqt nearly manages to do it right, it might be tweaked a bit, before starting doing everything with a script of my own.

                    1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Then check that you are calling macdeployqt from your Qt 5.7 installation. macdeployqt -h shows you all the options from the application.

                      J Offline
                      J Offline
                      jsundermeyer
                      wrote on last edited by
                      #11

                      @SGaist neither qt documentation nor macdeployqt -h give any hints on how to give library search paths. Mind you, I have been using it for years.

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        jsundermeyer
                        wrote on last edited by
                        #12

                        indeed macdeployqt abc.app -libpath=/usr/local/lib works.
                        The issue was that the new option was introduced in qt 5.7.1 and I was still using 5.7.0.

                        1 Reply Last reply
                        1

                        • Login

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