I’ve tried to compile a few different applications from KDE-apps now and all have failed with the following error:
Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation.
My libqt4 and libqt4-devel are ver 4.5.3-2.1
I’ve used the standard steps to compile -
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=kde4-config --prefix …
make
sudo make install
Could someone please tell me how to determine whether this is really an issue with Qt or point me in the right direction to troubleshoot this further? This is a pretty clean installation of 11.2RC1, recently upgraded to RC2.
>
>I’ve tried to compile a few different applications from KDE-apps now and
>all have failed with the following error:
>
>Qt compiled without support for -fvisibility=hidden. This will break
>plugins and linking of some applications. Please fix your Qt
>installation.
>
>My libqt4 and libqt4-devel are ver 4.5.3-2.1
>
>I’ve used the standard steps to compile -
>mkdir build
>cd build
>cmake -DCMAKE_INSTALL_PREFIX=kde4-config --prefix …
>make
>sudo make install
>
>Could someone please tell me how to determine whether this is really an
>issue with Qt or point me in the right direction to troubleshoot this
>further? This is a pretty clean installation of 11.2RC1, recently
>upgraded to RC2.
If you have a recent install why are you recompiling Qt?
It’s not Qt I’ve been trying to compile, it’s any Qt based application I’m compiling that I’ve had problems with. Basically anything I’ve tried to compile from kde-apps.org is failing with the Qt error.
>
>It’s not Qt I’ve been trying to compile, it’s any Qt based application
>I’m compiling that I’ve had problems with. Basically anything I’ve tried
>to compile from kde-apps.org is failing with the Qt error.
OK. How diligent have you been about including all of the development
(or source package if there is no matching development package)
packages?
Well I’m not sure which devel packages I’d need specifically, but under patterns I’ve got QT4 development, KDE development, C/C++ development and base development.
I’ve also got libkde4-devel.
I also make sure that I have anything required in the READMEs of the stuff I’ve downloaded.
When do you get this error? When running cmake? make?
My cmake looks like this:
> cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.6.0 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Phonon Version: 4.3.0
-- Found Phonon: /usr/lib64/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib64
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/<snipped>/Downloads/comicbook-thumbnails/build
And my make looks like this:
> make
Scanning dependencies of target comicbookthumbnail_automoc
Generating comiccreator.moc
0%] Built target comicbookthumbnail_automoc
Scanning dependencies of target comicbookthumbnail
50%] Building CXX object src/CMakeFiles/comicbookthumbnail.dir/comicbookthumbnail_automoc.o
[100%] Building CXX object src/CMakeFiles/comicbookthumbnail.dir/comiccreator.o
Linking CXX shared module ../lib/comicbookthumbnail.so
[100%] Built target comicbookthumbnail
And make install looks like:
# make install
0%] Built target comicbookthumbnail_automoc
[100%] Built target comicbookthumbnail
Linking CXX shared module CMakeFiles/CMakeRelink.dir/comicbookthumbnail.so
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/lib64/kde4/comicbookthumbnail.so
-- Installing: /usr/share/kde4/services/comicbookthumbnail.desktop
nos@Valis:~/Desktop/Install/comicbook-thumbnails/comicbook-thumbnails/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.3 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Phonon Version: 4.3.0
-- Found Phonon: /usr/lib64/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1104 (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/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
>
>Well I’m not sure which devel packages I’d need specifically, but under
>patterns I’ve got QT4 development, KDE development, C/C++ development
>and base development.
>I’ve also got libkde4-devel.
>
>I also make sure that I have anything required in the READMEs of the
>stuff I’ve downloaded.
Unless there is some mismatch between your devel packages and your run
time libraries my supposition isn’t where the issue is.