Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT does not find qmake (Mac OS X)
CDT does not find qmake (Mac OS X) [message #156464] Tue, 18 October 2005 16:01 Go to next message
Eclipse UserFriend
I'm working on a project with qt on mac OS X.

My makefile is
//...
all:
cd src; qmake; make
//..
qmake is in /usr/local/Trolltech/Qt-4.0.1/bin/ and the
PATH is defined in my .profile.

In a terminal there is no problem.


In eclipse I have the following error:
cd src; qmake; make
/bin/sh: line 1: qmake: command not found
make[1]: *** No targets specified and no makefile found. Stop.
make: *** [all] Error 2

Is it a bug from cdt ? Or do I have to set the complete
path (local dependant) to qmake in my makefile ?

thanks
Re: CDT does not find qmake (Mac OS X) [message #156479 is a reply to message #156464] Wed, 19 October 2005 04:27 Go to previous message
Eclipse UserFriend
Serge wrote:

> I'm working on a project with qt on mac OS X.
>
> My makefile is
> //...
> all:
> cd src; qmake; make

Just wondering, why don't you use "cd src && qmake && make"?

> //..
> qmake is in /usr/local/Trolltech/Qt-4.0.1/bin/ and the
> PATH is defined in my .profile.
>
> In a terminal there is no problem.

I would bet that when you add "echo $PATH" to the above, qmake will not be
in the path.

> In eclipse I have the following error:
> cd src; qmake; make
> /bin/sh: line 1: qmake: command not found
> make[1]: *** No targets specified and no makefile found. Stop.
> make: *** [all] Error 2
>
> Is it a bug from cdt ? Or do I have to set the complete
> path (local dependant) to qmake in my makefile ?

Most probably this is due to the fact the /bin/sh is invoked as a
non-interactive shell, and hence doesn't read ~/.profile on start-up. The
man page on sh should give you the gory details on this.

HTH, Markus
Previous Topic:Activate a new plugin
Next Topic:mingw gdb exits immediately with cdt 3.0.0
Goto Forum:
  


Current Time: Mon Jun 09 09:28:25 EDT 2025

Powered by FUDForum. Page generated in 0.09288 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top