[CMake] QT library succeeded
marco
piccima at gmail.com
Sat Aug 17 20:47:52 EDT 2013
Thank you for the answer,
I have /usr/local/Trolltech/Qt-4.8.4/bin in the PATH, it's enough or it
needs qmake too?
After a while I was able to avoid the Qt problem, but something strange
happens with vxl.
This library need lingeotiff and so I have libgeotiff.so in /usr/lib.
vxl cmake go very smooth without complains, but now I'm trying to build
my repository linked that wrap
most functions and lib from vxl, so I put in CMakeLists.txt the
vxl.cmake from vxl directory.
At this point cmake complain with the usual message of two lib and it
doesn't know which to link.....
At the and also with the complians it makes the right Makefile and all
the executable are right.
How to deal with this strange behavior??
In my case it works, but I the linking can be a bit random, I have to
check all the time that it use the right lib?
Thank you
On 08/17/2013 11:27 AM, Matthew Smith wrote:
> On 16/08/13 23:49, marco wrote:
>> Hello,
>> I'm having some touble wit Qt and and another library.
>> I'm working on ubuntu 12.04 32 bit
>> I have the Qt package from Trolltech in usr/local and unfortunately also
>> a version in usr/local.
>> Normally with other libs I don't have troubles in selecting the path and
>> using the local version in QT.
>> This time instead is happening something weird.
>> I point the local QT directory, but when linking is messing up with the
>> QT from the usr/local dir.
>> Is there an easy way to exclude /usr/lib for that compilation, or
>> selecting the library for linking that I want?
>>
>
> If it's the version in /usr/local you're having trouble with, you need
> to set the PATH environment variable to include the directory with
> qmake in it. For Qt 4 that's typically something like
> /usr/local/Trolltech/Qt-4.x.x/bin, so type this:
>
> PATH=/usr/local/Trolltech/Qt-4.x.x/bin:$PATH
> export PATH
>
> Then run CMake and it will run qmake to determine which version you
> have while configuring.
>
> Regards,
>
> Matthew Smith
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For
> more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list