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

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

Scheduled Pinned Locked Moved Installation and Deployment
74 Posts 4 Posters 50.9k 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.
  • J Offline
    J Offline
    JorgeVdB
    wrote on 26 Mar 2013, 09:00 last edited by
    #22

    I have had an error in the last post, I use ./configure -static

    In http://qt-project.org/doc/qt-4.8/deployment-mac.html#application-dependencies uses this instruction in the Qt path but in my /Developer/application/Qt/ doesn't work...

    Thanks!!!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JorgeVdB
      wrote on 26 Mar 2013, 09:01 last edited by
      #23

      Inside the Qt folder I have:

      Assistant.app Linguist.app imports pixeltool.app qdbusviewer.app qtdemo.ap
      Designer.app QMLViewer.app phrasebooks plugins qhelpconverter.app translations

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JorgeVdB
        wrote on 26 Mar 2013, 11:00 last edited by
        #24

        I have realized that I have Xcode 3.0 another time I don't know why... Can be the problem?

        Ohh God I hate MAC...

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 26 Mar 2013, 11:13 last edited by
          #25

          You are not alone :)

          Yeah it would probably be better to upgrade to Xcode 4.x, although the compilation should work with 3.x, too.

          (Z(:^

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JorgeVdB
            wrote on 26 Mar 2013, 11:17 last edited by
            #26

            But, why it's possible that MAC unistall alone things??

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sierdzio
              Moderators
              wrote on 26 Mar 2013, 11:18 last edited by
              #27

              Sorry, I don't understand that question, please rephrase.

              (Z(:^

              1 Reply Last reply
              0
              • J Offline
                J Offline
                JorgeVdB
                wrote on 26 Mar 2013, 11:21 last edited by
                #28

                Oh nothing, I thought that when I installed the new version, automatically remove the Xcode 3.0.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sierdzio
                  Moderators
                  wrote on 26 Mar 2013, 11:23 last edited by
                  #29

                  Xcode 3 has a different unistallation procedure than 4.6. IIRC, you need to run /Developer/xcode_uninstall or something similar. Search the web, there are tutorials on that.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    JorgeVdB
                    wrote on 26 Mar 2013, 11:26 last edited by
                    #30

                    And it's possible that I have problems with Qt? and with ./configure instruction???

                    Having both versions...

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      JorgeVdB
                      wrote on 26 Mar 2013, 12:23 last edited by
                      #31

                      When I use ./configure -static, terminal answer me:

                      -bash: ./configure: No such file or directory.

                      Any idea??

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sierdzio
                        Moderators
                        wrote on 26 Mar 2013, 12:24 last edited by
                        #32

                        Well, ss the script present in the directory you are in?

                        (Z(:^

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 26 Mar 2013, 12:27 last edited by
                          #33

                          Hi, configure is found in the root directory of Qt's sources

                          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 26 Mar 2013, 12:34 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 26 Mar 2013, 12:37 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
                              • S Offline
                                S Offline
                                sierdzio
                                Moderators
                                wrote on 26 Mar 2013, 12:38 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 26 Mar 2013, 12:42 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 26 Mar 2013, 13:59 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 26 Mar 2013, 17:39 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 27 Mar 2013, 08:28 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 27 Mar 2013, 14:33 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

                                          31/74

                                          26 Mar 2013, 12:23

                                          • Login

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