Difference in how Qt is detected in RobWork and RobWorkStudio

7 views
Skip to first unread message

Anders Bøgild - Robo[LAB]

unread,
Oct 1, 2009, 5:08:40 AM10/1/09
to RobWorkDevel
Hi group

Just want to report a small finding, that is also a little
annoying :-)

There seems to be a small difference in how cmake detects Qt between
RW and RWS . When i generate my Eclipse project and makefiles with
'cmake -G "Eclipse CDT4 - MinGW Makefiles" -D
CMAKE_BUILD_TYPE=Release ../..' from within build/Release RW has no
problems finding and identifying Qt. In RWS however Qt is not found
unless i eksplicitly put the path to qmake.exe in the system path.
E.g. add 'C:\Qt\2009.03\qt\bin' to system PATH environment variable.

I run Win XP with Qt 2009.03, CMake 2.6.4 and MinGW 5.1.6.

Jimmy Alison Jørgensen

unread,
Oct 4, 2009, 7:10:09 AM10/4/09
to robwor...@googlegroups.com
Hmm, RW should not use Qt, if it does search for Qt then thats definitely an error.

Regarding RWS then the scripts in the cmake system is not always able to autodetect where Qt is installed/placed. As you describe and as is described in cmake the script FindQt/FindQt3/FindQt4 needs qmake in the system path.

You could possibly add the directory of your qt bin folder to the system path like this (notice not tested)

SET($ENV{PATH} "$ENV{PATH};c:/qt4/bin")

/Jimmy

Anders Bøgild - Robo[LAB]

unread,
Oct 16, 2009, 7:43:49 AM10/16/09
to RobWorkDevel
My mistake, dunno where i got that from :-)
Reply all
Reply to author
Forward
0 new messages