luebking / virtuality

Qt4/Qt5 widget style
GNU General Public License v2.0
20 stars 7 forks source link

Qt5 build fails with '-Wl,--no-undefined' #17

Closed shumski closed 10 years ago

shumski commented 10 years ago

[ 292s] CMakeFiles/virtuality.dir/hacks.cpp.o: In function triggerWMMove': [ 292s] /home/abuild/rpmbuild/BUILD/virtuality-0.0.0.1/hacks.cpp:243: undefined reference toxcb_send_event' [ 292s] /home/abuild/rpmbuild/BUILD/virtuality-0.0.0.1/hacks.cpp:246: undefined reference to xcb_ungrab_pointer' [ 292s] /home/abuild/rpmbuild/BUILD/virtuality-0.0.0.1/hacks.cpp:262: undefined reference toxcb_send_event'

Proposed patch:

diff --git a/CMakeLists.txt b/CMakeLists.txt index 0314c55..1d515a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,7 +100,7 @@ add_library (virtuality SHARED ${virtuality_SOURCES} ${virtuality_MOC_SRCS} ${vi

if ( X11_FOUND )

shumski commented 10 years ago

err, sorry - i was too naive. as xcb isn't searched/found, ${XCB_XCB_LIBRARIES} are empty... possible solutions: https://build.opensuse.org/package/view_file/home:sumski:hazard:to:your:stereo/virtuality-qt5/no-undefined.diff?expand=1 or copy FindXCB from e.g. kde-workspace/KDE/4.11