I am facing the problem with QT-Designer and when I am compiling the program it is saying crt1.o is not available.
Qt uic (User Interface Conversion) problem
Step 1. I created a .ui file containing a push button using QT Designer which is available in QT version 3.0.5 under Linux environment
Step 2. Then I generated the header file using the command
Uic –o filename.h filename.ui
Step 3. Then I generated the implementation file using the command
Uic –i filename.h –o filename.cpp filename.ui
Step 4. Then I created a filename.pro file as follows
CONFIG+=qt warn_on release
Step 4. When I compile this newly generated filename.cpp file as follows
4.1 qmake –o Makefile filename.pro
It is perfect and returns to the prompt.
4.2 Now when I issue the make command as follows
I get the error as follows –
G++ -o filename filename.o moc_filename.o -W1, -rpath,
-l/usr/X11R6/lib –lqt –lXext –lX11 -lm
/usr/bin/ld: cannot find –lqt
collect2: ld returned 1 exit status
make: ***[filename] Error 1
How do I fix this bug?
Actually, I went through the search and I found the following environment variable settings in one of the websites.
I did the above changes also, but still encountered the same problem.