I added Qt to my system's path using this command:
then qmake worked smoothly.
But got one more issue, the make command yield this error:
I guess that g++ can't locate Qt Libraries.. !Qt Code:
To copy to clipboard, switch view to plain text mode
well I found that thread in Ubuntu forums:
http://ubuntuforums.org/archive/index.php/t-231764.html
So, is it really that g++ can't locate my Qt Libraries? If so, how to solve it?by asimon
:
....
You need to tell g++ where to find the include files. I.e. something like
$ g++ -I/usr/include/qt4/include foo.cpp
But this is not enough. You also need to tell it what libraries to link against, i.e. something like
$ g++ -I/usr/include/qt4/include -L/usr/lib/include/qt4/lib -lQtGui -lQtCore -lpthread foo.cpp
You should better use some automation here, like for example Qt's qmake. I.e. put your foo.cpp program in a directory called 'foo' and run 'qmake -project'. That will scann the current directory for source files and create a foo.pro project file. Then call 'qmake' which generates a Makefile from the .pro file. Then a simple 'make' will build you program 'foo' and if everything works as expected it should take care of all the needed compiler options.
:
...
Or just I didn't add path correctly? If so, how to do it right ?
---------------------
@HelderC:
Sure it's far better, but installing more than 300 mega bytes with a slow and unstable connection is a big issue for me.I think better you install it from Synaptic.
that because I've a slow Internet connection on th Linux machine, so I can't use internet to download it.
Thanks all for replaying.





Reply With Quote

Bookmarks