Nov 10, 2001 #1 rushtosri Programmer Feb 25, 2001 80 US Hi, I am running Debian Linux could somebody please tell me how to compile the qt "hello world" program in the tutorial? I am obviously missing something simple but I can't get g++ to find the library!! Shri.
Hi, I am running Debian Linux could somebody please tell me how to compile the qt "hello world" program in the tutorial? I am obviously missing something simple but I can't get g++ to find the library!! Shri.
Nov 11, 2001 #2 ifincham IS-IT--Management Jul 11, 2001 1,768 GB Hi, Try putting the explicit path to the lib directory (and header files if needed) e.g. : g++ hello.c -o hello.o -I/usr/lib/qt-1.45/include -L/usr/lib/qt-1.45/lib -lqt or g++ hello.c -o hello.o -I/usr/lib/qt-2.3.1/include -L/usr/lib/qt-2.3.1/lib -lqt (depending on version of headers/modules you have) -I is path the include headers (.h files) -L is path to qt libs -l is name of library containg code needed without the 'lib' - e.g. libqt = qt. Your paths may differ but you get the idea no doubt. You can also set the QTDIR environment variable like : setenv QTDIR /opt/qt-2.3.1 (whatever is appropriate for debian) See also --> http://doc.trolltech.com/3.0/commonproblems.html . Hope this helps Upvote 0 Downvote
Hi, Try putting the explicit path to the lib directory (and header files if needed) e.g. : g++ hello.c -o hello.o -I/usr/lib/qt-1.45/include -L/usr/lib/qt-1.45/lib -lqt or g++ hello.c -o hello.o -I/usr/lib/qt-2.3.1/include -L/usr/lib/qt-2.3.1/lib -lqt (depending on version of headers/modules you have) -I is path the include headers (.h files) -L is path to qt libs -l is name of library containg code needed without the 'lib' - e.g. libqt = qt. Your paths may differ but you get the idea no doubt. You can also set the QTDIR environment variable like : setenv QTDIR /opt/qt-2.3.1 (whatever is appropriate for debian) See also --> http://doc.trolltech.com/3.0/commonproblems.html . Hope this helps