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 53.4k 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
    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
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #54

                              Did you run macdeployqt ?

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

                                Yes, I followed this instructions

                                http://qt-project.org/doc/qt-4.8/deployment-mac.html

                                Thanx!!!

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

                                  So it's working now ?

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

                                    No, I followed the instructions but the problem continues because I don't find two libraries that my applicaction needs.

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

                                      Any idea?... I am totally lost...I don't understand why these libraries doesn't appear...

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

                                        Hi!!!,

                                        I find this instruction

                                        @macdeployqt Herr....app/@

                                        It makes the same that I did manually before, but when I use it returns this

                                        @ERROR: no file at "/usr/local/pgsql/lib/libpq.5.dylib" @

                                        And if I do it again,

                                        @WARNING:
                                        WARNING: Could not find any external Qt frameworks to deploy in "Herramienta_CTE.app"
                                        WARNING: Perhaps macdeployqt was already used on "Herramienta_CTE.app" ?
                                        WARNING: If so, you will need to rebuild "Herramienta_CTE.app" before trying again.
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/accessible/libqtaccessiblewidgets.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqcncodecs.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqcncodecs.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqjpcodecs.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqjpcodecs.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqkrcodecs.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqkrcodecs.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqtwcodecs.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqtwcodecs.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqgif.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqgif.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqico.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqico.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqjpeg.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqjpeg.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqmng.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqmng.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqtga.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqtga.dylib"
                                        ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqtiff.dylib"
                                        ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqtiff.dylib"
                                        WARNING:
                                        WARNING: "Herramienta_CTE.app/Contents/Resources/qt.conf" already exists, will not overwrite.
                                        WARNING: To make sure the plugins are loaded from the correct location,
                                        WARNING: please make sure qt.conf contains the following lines:
                                        WARNING: [Paths]
                                        WARNING: Plugins = PlugIns
                                        @

                                        With this, any ides?

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

                                          The first error means that it has found a dependency on libpq and simply failed to copy it from /usr/local/pgsql/lib. You might have it elsewhere and have to copy it manually.

                                          The warnings on the second run is normal since you already ran macdeployqt. You can see it on line 3.

                                          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