[CMake] QT library succeeded

Radek Lonka lonka.radek at gmail.com
Mon Aug 19 03:11:02 EDT 2013


Yuo can also put the export to your ~/.profile:

#Qt4.8
PATH=/usr/local/Trolltech/Qt-4.8.4/bin:$PATH
export PATH

Then you do not have to type it every time.
This is enough it does not need qmake as qmake is
in the path you have just exported.

Radek

On 08/18/2013 02:47 AM, marco wrote:
> 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
>>
>
> -- 
>
> 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