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. Deployment problem on MAC OSX with macdeployqt Qt5.4.2 (and 5.3.2)
Forum Updated to NodeBB v4.3 + New Features

Deployment problem on MAC OSX with macdeployqt Qt5.4.2 (and 5.3.2)

Scheduled Pinned Locked Moved Solved Installation and Deployment
35 Posts 2 Posters 13.5k 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.
  • S Offline
    S Offline
    stephane78
    wrote on last edited by
    #9

    the package crashes on another Mac but I have not this other Mac here today and I cannot see the command line information.I think there are libraries of /usr/lib like libc++ or others or OpenGl that are not installed on this another mac.
    Can I add libraries (of /usr/lib or other) to the bundle ?

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

      What exact libraries are missing ?

      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
      • S Offline
        S Offline
        stephane78
        wrote on last edited by stephane78
        #11

        @SGaist, Hi , I don't know if it comes from a missing library and I am not sure because the error message is :
        QSqlError("-1", "Error opening database", "out of memory")

        failed to connect.

        Abort trap: 6
        we use sqlite in the software and the plugin is in the bundle.
        I have freed memory and even with 4Gb free memory I have this message
        this is not a development Mac, and it is with MacOS 10.11.3 and 8 GB memory
        I have copied the software on the desktop and I run it in command line.
        On two other (developments) Mac the software is ok.

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

          AFAIK, that's unrelated.

          Where are your trying to open your database ?
          Do you check that the open operation is successful before calling a query on it ?

          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
          1
          • S Offline
            S Offline
            stephane78
            wrote on last edited by
            #13

            Hi, @SGaist , I must add a new QMessageBox in the case it doesn't find the sqlite driver.
            I think this case comes when it creates the log database and if it doesn't find the sqlite driver and then cannot open the database or when it opens the log database (if the file already exists and is corrupted).

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stephane78
              wrote on last edited by
              #14

              @SGaist ,I have added a QMessageBox, if it doesn't find the sqldriver plugin and I have done an otool -L on the sqlite plugin and I have seen that it is linked with the libc++1.dylib and libSystemB.dylib.
              is it possible that this two libraries are not on the Mac (10.11.3) or are not compatible with those of my development Mac (10.10.4) ?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stephane78
                wrote on last edited by
                #15

                @SGaist, HI, I have the same problem on a VM with an older MacOS(10.9),so I have the problem on 2 MacOSes where Qt was not installed before...so I think it needs a library or there is a problem with the bundle.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  stephane78
                  wrote on last edited by
                  #16

                  @SGaist, I have added Libraries = Frameworks to the qt.conf and I will test it on the VM

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    stephane78
                    wrote on last edited by
                    #17

                    @SGaist, Hi it does nothing.
                    I have now added libsqlite3.dylib to the bundle and it is not ok .
                    but my bundle contains other qt sql plugins and perhaps should I remove them (mysql,postgres,odbc) of the bundle ?
                    I have tested without the other plugins in the bundle and I have still this error....

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      stephane78
                      wrote on last edited by
                      #18

                      the software runs on two developments MacOs (with Qt and Xcode) and crashes on two other MacOS without Qt and Xcode.....

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        stephane78
                        wrote on last edited by stephane78
                        #19

                        @SGaist, Hi, When I use macdeployqt (Qt5.6.0) I have this errors and warning :

                        WARNING: Plugin "libqsqlodbc.dylib" uses private API and is not Mac App store compliant.
                        WARNING: Plugin "libqsqlpsql.dylib" uses private API and is not Mac App store compliant.
                        ERROR: no file at "/opt/local/lib/mysql55/mysql/libmysqlclient.18.dylib"
                        ERROR: no file at "/usr/local/lib/libpq.5.dylib"

                        but I use only the sqlite plugin

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

                          Just remove the plugins you won't use.

                          Where did you put the SQLite library ?

                          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
                          1
                          • S Offline
                            S Offline
                            stephane78
                            wrote on last edited by
                            #21

                            Should I remove the other plugins from the bundle?
                            I have tried too with the libsqlite3.dylib in the bundle (in frameworks) but it did'nt solve the problem, I don't know if I should put it in the bundle.

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              stephane78
                              wrote on last edited by
                              #22

                              I have tested without the other sql plugins and I have the same error...

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                stephane78
                                wrote on last edited by
                                #23

                                The two MacOS on which that doesn't run are MacOS 10.9 and Mac OS 10.11.3 without Qt.
                                But the software and bundle was made on a Mac OS 10.10.4.
                                does the problem come from the MacOs version ?

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

                                  No it should not.

                                  Things I'd do now:

                                  1. Delete the bundle
                                  2. Do a full re-build
                                  3. Run macdeployqt on it
                                  4. Delete unused plugins
                                  5. Run otool -L on the remaining plugins
                                  6. Check whether there's any path to a non-system library that looks fishy
                                  7. Run otool -L on the application executable
                                  8. Check whether there's any path to a non-system library that looks fishy

                                  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
                                  1
                                  • S Offline
                                    S Offline
                                    stephane78
                                    wrote on last edited by
                                    #25

                                    already done several times the first three levels.
                                    an otool -L on the sqlite plugin gives paths to Qt libraries with "@rpath" but I suppose it 's ok.

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      stephane78
                                      wrote on last edited by stephane78
                                      #26

                                      and the sqlite plugin is linked with /usr/lib/libcc++.1.dylib and /usr/lib/libSystem.B.dylib too (and QtCore and QtSql)

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        stephane78
                                        wrote on last edited by
                                        #27

                                        I have build with Qt5.5.1 and I have the same problem than with Qt5.6.0

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          stephane78
                                          wrote on last edited by
                                          #28

                                          We will try later with a VM with MacOS 10.10 to see if it is a version problem

                                          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