This issue is still not resolved for me. I installed a fresh Opensuse 13.2 (no QT4), installed QT 5.6.2 from the QT.io, build ITK and VTK as specified without any problems and this Qt5X11Extras issue still persists. I tried hard coding to the /src/Applications/CMakeLists.txt
as /opt/Qt5.6.2/5.6/gcc_64/lib/libQt5X11Extras.so. it still doesn't resolve.
This is the warning at the cmake, and below is there error during make .
Although this is a hack on the CMake, you can always add a hardcode path to the CMake to the location of the library.
In the failing targets, such as the GUI library (src/Application/CMakeLists.txt) after line 96 add "/usr/lib64/libQt5X11Extras.so" to directly force linkage.
It's also possible the Qt5 library your VTK is linking with differs from the one that Shapeworks is attempting to link with.
If all else fails, download and install qt5 directly from qt.io in a different (no-default) location, and rebuild VTK and Shapeworks using that path.
On Sep 1, 2016, at 9:55 AM, Murat Maga <maga@uw.edu> wrote:
Any suggestions?MFrom: shapeworks-users-request@sci.utah.edu [mailto:shapeworks-users-request@sci.utah.edu] On Behalf Of Murat Maga
Sent: Wednesday, August 31, 2016 1:21 PM
To: shapeworks-users@sci.utah.edu
Subject: [shapeworks-users] QT5X11Extras error while building SW Studio on LinuxWhen I try to build SW Studio on Centos 7, I first get warning message below about QT5X11Extras during the cmake, and then eventually a build error:rpm -ql qt5-qtx11extras-devel-5.6.1-2.el7.x86_64 shows that Qt5X11Extras is installed on the system. How can I make cmake aware of its location?/usr/include/qt5/QtX11Extras/usr/include/qt5/QtX11Extras/QX11Info/usr/include/qt5/QtX11Extras/QtX11Extras/usr/include/qt5/QtX11Extras/QtX11ExtrasDepends/usr/include/qt5/QtX11Extras/QtX11ExtrasVersion/usr/include/qt5/QtX11Extras/qtx11extrasglobal.h/usr/include/qt5/QtX11Extras/qtx11extrasversion.h/usr/include/qt5/QtX11Extras/qx11info_x11.h/usr/lib64/cmake/Qt5X11Extras/usr/lib64/cmake/Qt5X11Extras/Qt5X11ExtrasConfig.cmake/usr/lib64/cmake/Qt5X11Extras/Qt5X11ExtrasConfigVersion.cmake/usr/lib64/libQt5X11Extras.prl/usr/lib64/libQt5X11Extras.so/usr/lib64/pkgconfig/Qt5X11Extras.pc/usr/lib64/qt5/mkspecs/modules/qt_lib_x11extras.pri/usr/lib64/qt5/mkspecs/modules/qt_lib_x11extras_private.priCMake Warning (dev) at Surfworks/CMakeLists.txt:12 (ADD_LIBRARY):Policy CMP0028 is not set: Double colon in target name means ALIAS orIMPORTED target. Run "cmake --help-policy CMP0028" for policy details.Use the cmake_policy command to set the policy and suppress this warning.Target "Surfworks" links to target "Qt5::X11Extras" but the target was notfound. Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at Application/CMakeLists.txt:84 (ADD_EXECUTABLE):Policy CMP0028 is not set: Double colon in target name means ALIAS orIMPORTED target. Run "cmake --help-policy CMP0028" for policy details.Use the cmake_policy command to set the policy and suppress this warning.Target "ShapeWorksStudio" links to target "Qt5::X11Extras" but the targetwas not found. Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at CLT/CMakeLists.txt:12 (ADD_EXECUTABLE):Policy CMP0028 is not set: Double colon in target name means ALIAS orIMPORTED target. Run "cmake --help-policy CMP0028" for policy details.Use the cmake_policy command to set the policy and suppress this warning.Target "ShapeworksCLT" links to target "Qt5::X11Extras" but the target wasnot found. Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?This warning is for project developers. Use -Wno-dev to suppress it.-- Generating done-- Build files have been written to: /root/Downloads/SW_Studio/ShapeWorksStudio/build/usr/bin/ld: cannot find -lQt5::X11Extrascollect2: error: ld returned 1 exit statusmake[2]: *** [Application/ShapeWorksStudio] Error 1make[1]: *** [Application/CMakeFiles/ShapeWorksStudio.dir/all] Error 2make: *** [all] Error 2
Archive powered by MHonArc 2.6.18.