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. Sharedlib instead of executable file on ubuntu
Forum Updated to NodeBB v4.3 + New Features

Sharedlib instead of executable file on ubuntu

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 6 Posters 8.3k 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.
  • H Online
    H Online
    hskoglund
    wrote on 23 Oct 2017, 22:38 last edited by
    #6

    Hi, also check that you have Shadow builds enabled in Qt Creator.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 24 Oct 2017, 01:21 last edited by
      #7

      Looks like your double clicking on the executable and trying to run it. Are you getting the 'library not found' error ? if that is the case, Qt libraries may not be in the path. Please check the path and fix it

      Qn : Are you able to run your application from Qt Creator ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • F Offline
        F Offline
        FED27
        wrote on 24 Oct 2017, 06:09 last edited by
        #8

        i've the "library not foung error" but if i run the app by terminal it works. Why?
        How i can fix the path?

        Yes i'm able to run my application from Qt Creator.

        J 1 Reply Last reply 24 Oct 2017, 09:30
        0
        • F FED27
          24 Oct 2017, 06:09

          i've the "library not foung error" but if i run the app by terminal it works. Why?
          How i can fix the path?

          Yes i'm able to run my application from Qt Creator.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 24 Oct 2017, 09:30 last edited by
          #9

          @FED27 If you want your app to be runnable outside of QtCreator (or on other machines) you need to deploy it first.
          See http://doc.qt.io/qt-5/linux-deployment.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • F Offline
            F Offline
            FED27
            wrote on 24 Oct 2017, 20:16 last edited by
            #10

            i' m trying this way but when i launch the command qmake -config release it gives me
            Project MESSAGE: Warning: unknown QT: charts

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 24 Oct 2017, 20:17 last edited by
              #11

              Hi,

              As silly as it may sound, did you install all of Qt components ?

              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
              • F Offline
                F Offline
                FED27
                wrote on 24 Oct 2017, 20:33 last edited by
                #12

                @SGaist solved but after i've launche the make and every is compiled i try to click on the app and the error is always "library not found"

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 24 Oct 2017, 20:46 last edited by
                  #13

                  Are you using a project template ?

                  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
                  • F Offline
                    F Offline
                    FED27
                    wrote on 24 Oct 2017, 20:48 last edited by
                    #14

                    SOLVED i used QMAKE_LFLAGS += -no-pie in the .pro file and it produced me an executable file instead of a library

                    1 Reply Last reply
                    1
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 24 Oct 2017, 20:51 last edited by
                      #15

                      Glad you found out and thanks for sharing !

                      Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum members may know what you are talking about.

                      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

                      15/15

                      24 Oct 2017, 20:51

                      • Login

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