Summary: | dev-util/cmake-2.8.10.2-r2[qt4] fails to build when qt5 is installed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tman <cornicx> |
Component: | [OLD] Development | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | qt, tomboy64 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
var/tmp/portage/dev-util/cmake-2.8.10.2-r2/temp/build.log
CMAKE_VERBOSE=ON |
Description
tman
2013-04-14 20:33:33 UTC
Created attachment 345586 [details]
var/tmp/portage/dev-util/cmake-2.8.10.2-r2/temp/build.log
> /usr/include/qt5/QtCore/qglobal.h:1079:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE."
That's odd for more than one reason: the check during bootstrap does detect qt 4.8.4.
Why the build.log isn't verbose? Did you set CMAKE_VERBOSE to off? (In reply to comment #3) > Why the build.log isn't verbose? Did you set CMAKE_VERBOSE to off? yes its off Please turn it on, rebuild, and attach the new build.log Created attachment 345620 [details]
CMAKE_VERBOSE=ON
CMAKE_VERBOSE=ON
its a problem with qt. i tried to emerge with deactivated USE for qt4. USE="-qt4" emerge -1av cmake and it works, so it must besomething wrong with qt support. i hope it can fix as soon as possible. thanks You have also Qt5 installed (so have I). See this error message: /usr/include/qt5/QtCore/qglobal.h:1079:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE." For some reason cmake picks Qt5 rather than Qt4 to compile. I can confirm this. I have some Qt5 packages installed and unmerging them permits to successfully emerge cmake-2.8.10.2-r2. Could you test cmake-2.8.11 (available in KDE overlay) and see if that still has the issue? The release announcement for it mentioned some qt detection fixes. CMake still tries to use Qt5 first, but the ebuild in the overlay handles this properly. (The ebuild code was around for 2.8.10 too, but was removed due to qt5 ebuilds/use flag not in portage yet. Since more and more stuff is supporting qt5, I will try to organise the global (masked) qt5 USE flag). So...is this fixed in 2.8.11.1? (In reply to Davide Pesavento from comment #12) > So...is this fixed in 2.8.11.1? Working without issue here. *** Bug 474544 has been marked as a duplicate of this bug. *** |