So:
set (QT_QMAKE_EXECUTABLE "${mySrc}/ExternalLibs/Qt/qt_current/bin/qmake")

This initially worked.  But only initially.  Then I did something dastardly: I 
got rid of the original place I compiled the libraries -- which qmake still 
somehow knows despite being compiled with -no-rpath.

Now I get this error:
Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as 
/home/myName/qt-everywhere-commercial-src-4.6.0/Release/lib
Warning: /home/myName/qt-everywhere-commercial-src-4.6.0/Release/lib does NOT 
exist, Qt must NOT be installed correctly.
CMake Error at /home/jwillis/cmake-2.8.0/Modules/FindQt4.cmake:673 (MESSAGE):
  Could NOT find QtCore header

I also tried Tyler's idea, which fails in exactly the same way, with the same 
error.

The idea here is my group has people who may want to compile the code elsewhere 
on various different machines without installing any libraries.  We're 
dependent on a bunch right now, and it's a pain for each developer to have to 
get the right version of the right libraries, in the right order, to compile on 
their machine.  So we just stick already compiled versions in a seperate libs 
directories.  And no, we'd actually prefer their location set in the cmakefile 
so we can change centrally when we decide to upgrade libraries.

Thanks for the help so far, but I'm still hacking away at the moment.

--James

________________________________________
From: Dave Partyka [dave.part...@kitware.com]
Sent: Wednesday, January 13, 2010 1:01 PM
To: James Willis
Cc: cmake@cmake.org
Subject: Re: [CMake] FindQt in a Specific place?

I think if you set these two variables you will get the same desired result.


set(DESIRED_QT_VERSION 4)
set(QT_QMAKE_EXECUTABLE /home/qt/4.6.0/bin/qmake)

On Wed, Jan 13, 2010 at 1:07 PM, James Willis 
<jwill...@lgc.com<mailto:jwill...@lgc.com>> wrote:
Is there any good way of telling findqt (I don't really care about findqt3) 
where to find Qt?

Like say you did:
set(QT_QMAKE_LOCATION /home/myself/qt4.6.0/bin)
so that I later upgrade and do:
set(QT_QMAKE_LOCATION /home/myself/qt4.6.1/bin) later without having to muck 
with my path, but still have findQt find Qt there?

I was looking at writing such a feature, if it's not there, and if you'd be 
willing to take it as a patch.

--James


----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to