FS#20979 - [qt] compiled without support for -fvisibility=hidden.

Attached to Project: Arch Linux
Opened by Onofrej Popleteny (Dizie) - Tuesday, 28 September 2010, 17:24 GMT
Last edited by Andrea Scarpino (BaSh) - Wednesday, 06 October 2010, 21:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I need -fvsibility=hidden for developing kde4 app.

find_package( KDE4 REQUIRED )
include_directories( ${KDE4_INCLUDES} )
target_link_libraries( project ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} )



Additional info:
extra/qt 4.6.3-1



This task depends upon

Closed by  Andrea Scarpino (BaSh)
Wednesday, 06 October 2010, 21:06 GMT
Reason for closing:  Not a bug
Additional comments about closing:  qt is already built with hidden visibility
Comment by Pierre Schmitz (Pierre) - Tuesday, 28 September 2010, 17:46 GMT
Sorry, but you provided way too less information. Especially because Qt is compiled with hidden visibility. See /usr/share/qt/mkspecs/common/g++.conf for example. Whatever you try to compile, most likely that one is broken and not Qt.
Comment by Onofrej Popleteny (Dizie) - Tuesday, 28 September 2010, 21:53 GMT
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)
Comment by Andrea Scarpino (BaSh) - Wednesday, 29 September 2010, 10:33 GMT
same as  FS#18361 

Loading...