Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Program compiling on ubuntu
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
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?
I meant the executable file created by Qt Creator in the debug folder
I want to run this file on all linux os
Take a look to "linux-deployment":http://qt-project.org/doc/qt-5/linux-deployment.html
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?
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:
- 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.
- 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.
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?
I just solved all the problems following the steps in the link
Now all works fine