Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Deploying Qt 5 application on Ubuntu, getting segmentation fault (core dumped)
Forum Updated to NodeBB v4.3 + New Features

Deploying Qt 5 application on Ubuntu, getting segmentation fault (core dumped)

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 3.4k Views 2 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.
  • B Offline
    B Offline
    blackrabbit
    wrote on last edited by
    #1

    Hi there,

    Here is the situation: I have an Ubuntu 15.10 macine, with a Qt 5.3. Everything works smoothly on that machine. I compile my app and generate my executable.

    I have another clean Ubuntu 15.10 machine, whithout Qt installed this time. Using the "ldd" command, i copied all Qt related libraries that are needed by my application, but when i run my app, i get the error:
    cannot mix incompatible qt library.
    I double checked with ldd, and my application is only using the libraries that i have provided. I can't find at what point libraries are mixed.

    Then, i tried to remove the libraries i provided and let my app only use system libraries, but then it complains that it can't find Qt5Script.so. When i copy that file from the Qt machine, i get: "segmentation fault (cure dumped)"

    Could it be becuase the Qt5Script.so is not compatible with Qt version used to compile Ubuntu 15.10? If that the case, how to direct the system to install the suitable "QT5Script.so" that coexists with the system?

    Any other idea how to debug that?

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

      Hi and welcome to devnet,

      The Qt libraries are one thing, you also need to deploy the Qt plugins

      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
      • B Offline
        B Offline
        blackrabbit
        wrote on last edited by
        #3

        Hi! Thanks.

        I forget to mention them, but they are all there there..

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

          By the way, are you building your application with your distribution's Qt ? If not, then consider doing it, that will simplify things a bit since you are testing on the same Ubuntu version.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          B 1 Reply Last reply
          0
          • SGaistS SGaist

            By the way, are you building your application with your distribution's Qt ? If not, then consider doing it, that will simplify things a bit since you are testing on the same Ubuntu version.

            B Offline
            B Offline
            blackrabbit
            wrote on last edited by
            #5

            @SGaist I guess i could do that, but then, what will happen when user "lambda" tries to launch the application on his Ubuntu that is not the same as mine?

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

              In that case follow the Linux deployment guide

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              B 1 Reply Last reply
              0
              • SGaistS SGaist

                In that case follow the Linux deployment guide

                B Offline
                B Offline
                blackrabbit
                wrote on last edited by
                #7

                @SGaist :)

                I knew that famous link would come up at some point..

                Well, what if i tried everything on that page (expect static linking) and failed?

                Let's assume i did something wrong, is there some methodology to try to find the source of the problem?

                Should i try building a simple "hello world" application, and then add modules one by one, until i find the problem? How would you deal with that?

                Thanks a lot for your help and advice!

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

                  Yes, start with a hello world and verify that it's working correctly, then go on with 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

                  • Login

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