Bug 59887 - "There is no Makefile in this directory. Run qmake first?" but runs tmake
Summary: "There is no Makefile in this directory. Run qmake first?" but runs tmake
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: QMake (show other bugs)
Version: 3.0.0a4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 14:04 UTC by Roger Larsson
Modified: 2007-01-13 13:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Added "-o Makefile" to tmake builds, and more... (15.54 KB, patch)
2003-09-20 03:43 UTC, Roger Larsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Larsson 2003-06-16 14:04:55 UTC
Version:           3.0.0a4 (using KDE 3.1.9)
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19-4GB

When first compiling a qutopia template based project.
I got a window "There is no Makefile in this directory. Run qmake first?"
Cliking yes - runs 'tmake'! (where does the text in the window come
from?)

I did not have tmake installed. After installation it did not find the
tmake.conf - added it to the environment variable list in make options
Environment Variables list.

But this is not enough. tmake needs the "-o Makefile" option to create
the makefile.
Comment 1 Roger Larsson 2003-07-04 23:59:01 UTC
Update: 
 
Noticed that I forgot to mention what I added... 
TMAKEPATH /usr/lib/tmake/qws/linux-x86-g++ 
(or some other TMAKEPATH) 
 
Contents of this file is (I probably have a OLD tmake - SuSE 8.1): 
 $Id: tmake.conf,v 1.1 1999/11/08 03:06:27 warwick Exp $ 
 
But compiling generates lots of errors, modify Makefile 
	INCPATH	=	$(QTDIR)/include 
Compile lines 
	$(CXX) $(CXXFLAGS) -I $(INCPATH) -o $@ $< 
 
Remaining errors can be explained - I do not have qt embedded 
installed... (#include <qpe/qpeapplication.h> fails) 
Comment 2 Amilcar do Carmo Lucas 2003-09-19 20:39:04 UTC
Can you send a patch against latest CVS ? 
Comment 3 Roger Larsson 2003-09-20 03:43:35 UTC
Created attachment 2513 [details]
Added "-o Makefile" to tmake builds, and more...

Added "-o Makefile" for tmake builds
When tmake is to be run query
 "There is no Makefile in this directory. Run tmake first?"
(still query "... Run qmake first?" when qmake will be used)

*** Cleaned up duplicated code! ***
      see new private method 'make'

Bugs not fixed yet:

* tmake requires TMAKEPATH, this is not set but can be handled with the
following addition to 
qtopiaapp/app.kdevelop
	<envvar value="/usr/lib/tmake/qws/linux-x86-g++" name="TMAKEPATH" />

* the "Messages" output from tmake is immedeatly overwritten by the output from
gmake.

* it builds with error, no INCPATH defined (installation problem?)
Comment 4 Andreas Pakulat 2007-01-13 13:52:45 UTC
This has already been fixed for 3.3.