Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] Glib libgpod mac os x Compile error
QtWS25 Last Chance

[solved] Glib libgpod mac os x Compile error

Scheduled Pinned Locked Moved General and Desktop
27 Posts 2 Posters 13.3k 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.
  • K Offline
    K Offline
    KioR
    wrote on last edited by
    #14

    I tried

    open tesrre.pro -b /Users/tom/Qt5.2.0/QtCreator.app

    And get:

    LSGetApplicationForInfo() failed with error -10814 while trying to determine the application with bundle identifier /Users/tom/Qt5.2.0/QtCreator.app.

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

      Sorry, my bad, it's -a

      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
      • K Offline
        K Offline
        KioR
        wrote on last edited by
        #16

        I have uninstalled all versions of Qt , and reinstalled from the latest 5.2.1

        Created a new application and tried again. Now it is asking me for glib2-development package.

        Cannot find this on homebrew and no where to compile from source. So have just installed Macports and now installed glib2-devel. seems like it just installed the same files that were already present with the homebrew port, with some documentation.

        Still not working and error saying:

        Project ERROR: glib-2.0 development package not found

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

          You might need to add /opt/local/lib/pkgconfig to your PKG_CONFIG_PATH

          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
          • K Offline
            K Offline
            KioR
            wrote on last edited by
            #18

            I think the PKG_CONFIG_PATH is fine as it is now seeing glib-2.0 , but is now asking for development package.

            After installing with macports doing pkg config --list-all shows the same as before , so think the development package has not installed.
            Not really sure what I am supposed to see after installing it.
            Do you know a better way of installing?

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

              Do you have something like

              @export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH@

              in your .profile file ?

              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
              • K Offline
                K Offline
                KioR
                wrote on last edited by
                #20

                Yeah just added something similar to my .profile . It contains the following:

                export PATH=/usr/local/bin:$PATH
                export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

                Still the same. Tried launching from terminal again.

                Funny, I have tried on a ubuntu install and it just works. Was amazed at how easy it was.

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

                  Did you source the file before testing ? Otherwise the changes won't take effect

                  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
                  • K Offline
                    K Offline
                    KioR
                    wrote on last edited by
                    #22

                    No , I did not know about that. Just tried but the same.

                    Just found the follwing page, which has helped a bit:

                    "sing-pkg-config-with-qt-creator-qmake-on-mac-osx":http://stackoverflow.com/questions/16972066/using-pkg-config-with-qt-creator-qmake-on-mac-osx

                    Basically I have added the following to my .pro file:

                    @QT_CONFIG -= no-pkg-config@

                    So now I have :

                    @QT_CONFIG -= no-pkg-config
                    CONFIG += link_pkgconfig
                    PKGCONFIG += libgpod-1.0 taglib@

                    This however will only work if I launch the project from within terminal.
                    There are suggestions of fixes for Qt Creator , but none of them seem to work.

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

                      I personally always start Qt Creator from the command line to ensure that it will have the environment set by .profile

                      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
                      • K Offline
                        K Offline
                        KioR
                        wrote on last edited by
                        #24

                        Yeah , I will just live with it like this for now. Thanks for the prompt help SGaist.

                        Now to get the libs working in windows. That should be fun.

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

                          You might be interested by "this":http://stackoverflow.com/a/4567308 and "this":http://stackoverflow.com/a/7502061

                          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
                          • K Offline
                            K Offline
                            KioR
                            wrote on last edited by
                            #26

                            Thanks for the above. I done the following:

                            sudo nano /etc/launchd.conf

                            added:
                            export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

                            then:
                            grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl

                            Now when I launch Qt creator from dock , it find the libs fine.

                            Thanks , again.

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

                              You're welcome !

                              Glad you succeeded :)

                              Since that you have everything working now, please update the thread title prepending [solved] so that other forum users may know solution has been found :)

                              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

                              • Login

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