Find the answer to your Linux question:
Results 1 to 5 of 5
Hi guys, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    3

    Compiling a GUI program


    Hi guys,
    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[1]: Entering directory `/root/msl-refbox/src'
    /usr/lib/qt3/bin/uic -o CardDialog.qt.h CardDialog.ui
    make[1]: /usr/lib/qt3/bin/uic: Command not found
    make[1]: *** [CardDialog.qt.cpp] Error 127
    make[1]: Leaving directory `/root/msl-refbox/src'
    make: *** [bin] Error 2


    Please advise . Thanks heaps !


    regards ,

  2. #2
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    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:

    su
    <then supply your password>
    ./configure
    make
    make install

    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. 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 always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    3
    hi fingal,

    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 ?

  4. #4
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    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:

    Yum qt-devel

    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.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    3
    thanks a lot ! yum worked like magic.

    i've been figuring out how to fix it for the whole night yesterday.

    again thanks heaps !!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •