Compiling Software on Ubuntu requires a few extra steps, as most packages come as precompiled binaries available in the software store or in your version's repository. Following these steps as a guideline will ensure that you can compile software easily:
- Let's create a place for our software to live. This ensures that we do not affect our running system, should something go wrong. The guide linked below uses
/usr/local/src, but I prefer
sudo mkdir /opt/ProgramName. Replace
ProgramName with the actual name of the compiled program.
- Move all the Items that you're trying to compile into
/opt/ProgramName, or better yet move and extract the Tarball into
mv -v tarballname.tar.gz /opt/ProgramName && cd /opt/ProgramName/ && tar -xzvf tarballname.tar.gz
- With a fresh copy of the tarball extracted, we need some tools, namely the compiler, the make, and the install program:
sudo apt-get install build-essential checkinstall
./configure --prefix=/opt/ProgramName in the root directory,
--prefix parameter is very important, as this tells make not to install this in your system's default directories. This also tells you that the package is not managed by
- Now if the configure script crashes, we need to install the missing dependencies. We do this by using tools provided in
apt. Every configure script will generate a file ending in
.log when it errors:
apt-file search nameoflogfile.pc will gather the missing dependencies.
- Install the missing dependencies with
apt-get install missing-package-names where
missing-package-names is the output from Step 5.
- Repeat Step 4.
- Now issue
make && make install
You were missing Step 4.
Please also realize that from your question that Prog.pro is a QT Project file, which requires
qmake. Qmake requires the QT Libraries, and by default the QT Libraries aren't installed. Adding them will result in extra menu items etc, because Unity is supported by the GTK Libraries. QT is most notably used for the K Desktop Environment, aka KDE, which means that the person who wrote this application intended it to be used in KDE, and NOT GNOME or Unity.
You may need to run
autogen script. If you don't see that, you need to redownload/reaquire the program. Programs are built using the Autotools Toolchain - Tutorial. See Also: WikiPedia Entry.
See Also: CompilingEasyHowTo