Compiling a GUI program
im not sure what i'm suppose to ask , so please bare with me. I'm all new to linux
i have these files :
and all i know is that its a GUI program in linux.
I'm not sure how do u compile this GUI program.
the README and files in docs did not helped at all.
in the src folder, there are many cpp files though.
I tried executing just "make" in the terminal but it gave me errors like :
make -C src bin
make: Entering directory `/root/msl-refbox/src'
/usr/lib/qt3/bin/uic -o CardDialog.qt.h CardDialog.ui
make: /usr/lib/qt3/bin/uic: Command not found
make: *** [CardDialog.qt.cpp] Error 127
make: Leaving directory `/root/msl-refbox/src'
make: *** [bin] Error 2
Please advise . Thanks heaps !
Hi - if you're compiling from source on a Linux box there's usually a script called configure. In most cases you would log in as root like this:
<then supply your password>
Typing ./configure --help gives you some information about extra options which you may or may not need.
In some cases there's no configure script, and you just type make followed by make install as above. I suspect your error is caused by missing library files needed to build the GUI. In this case QT.
You might be able to avoid compiling the package from source by using your distro's package manager. In Debian this is called apt. To install a package you would:
1. log in as root
2. apt-get install package_name
Obviously substitute package_name with what you're trying to install. :D You need to set up some repositories first, but it's more than worth doing this. Otherwise things can get stressful.
Avoid compiling from source where possible, until you're feeling really confident.
i am currently using fedora and from the error message
im missing something in /usr/lib/qt3/bin/uic
and when i tried looking into that directory , uin does not exist on my distro.
so i tried installing some development libraries and tool but still its not working.
is there a way to install all development library ?
Hi - well the principle is the same, but using Yum as your package manager. So you need to have some repositories set up (I've never used Fedora btw). As root you would type:
That would handle all the dependencies for you. Then try and install whatever package you're trying to run. Mastering your package manager is a useful step to take with any distro.
Compiling from source is useful for setting options which might not come with a pre-compiled package.
thanks a lot ! yum worked like magic.
i've been figuring out how to fix it for the whole night yesterday.
again thanks heaps !!:p :p