[Paraview] Building ParaView with QT 5.3

Andrew Maclean andrew.amaclean at gmail.com
Tue Jun 17 08:11:18 EDT 2014


Has anyone been able to do this?
I am using Linux with Qt5.3 and CMake 3.0.0.
I have set PARAVIEW_QT_VERSION to 5
QT 5.3 is found OK
It seems that there is an issue with double colons in target names as
evidenced by  the CMake generation warnings raised:
--------------------------------------------
CMake Warning (dev) at VTK/CMake/vtkModuleMacros.cmake:497 (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 "pqWidgets" links to target "Qt5::Test" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target,
or
  an ALIAS target is missing?
Call Stack (most recent call first):
  VTK/CMake/vtkModuleMacros.cmake:581 (vtk_add_library)
  Qt/Widgets/CMakeLists.txt:288 (vtk_module_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

and so on until

CMake Warning (dev) at VTK/CMake/vtkForwardingExecutable.cmake:91
(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 "paraview" links to target "Qt5::Xml" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?
Call Stack (most recent call first):
  CMake/ParaViewBranding.cmake:294 (vtk_add_executable_with_forwarding2)
  Applications/ParaView/CMakeLists.txt:55 (build_paraview_client)
This warning is for project developers.  Use -Wno-dev to suppress it.

Generating done
--------------------------------------------

>From what I understand CMake 3.0.0 is searching for targets, then files on
disk which is the OLD behaviour. So this may not be the problem as I have
been unable to build with earlier versions of CMake.

The build then fails, after VTK is built, with (if testing is set):
--------------------------------------------
[ 28%] Built target vtkPVServerManagerCore
Linking CXX shared library ../../../lib/libQtTesting.so
CMakeFiles/QtTesting.dir/pqNativeFileDialogEventPlayer.cxx.o: In function
`pqNativeFileDialogEventPlayer::start()':
/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventPlayer.cxx:122:
undefined reference to `qt_filedialog_existing_directory_hook'
...
/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventTranslator.cxx:152:
undefined reference to `qt_filedialog_open_filenames_hook'
/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventTranslator.cxx:153:
undefined reference to `qt_filedialog_save_filename_hook'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libQtTesting.so] Error 1
make[1]: ***
[ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/all] Error 2
make: *** [all] Error 2
--------------------------------------------
If testing is not set the errors are similar:
--------------------------------------------
Linking CXX shared library ../../../lib/libvtkPVServerManagerCore-pv4.1.so
[ 17%] Built target vtkPVServerManagerCore
Linking CXX shared library ../../../lib/libQtTesting.so
CMakeFiles/QtTesting.dir/pqNativeFileDialogEventPlayer.cxx.o: In function
`pqNativeFileDialogEventPlayer::start()':
/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventPlayer.cxx:122:
undefined reference to `qt_filedialog_existing_directory_hook'
...
/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventTranslator.cxx:152:
undefined reference to `qt_filedialog_open_filenames_hook'
/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventTranslator.cxx:153:
undefined reference to `qt_filedialog_save_filename_hook'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libQtTesting.so] Error 1
make[1]: ***
[ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/all] Error 2
make: *** [all] Error 2


Regards
   Andrew

-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140617/2878225d/attachment-0001.html>


More information about the ParaView mailing list