> On May 26, 2015, 8:32 p.m., Harald Sitter wrote: > > I'll take it. > > > > FTR the best solution would probably mean refactoring qt5_use_modules to > > isolate the mapping logic for use with LINK_LIBRARIES, or making the entire > > compatibility stuff not be so terrible. Hardly worthwhile as Thiago > > suggests moving forward Qt simply cannot be built without visibility anyway.
This commit doesn't fix the problem for me, I still get this error: Run Build Command:"/usr/bin/make" "cmTryCompileExec2335756599/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec2335756599.dir/build.make CMakeFiles/cmTryCompileExec2335756599.dir/build make[1: Entering directory '/opt/kde/build/phonon/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /opt/kde/build/phonon/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec2335756599.dir/check_qt_visibility.cpp.o /usr/lib/ccache/bin/c++ -pipe -DQT_STRICT_ITERATORS -DQURL_NO_CAST_FROM_STRING -DQT_NO_HTTP -DQT_NO_FTP -Wformat -Werror=format-security -Werror=return-type -Wno-variadic-macros -Wlogical-op -Wmissing-include-dirs -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden -fPIE -I/usr/include/qt -I/usr/include/qt/QtCore -I/usr/lib/qt/mkspecs/linux-g++ -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -o CMakeFiles/cmTryCompileExec2335756599.dir/check_qt_visibility.cpp.o -c /opt/kde/build/phonon/CMakeTmp/check_qt_visibility.cpp In file included from /usr/include/qt/QtCore/QtGlobal:1:0, from /opt/kde/build/phonon/CMakeTmp/check_qt_visibility.cpp:1: /usr/include/qt/QtCore/qglobal.h:1050:4: Fehler: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)." # error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\ ^ CMakeFiles/cmTryCompileExec2335756599.dir/build.make:57: recipe for target 'CMakeFiles/cmTryCompileExec2335756599.dir/check_qt_visibility.cpp.o' failed make[1: *** [CMakeFiles/cmTryCompileExec2335756599.dir/check_qt_visibility.cpp.o Error 1 make[1: Leaving directory '/opt/kde/build/phonon/CMakeFiles/CMakeTmp' Makefile:117: recipe for target 'cmTryCompileExec2335756599/fast' failed make: *** [cmTryCompileExec2335756599/fast Error 2 CMake Error at cmake/FindPhononInternal.cmake:418 (message): Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation (try passing --reduce-exports to configure). Call Stack (most recent call first): CMakeLists.txt:47 (include) - David ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/123874/#review80860 ----------------------------------------------------------- On May 26, 2015, 8:51 p.m., Hrvoje Senjan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://git.reviewboard.kde.org/r/123874/ > ----------------------------------------------------------- > > (Updated May 26, 2015, 8:51 p.m.) > > > Review request for Build System, Phonon and Harald Sitter. > > > Repository: phonon > > > Description > ------- > > Or to be more accurate, with commit 3eca75de67b3fd2c890715b30c7899cebc096fe9 > > > Diffs > ----- > > cmake/FindPhononInternal.cmake 44862b5 > > Diff: https://git.reviewboard.kde.org/r/123874/diff/ > > > Testing > ------- > > Builds with 5.4.2 branch, or mentioned commit backported. > Otherwise check_qt_visibility fails: > > ``` > [ 126s] -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success > [ 126s] Change Dir: > /home/abuild/rpmbuild/BUILD/phonon-4.8.3/build/CMakeFiles/CMakeTmp > [ 126s] > [ 126s] Run Build Command:"/usr/bin/gmake" "cmTryCompileExec3719375587/fast" > [ 126s] /usr/bin/gmake -f > CMakeFiles/cmTryCompileExec3719375587.dir/build.make > CMakeFiles/cmTryCompileExec3719375587.dir/build > [ 126s] gmake[1]: Entering directory > '/home/abuild/rpmbuild/BUILD/phonon-4.8.3/build/CMakeFiles/CMakeTmp' > [ 126s] /usr/bin/cmake -E cmake_progress_report > /home/abuild/rpmbuild/BUILD/phonon-4.8.3/build/CMakeFiles/CMakeTmp/CMakeFiles > 1 > [ 126s] Building CXX object > CMakeFiles/cmTryCompileExec3719375587.dir/check_qt_visibility.cpp.o > [ 126s] /usr/bin/c++ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall > -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables > -fasynchronous-unwind-tables -g -DNDEBUG -Wnon-virtual-dtor -Wno-long-long > -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith > -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new > -fno-common -Woverloaded-virtual -fvisibility=hidden -fPIE > -I/usr/include/qt5 -I/usr/include/qt5/QtCore > -I/usr/lib64/qt5/mkspecs/linux-g++ -I/usr/include/qt5/QtWidgets > -I/usr/include/qt5/QtGui -o > CMakeFiles/cmTryCompileExec3719375587.dir/check_qt_visibility.cpp.o -c > /home/abuild/rpmbuild/BUILD/phonon-4.8.3/build/CMakeTmp/check_qt_visibility.cpp > [ 126s] In file included from /usr/include/qt5/QtCore/QtGlobal:1:0, > [ 126s] from > /home/abuild/rpmbuild/BUILD/phonon-4.8.3/build/CMakeTmp/check_qt_visibility.cpp:1: > [ 126s] /usr/include/qt5/QtCore/qglobal.h:1051:4: error: #error "You must > build your code with position independent code if Qt was built with > -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)." > [ 126s] # error "You must build your code with position independent code > if Qt was built with -reduce-relocations. "\ > [ 126s] ^ > [ 126s] CMakeFiles/cmTryCompileExec3719375587.dir/build.make:57: recipe for > target 'CMakeFiles/cmTryCompileExec3719375587.dir/check_qt_visibility.cpp.o' > failed > [ 126s] gmake[1]: Leaving directory > '/home/abuild/rpmbuild/BUILD/phonon-4.8.3/build/CMakeFiles/CMakeTmp' > [ 126s] gmake[1]: *** > [CMakeFiles/cmTryCompileExec3719375587.dir/check_qt_visibility.cpp.o] Error 1 > [ 126s] Makefile:117: recipe for target 'cmTryCompileExec3719375587/fast' > failed > [ 126s] gmake: *** [cmTryCompileExec3719375587/fast] Error 2 > [ 126s] > [ 126s] CMake Error at cmake/FindPhononInternal.cmake:416 (message): > [ 126s] Qt compiled without support for -fvisibility=hidden. This will > break > [ 126s] plugins and linking of some applications. Please fix your Qt > installation > [ 126s] (try passing --reduce-exports to configure). > [ 126s] Call Stack (most recent call first): > [ 126s] CMakeLists.txt:47 (include) > ``` > > > Thanks, > > Hrvoje Senjan > >
_______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem