Bug 253013 - find_package( KDE4 REQUIRED ) doesn't work with qt 4.7.0-2
Summary: find_package( KDE4 REQUIRED ) doesn't work with qt 4.7.0-2
Status: RESOLVED WORKSFORME
Alias: None
Product: buildsystem
Classification: Developer tools
Component: KDE4 (cmake) (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-02 12:58 UTC by dizieg
Modified: 2013-01-01 18:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dizieg 2010-10-02 12:58:32 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

I am trying to compile simple kde4 app with cmake. Line with find_package( KDE4 REQUIRED ) causes these errors:

CMake Error at /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:1271 (message):
Qt compiled without support for -fvisibility=hidden. This will break
plugins and linking of some applications. Please fix your Qt installation.
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
src/CMakeLists.txt:3 (find_package)

Lines 1268 and 1272 of my FindKDE4Internal.cmake:

try_compile(_compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${_include_dirs}" COMPILE_OUTPUT_VARIABLE _compile_output_var)

if(NOT _compile_result)
message(FATAL_ERROR "Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation.")
endif(NOT _compile_result)

Reproducible: Always
Comment 1 Christoph Feck 2010-10-02 13:07:54 UTC
The error message is really self-explanatory. If you did not compile Qt yourself, please report this bug to the Archlinux distribution bug tracker.
Comment 2 dizieg 2010-10-02 13:13:53 UTC
(In reply to comment #1)
> The error message is really self-explanatory. If you did not compile Qt
> yourself, please report this bug to the Archlinux distribution bug tracker.

I have tried this with archlinux package and also self compiled qt.

additional info:
https://bugs.archlinux.org/task/20979?opened=5537&type[0]=&sev[0]=&due[0]=&cat[0]=&status[0]=open&percent[0]=&reported[0]=

https://bugs.archlinux.org/task/18361?opened=5537&type[0]=&sev[0]=&due[0]=&cat[0]=&status[0]=open&percent[0]=&reported[0]=

https://bugs.kde.org/show_bug.cgi?id=227335
Comment 3 Christoph Feck 2010-10-02 13:22:25 UTC
I am pretty sure the bug is not in KDE, because I compile Qt 4.7 branch and KDE trunk daily without problems.

Reassigning to build system maintainers for clarification.
Comment 4 Jekyll Wu 2013-01-01 11:54:19 UTC
Is that still an issue ?
Comment 5 dizieg 2013-01-01 18:40:27 UTC
Feel free to close.