shapeworks-users

Text archives Help


Re: [shapeworks-users] QT5X11Extras error while building SW Studio on Linux


Chronological Thread 
  • From: Murat Maga <maga@uw.edu>
  • To: Brig Bagley <brigsters@hotmail.com>, Praful Agrawal <prafulag@cs.utah.edu>, "shapeworks-users@sci.utah.edu" <shapeworks-users@sci.utah.edu>
  • Subject: Re: [shapeworks-users] QT5X11Extras error while building SW Studio on Linux
  • Date: Thu, 15 Dec 2016 19:04:42 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=maga@uw.edu;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

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 .


cmake -DVTK_DIR=../../VTK-Build/ -DITK_DIR=../../../Downloads/ITK-Build/   -DQT5WidgetsDIR=/opt/Qt5.6.2/5.6/gcc_64/lib/cmake/Qt5Widgets -DQT5OpenGLDIR=/opt/Qt5.6.2/5.6/gcc_64/lib/cmake/Qt5OpenGL  -DCMAKE_BUILD_TYPE=Release ../src

CMake Warning (dev) at Application/CMakeLists.txt:84 (ADD_EXECUTABLE):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED 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 target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Surfworks/CMakeLists.txt:12 (ADD_LIBRARY):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED 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 not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Surfworks/CMakeLists.txt:12 (ADD_LIBRARY):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED 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 not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an 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 or
  IMPORTED 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 target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, 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 or
  IMPORTED 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 was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

make -j 8
[  1%] [  7%] Automatic moc for target ShapeWorksStudio
Built target TinyXML
[ 18%] [ 19%] Built target itkParticleShapeModeling
Built target ShapeWorksGroom
[ 21%] Built target ShapeWorksOptimize
Linking CXX executable ShapeworksCLT
[ 45%] Built target Surfworks
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lQt5::X11Extras
collect2: error: ld returned 1 exit status
CLT/CMakeFiles/ShapeworksCLT.dir/build.make:359: recipe for target 'CLT/ShapeworksCLT' failed
make[2]: *** [CLT/ShapeworksCLT] Error 1
CMakeFiles/Makefile2:415: recipe for target 'CLT/CMakeFiles/ShapeworksCLT.dir/all' failed
make[1]: *** [CLT/CMakeFiles/ShapeworksCLT.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 45%] Built target ShapeWorksStudio_automoc
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2


From: Brig Bagley <brigsters@hotmail.com>
Sent: Monday, September 12, 2016 4:43:59 PM
To: Praful Agrawal; Murat Maga
Subject: Re: [shapeworks-users] QT5X11Extras error while building SW Studio on Linux
 

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.


Brig Bagley

Software Developer

brig@sci.utah.edu


From: shapeworks-users-request@sci.utah.edu <shapeworks-users-request@sci.utah.edu> on behalf of Praful Agrawal <prafulag@cs.utah.edu>
Sent: Thursday, September 1, 2016 9:00:07 AM
To: shapeworks-users@sci.utah.edu; Murat Maga
Subject: Re: [shapeworks-users] QT5X11Extras error while building SW Studio on Linux
 
We have never build it on CentOS, we use OpenSuse Leap version. Mostly it should be fixed by setting CMAKE_PREFIX_PATH to /usr , if not then you might need to google this issue.

On Sep 1, 2016, at 9:55 AM, Murat Maga <maga@uw.edu> wrote:

Any suggestions? 
M
 
From: 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 Linux
 
When 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.pri
 
 
CMake Warning (dev) at Surfworks/CMakeLists.txt:12 (ADD_LIBRARY):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED 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 not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an 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 or
  IMPORTED 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 target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, 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 or
  IMPORTED 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 was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, 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::X11Extras
collect2: error: ld returned 1 exit status
make[2]: *** [Application/ShapeWorksStudio] Error 1
make[1]: *** [Application/CMakeFiles/ShapeWorksStudio.dir/all] Error 2
make: *** [all] Error 2



  • Re: [shapeworks-users] QT5X11Extras error while building SW Studio on Linux, Murat Maga, 12/15/2016

Archive powered by MHonArc 2.6.18.

Top of page