PDA

View Full Version : running application in linux



aj2903
27th October 2009, 05:58
Hi..
I have installed qt 4.4.3 on X11.
I copied the source from Windows(in which Qt is installed) to linux.
While compiling the application in linux it shows following error:

Makefile:66: *** multiple target patterns. Stop.


Is there any command to create .pro & makefile in Qt running on linux.

addu
27th October 2009, 06:19
Hi

did u delete previously created make file, make-debug ,make-release, files and release and debug folders.

Just use only source , header and .pro file and i include if u have any resource file.


Thanks

Yuvaraj R

aj2903
27th October 2009, 06:42
hi addu.

I tried as you said i.e.


did u delete previously created make file, make-debug ,make-release, files and release and debug folders.

Just use only source , header and .pro file and i include if u have any resource file.


Now i have just src,.h & .pro file in the folder.
After compling error is occuring:

make: *** No targets specified and no makefile found. Stop.

How can we create Makefile in Linux.

jiaco
27th October 2009, 06:44
You seem to be missing the first step: qmake

try 'which qmake' to make sure it is in your path.

Then:

qmake
make

aj2903
27th October 2009, 06:45
when i gave qmake it gives following error :

bash: qmake: command not found

How to set the path of qmake.

jiaco
28th October 2009, 06:43
Put something like this in one of you bash login/startup scripts.

/home/user/.bashrc or /home/user/.bash_profile

export PATH=$PATH:/opt/Qt/bin

where /opt/Qt/bin is whatever your install directory was. The new nokia installers iirc put the necessary programs and libraries into accessible locations, my qmake is in /usr/bin.

What kind of linux and which version of Qt are you working with?