makefile doesnot work
I installed qt through tarball.
qt1.cpp in qt folder
- #include <qapplication.h>
- #include <qlabel.h>
- int main(int argc, char *argv[])
- {
- app.setMainWidget(label);
- label->show();
- return app.exec();
- }
while making the executable file
- compilation terminated.
- make: *** [q1.o] Error 1
I am following the book – C++ gui programming with QT3 by Jasmin Blanchette
I instlled QT 4.4.3 tarball
8 replies
Right, you didn’t install Qt where it is looking for it. When you say “set the appropriate path” what exactly did you do? In general when installing software on Linux (I assume this is something along those lines), you would:
- ./configure --prefix=/path/where/you/want/it
- make
- make install
I’m not sure how Qt’s installation scheme differs from the norm, but you might try that.
You must log in to post a reply. Not a member yet? Register here!



