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]
QtWS25 Last Chance

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
    #15

    I have been reading about the deployment tool but I have any doubts ...

    • Could I use QtCretor? or by terminal?

    • To have the frameworks and plugins folders, simply creates into de app folder? or Do I need to compile in a different manner?

    Thanks!!!

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

      You need to run it from terminal. If Qt is properly installed, it will do everything automatically for you (copy libs + plugins, adjust paths, add info.plist, etc.).

      (Z(:^

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

        I have already compile by terminal, but the package has the same structure that if I compile wth QtCreator.

        I don't know if I need to change something in the makefile...

        Thanks a lot!!!

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

          macdeployqt is a binary tool that has to be used after the compilation. This is not a build step specified in the makefile, and it does not matter whether you have compiled from terminal or Qt Creator. You just need to run the tool afterwards, from the terminal, and preferably with high verbosity level to make sure you spot errors (macdeployqt does not bail out on most errors).

          (Z(:^

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

            Hi!!!!

            I understand MAC manner each day.

            I follow all the instructions in the web. When I execute the instructions, I have no problem.

            But when I finish linking all the libraries that my program needs, and the same with the libraries including, both my program and my libraries doesn't change anything (with the otool -L instruction)

            Thanks in advance!!!

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

              Hi!!!!

              Forget my last reply, my problem is before.

              I don't know where I have to transform the Qt to a static library. The ./configure static instruction doesn't work in any place.

              I have installed Qt5.0.1 and Qt4.8.4. I use Qt4.8.4 to compile.

              The frameworks are in /Library/Frameworks and the plugins are in /Developer/Application/Qt/plugins.

              When I installed I didn't change anything.

              What I have to do???

              Super Thanks in advance!!!

              Muchas gracias por adelantado!!!

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

                @
                ./configure -static
                make sub-src
                @

                (Z(:^

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  JorgeVdB
                  wrote on 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 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 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
                      • sierdzioS Offline
                        sierdzioS Offline
                        sierdzio
                        Moderators
                        wrote on 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 last edited by
                          #26

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

                          1 Reply Last reply
                          0
                          • sierdzioS Offline
                            sierdzioS Offline
                            sierdzio
                            Moderators
                            wrote on 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 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
                              • sierdzioS Offline
                                sierdzioS Offline
                                sierdzio
                                Moderators
                                wrote on 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 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 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
                                    • sierdzioS Offline
                                      sierdzioS Offline
                                      sierdzio
                                      Moderators
                                      wrote on last edited by
                                      #32

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

                                      (Z(:^

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

                                          • Login

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