[Development] qt-5.0.1 incorrect ..._install_prefix cmake vars ?

Stephen Kelly stephen.kelly at kdab.com
Fri Mar 29 18:30:43 CET 2013


On Friday, March 29, 2013 10:33:01 Rex Dieter wrote:
> During packaging qt5 for fedora, someone noticed that cmake .config files
> seemingly set incorrect _install_prefix variables.  One example is in
> qtbase, cmake files installed (on x86_64) as:
> 
> /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake
> /usr/lib64/cmake/Qt5Core/Qt5CoreConfigExtras.cmake
> 
> contain:
> 
> get_filename_component(_qt5_corelib_install_prefix
> "${CMAKE_CURRENT_LIST_DIR}/" ABSOLUTE)
> 
> so ends up with:
> 
> _qt5_corelib_install_prefix = /usr/lib64/cmake/Qt5Core
> 
> which to my untrained eye looks very wrong, and of course, queries in those
> .cmake files to find qmake (and friends) will fail to find anything at
> _qt5_corelib_install_prefix/bin/qmake
> 
> 
> Is this a bug or am I missing something?
> 
> see also downstream bug, http://bugzilla.redhat.com/929227

Thanks for reporting. It looks like a bug alright. 

Can you try the 5.0.2 rc or the release branch from git? 

What is in your configure line? 

Does the patch b9c1593435db3ed44e23c23dc19f22d7a68d7b01 help? 

You may also want 7ac58d1ff0815566ba1de09519299b5119e5ee91. See also the bug 
linked at  
http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/45855

Thanks,

-- 
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130329/955125a5/attachment.sig>


More information about the Development mailing list