small patch for qmake/trollproject; one other problem

Andreas Wuest AndreasWuest at
Wed Nov 27 21:36:02 UTC 2002


i have the following problem with a qmake project, which 
can be easily reproduced.

1. create a new qmake project with Application name : test
   Set the location to /some/path/testxxx
   Note the directory and the application name must have different
   name. finish project.

   now try to build the project. gideon tries to execute the following
   command : 

   cd /home/andy/testxxx && qmake
   which fails since the project name is not

   The attached patch fixes that problem.

2. For some reason the created binary does always have the name src 
   (same as the directory). The bin directory is still empty, even
   though i expect the binary to be in that directory.
   For some reason the TARGET in the seems to be ignored.
   Changing the target name to blablubb still creates a binary with the
   name src, even tough i expect blablubb. Any ideas ??



"First they ignore you, then they laugh about you, then then fight you,
 then you win. " Mahadma Ghandi

-------------- next part --------------
Index: trollprojectpart.cpp
RCS file: /home/kde/kdevelop/parts/trollproject/trollprojectpart.cpp,v
retrieving revision 1.30
diff -u -r1.30 trollprojectpart.cpp
--- trollprojectpart.cpp	7 Nov 2002 01:38:49 -0000	1.30
+++ trollprojectpart.cpp	27 Nov 2002 20:30:45 -0000
@@ -206,10 +206,8 @@
 void TrollProjectPart::startQMakeCommand(const QString &dir)
-    QFileInfo fi(dir);
     QString cmdline = "qmake ";
-    cmdline += fi.baseName() + ".pro";
+    cmdline += projectName() + ".pro";
     QString dircmd = "cd ";
     dircmd += dir;

More information about the KDevelop-devel mailing list