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. Problems with MAC (string.h: No such file or directory) [solved]

Problems with MAC (string.h: No such file or directory) [solved]

Scheduled Pinned Locked Moved Installation and Deployment
74 Posts 4 Posters 50.6k 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.
  • J Offline
    J Offline
    JorgeVdB
    wrote on last edited by
    #34

    Hi!!,

    My Qt directory is in /Developer/Tools/Qt (and Qt5.0.1) and no one has configure...

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JorgeVdB
      wrote on last edited by
      #35

      I have installed qt-mac-opensource-4.8.4 and qt-mac-opensource-5-1.0.1-clang-offline

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #36

        No need to configure, then. Your Qt is precompiled.

        (Z(:^

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JorgeVdB
          wrote on last edited by
          #37

          And then what is my problem?? Is problem with the linking the libraries??

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JorgeVdB
            wrote on last edited by
            #38

            I'm sorry, but MAC is driving me crazy... I had no problems with Windows ni Linux...

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jmcleod
              wrote on last edited by
              #39

              On the Mac a good alternative to using the Qt downloads from qt-project.org is to use the Brew package manager.

              Follow these instructions to install brew http://mxcl.github.com/homebrew/

              Then use it to install QT, brew install qt will install Qt4 and brew install qt5 will install Qt5.

              The nice part about using brew is that you can actually have multiple versions of Qt installed and switch between them. brew switch qt <version>

              I've also found that sometimes I had to run macdeployqt with sudo.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                JorgeVdB
                wrote on last edited by
                #40

                I gonna write step by step the instructions I use, in case I am confusing myself:

                For example, to link the libraries to QtNetwork.

                First of all I copy all the libraries that I need (There are in /Libraries/Frameworks) in example.app/Contents/Frameworks/...

                 * *otool -L example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork*
                            example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork:
                         @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork (compatibility version 4.8.0, current version 4.8.4)
                         QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.4)
                         /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
                         .......
                
                  **install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
                    plugandpaint.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore*
                  
                   **install_name_tool -change /Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork*
                
                  * *otool -L example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork*
                            example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork:
                         @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork (compatibility version 4.8.0, current version 4.8.4)
                         QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.4)
                         /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
                         .......
                

                Any idea???

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jmcleod
                  wrote on last edited by
                  #41

                  What is the output of:

                  @otool -L example.app/Contents/MacOS/example@

                  That's where you should be checking your Framework dependancies.

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    JorgeVdB
                    wrote on last edited by
                    #42

                    I did it!!!

                    The problem was when I used the instruction install_name_tool -change.

                    In the manual puts that you should put where is the old library, the new library and the program that needs it.

                    But my program didn't recognise where is the old library, then the instruction doesn't work.

                    So at the end I used:

                    @install_name_tool -change (new library) (program)@

                    Thank you very much to all, muchas gracias a todos...

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

                      You're welcome !

                      Don't forget to update the thread's title so other forum users may know you found a solution

                      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
                        JorgeVdB
                        wrote on last edited by
                        #44

                        Hi,

                        I continue with the developmnent of this application.

                        Now, I have a new problem.

                        I have to copy the Plugins into my bunddle and link with its necessaries libraries. As I have the original bunddle, I copy the plugins there were in the old package.

                        This plugins (and frameworks) doesn't work because the libraries with which I compile were a later version.

                        My problem is when I gonna copy the plugin /qmltooling/libtcpserver.dylib, there aren't in my /Developer/Aplications/Qt/plugins/qmltooling

                        And similarly with libqsqlmysql.dylib

                        What I have to do?

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

                          To make sure I understood you right: you have built your own Qt ?

                          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
                            JorgeVdB
                            wrote on last edited by
                            #46

                            Yes, I'm not sure but I think so. ;-)

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

                              Then you have to look for the plugins in your Qt installation path.
                              Custom Qt
                              Qt 4:/usr/local/Trolltech/Qt-4.8.4
                              Qt 5:/usr/local/Qt-5.0.2

                              With MacPorts : somewhere in /opt/local but I can't remember right now precisely where (they might be following Qt's default)

                              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
                                JorgeVdB
                                wrote on last edited by
                                #48

                                Yes, I need in MAC.

                                Ok, I try it ... I'll comment

                                Thanx!!!

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  JorgeVdB
                                  wrote on last edited by
                                  #49

                                  I check it, in MAC that folder doesn't exist.

                                  Thanx in advance...

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

                                    Do a global search for the files you need, if they are missing, it means that you didn't build everything.

                                    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
                                      JorgeVdB
                                      wrote on last edited by
                                      #51

                                      I did the search but I didn't find anything.

                                      Can I download the libraries?? or someone send me??

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

                                        Wait wait wait, I think, we are getting lost.

                                        Remind me what exactly is your problem ? Did you already do a full rebuild of your application ?

                                        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
                                          JorgeVdB
                                          wrote on last edited by
                                          #53

                                          Ok, sorry my english is not very good...

                                          When I compiled the application, it didn't work because needs some plugins and frameworks.

                                          Then I began to link all the plugins and frameworks that my program needs.

                                          At first no problem,

                                          • I created the plugin and framework folder in the bundle.
                                          • I copied plugins or frameworks from my internal files to the bundle.
                                          • I changed the source of the frameworks to the executable_path (install_name_tool ....)

                                          But my problem come when I need /qmltooling/libtcpserver.dylib, because it isn't in my folder (/Developer/Aplications/Qt/)

                                          Thanks!!!

                                          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