Bug 51357 - qt application template does not compile
Summary: qt application template does not compile
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: git master
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-30 11:52 UTC by Sven Schmidt
Modified: 2002-12-04 19:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Schmidt 2002-11-30 11:52:00 UTC
Version:            (using KDE KDE 3.0.4)
Installed from:    SuSE RPMs
OS:          Linux

Hi!

Trying to compile a qt-application template causes this error message:


cd /home/sschmidt/testqt && gmake -k 
 gmake: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.
 *** Exited with status: 2 ***

Regrads, Sven Schmidt


PS: CVS from 30.11.2002
Comment 1 Harald Fernengel 2002-12-03 22:06:15 UTC
This means that there is no Makefile in your dir. Which template are you using? Did 
you run autmake and friends or qmake to generate the Makefiles first? 
Comment 2 Sven Schmidt 2002-12-04 09:50:48 UTC
Subject: Re:  qt application template does not compile

Harald Fernengel wrote:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>     
>http://bugs.kde.org/show_bug.cgi?id=51357     
>harry@kdevelop.org changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>          Component|general                     |gideon
>            Version|unspecified                 |CVS
>
>
>
>------- Additional Comments From harry@kdevelop.org  2002-12-03 22:06 -------
>This means that there is no Makefile in your dir. Which template are you using? Did 
>you run autmake and friends or qmake to generate the Makefiles first?
>
>
>  
>
Hi!

As I wrote, i was using the qt-application template.
gideon asked me to start qmake to build the project.

That's all.

Regrads, Sven Schmidt


Comment 3 Harald Fernengel 2002-12-04 15:23:58 UTC
So, did you run qmake and did it succeed? Make sure qmake is in your path. After 
running qmake, you should get a Makefile in your project dir. 
Comment 4 Sven Schmidt 2002-12-04 15:39:40 UTC
Subject: Re:  qt application template does not compile

Harald Fernengel wrote:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>     
>http://bugs.kde.org/show_bug.cgi?id=51357     
>
>
>
>
>------- Additional Comments From harry@kdevelop.org  2002-12-04 15:23 -------
>So, did you run qmake and did it succeed? Make sure qmake is in your path. After 
>running qmake, you should get a Makefile in your project dir.
>
>
>  
>
Hi!

If I try to run qmake bash tells me that it couldn,t find it.
The is that the path to qmake (/usr/lib/qt3/bin) is not in $PATH.
But if I change in the project's directory and enter manually

qmake testqt.pro, qmake says:


QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: testqt.pro


No idea what to do.


Thanks, Sven Schmidt


Comment 5 Sven Schmidt 2002-12-04 15:40:11 UTC
Subject: Re:  qt application template does not compile

Harald Fernengel wrote:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>     
>http://bugs.kde.org/show_bug.cgi?id=51357     
>
>
>
>
>------- Additional Comments From harry@kdevelop.org  2002-12-04 15:23 -------
>So, did you run qmake and did it succeed? Make sure qmake is in your path. After 
>running qmake, you should get a Makefile in your project dir.
>
>
>  
>
Hi!

If I try to run qmake bash tells me that it couldn,t find it.
The is that the path to qmake (/usr/lib/qt3/bin) is not in $PATH.
So I did: export PATH=$PATH:/usr/lib/qt3/bin.

But if I change in the project's directory and enter manually

qmake testqt.pro, qmake says:


QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: testqt.pro


No idea what to do.


Thanks, Sven Schmidt


Comment 6 Harald Fernengel 2002-12-04 15:47:40 UTC
Read the qmake documentation? add $QTDIR/bin to your path, set QMAKESPEC to 
"linux-g++" or whatever you are using. 
Comment 7 Caleb Tennis 2002-12-04 18:48:59 UTC
Try doing this: 
 
QTDIR=/usr/lib/qt3 && /usr/lib/qt3/bin/qmake 
 
Change that to whatever dir that qt is installed to. 
Comment 8 Sven Schmidt 2002-12-04 19:32:55 UTC
Subject: Re:  qt application template does not compile

Caleb Tennis wrote:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>     
>http://bugs.kde.org/show_bug.cgi?id=51357     
>
>
>
>
>------- Additional Comments From caleb@aei-tech.com  2002-12-04 18:48 -------
>Try doing this: 
> 
>QTDIR=/usr/lib/qt3 && /usr/lib/qt3/bin/qmake 
> 
>Change that to whatever dir that qt is installed to.
>
>
>  
>
I tried it and it compiled but it couldn't find the qt-library:

cd /home/sschmidt/Desktop/Trash/testqt && gmake -k
 cd src && gmake -f Makefile
 gmake[1]: Wechsel in das Verzeichnis 
Comment 9 Caleb Tennis 2002-12-04 19:45:50 UTC
Do you have libqt or libqt-mt in your /usr/lib/qt3/lib directory?  If you only have libqt-mt, you 
need to change your .pro file options and add "thread".  You can do this in KDevelop's QMake 
Manager project options settings.   
 
Caleb 
Comment 10 Sven Schmidt 2002-12-05 11:09:54 UTC
Subject: Re:  qt application template does not compile

Caleb Tennis wrote:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>     
>http://bugs.kde.org/show_bug.cgi?id=51357     
>
>
>
>
>------- Additional Comments From caleb@aei-tech.com  2002-12-04 19:45 -------
>Do you have libqt or libqt-mt in your /usr/lib/qt3/lib directory?  If you only have libqt-mt, you 
>need to change your .pro file options and add "thread".  You can do this in KDevelop's QMake 
>Manager project options settings.   
> 
>Caleb
>
>
>  
>
Hi!

Maybe I'am wrong but there is no qmake-Project-Option setting.
But the .pro-file looks like this:

SUBDIRS += src
TEMPLATE = subdirs
CONFIG += release \
          warn_on \
          qt \
          thread


And I only habe the mt-version installed but since there is a 
"thread"-option in the .pro-file it is supposed to work, isn't it?
 
sschmidt@perkuno:/usr/lib/qt3/lib> la
insgesamt 6702
drwxr-xr-x    2 root     root          448 2002-11-08 16:40 .
drwxr-xr-x   10 root     root          248 2002-09-10 19:04 ..
lrwxrwxrwx    1 root     root           18 2002-10-25 16:30 libeditor.so 
-> libeditor.so.1.0.0
lrwxrwxrwx    1 root     root           18 2002-10-25 16:30 
libeditor.so.1 -> libeditor.so.1.0.0
lrwxrwxrwx    1 root     root           18 2002-10-25 16:30 
libeditor.so.1.0 -> libeditor.so.1.0.0
-rwxr-xr-x    1 root     root       217768 2002-09-12 21:05 
libeditor.so.1.0.0
lrwxrwxrwx    1 root     root           17 2002-10-25 16:30 libqt-mt.so 
-> libqt-mt.so.3.0.5
lrwxrwxrwx    1 root     root           17 2002-10-25 15:37 
libqt-mt.so.3 -> libqt-mt.so.3.0.5
lrwxrwxrwx    1 root     root           17 2002-10-25 15:37 
libqt-mt.so.3.0 -> libqt-mt.so.3.0.5
-rwxr-xr-x    1 root     root      6431120 2002-10-09 23:34 
libqt-mt.so.3.0.5
lrwxrwxrwx    1 root     root           15 2002-10-25 16:30 libqui.so -> 
libqui.so.1.0.0
lrwxrwxrwx    1 root     root           15 2002-10-25 16:30 libqui.so.1 
-> libqui.so.1.0.0
lrwxrwxrwx    1 root     root           15 2002-10-25 16:30 
libqui.so.1.0 -> libqui.so.1.0.0
-rwxr-xr-x    1 root     root       197024 2002-09-12 21:05 libqui.so.1.0.0



Thanks, Sven S.