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. Program compiling on ubuntu
Forum Updated to NodeBB v4.3 + New Features

Program compiling on ubuntu

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 1.7k 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.
  • V Offline
    V Offline
    vectorel
    wrote on last edited by
    #1

    Hi there,

    I've just signed up on this forum becouse I need some help on compiling a project for all linux platforms.
    I'm an Italian programmer and I like Qt Creator because I can make a program working on differents OS just by recompile the same code.

    I have Windows, Mac and Ubuntu, but now I'm focusing on Ubuntu. I've downloaded and installed the Qt Creator with the nedeed SDK and all works fine.

    But when I try to open the program (who goes well in Ubuntu) in another linux platform the program doesn't open. But the installation .run file works with this other platform.

    Can someone tell me how I can do a program compatible with all linux platforms?

    Thanks in advance, bye

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi vectorel.
      Welcome to devnet.
      When you wrote
      [quote author="vectorel" date="1390982999"]
      But when I try to open the program (who goes well in Ubuntu) in another linux platform the program doesn't open. [/quote]
      you meant compiled binary, works on Ubuntu but not on other Linux os, where Qt SDK is not installed?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vectorel
        wrote on last edited by
        #3

        I meant the executable file created by Qt Creator in the debug folder

        I want to run this file on all linux os

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qxoz
          wrote on last edited by
          #4

          Take a look to "linux-deployment":http://qt-project.org/doc/qt-5/linux-deployment.html

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vectorel
            wrote on last edited by
            #5

            following the guide linked I found out that thre is only one file named "configure" in the Qt install location

            the path to configure file is home/USER/Qt5.2.0/5.2.0/Src/qtbase

            so what I have to write for path/to/Qt?

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qxoz
              wrote on last edited by
              #6

              If you read carefuly you can find this:
              "The example above only builds the Qt libraries, i.e. the examples and Qt Designer will not be built. When make is done, you will find the Qt libraries in the /path/to/Qt/lib directory." So, for path/to/Qt you can write what ever you want. But stop, lets start from begin...
              As i understood you need to deploy your app (run in another linux platform). You have 2 options for that:

              1. Build static linked project. For static linking you need statically build Qt libraries. Some information about it you will find at "Static Linking" part of guide.
              2. Ship with shared libraries. Qt SDK binaries already ready for that. And of course, you can find information at "Shared Libraries" part of guide.

              If i misunderstood you please give more information about what exactly you need.

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vectorel
                wrote on last edited by
                #7

                Thanks a lot for the explaination but when I write the command

                @qmake -config release@

                I get this error

                @could not find a Qt installation of ‘’@

                what I have to do now to fix it?

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vectorel
                  wrote on last edited by
                  #8

                  I just solved all the problems following the steps in the link
                  Now all works fine

                  Thanks again

                  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