<div dir="ltr">Has anyone been able to do this?<div>I am using Linux with Qt5.3 and CMake 3.0.0.</div><div>I have set PARAVIEW_QT_VERSION to 5</div><div>QT 5.3 is found OK</div><div>It seems that there is an issue with double colons in target names as evidenced by the CMake generation warnings raised:</div>
<div>--------------------------------------------<br></div><div><div>CMake Warning (dev) at VTK/CMake/vtkModuleMacros.cmake:497 (add_library):</div><div> Policy CMP0028 is not set: Double colon in target name means ALIAS or</div>
<div> IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.</div><div> Use the cmake_policy command to set the policy and suppress this warning.</div><div><br></div><div> Target "pqWidgets" links to target "Qt5::Test" but the target was not</div>
<div> found. Perhaps a find_package() call is missing for an IMPORTED target, or</div><div> an ALIAS target is missing?</div><div>Call Stack (most recent call first):</div><div> VTK/CMake/vtkModuleMacros.cmake:581 (vtk_add_library)</div>
<div> Qt/Widgets/CMakeLists.txt:288 (vtk_module_library)</div><div>This warning is for project developers. Use -Wno-dev to suppress it.</div><div><br></div><div>and so on until</div><div><br></div><div>CMake Warning (dev) at VTK/CMake/vtkForwardingExecutable.cmake:91 (add_executable):</div>
<div> Policy CMP0028 is not set: Double colon in target name means ALIAS or</div><div> IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.</div><div> Use the cmake_policy command to set the policy and suppress this warning.</div>
<div><br></div><div> Target "paraview" links to target "Qt5::Xml" but the target was not found.</div><div> Perhaps a find_package() call is missing for an IMPORTED target, or an</div><div> ALIAS target is missing?</div>
<div>Call Stack (most recent call first):</div><div> CMake/ParaViewBranding.cmake:294 (vtk_add_executable_with_forwarding2)</div><div> Applications/ParaView/CMakeLists.txt:55 (build_paraview_client)</div><div>This warning is for project developers. Use -Wno-dev to suppress it.</div>
<div><br></div><div>Generating done</div><div><div>--------------------------------------------</div><div><br></div><div></div></div><div>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.</div>
<div><br></div><div>The build then fails, after VTK is built, with (if testing is set):</div><div><div>--------------------------------------------</div><div></div></div><div><div>[ 28%] Built target vtkPVServerManagerCore</div>
<div>Linking CXX shared library ../../../lib/libQtTesting.so</div><div>CMakeFiles/QtTesting.dir/pqNativeFileDialogEventPlayer.cxx.o: In function `pqNativeFileDialogEventPlayer::start()':</div><div>/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventPlayer.cxx:122: undefined reference to `qt_filedialog_existing_directory_hook'</div>
<div>...</div><div>/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventTranslator.cxx:152: undefined reference to `qt_filedialog_open_filenames_hook'</div><div>/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventTranslator.cxx:153: undefined reference to `qt_filedialog_save_filename_hook'</div>
<div>collect2: error: ld returned 1 exit status</div><div>make[2]: *** [lib/libQtTesting.so] Error 1</div><div>make[1]: *** [ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/all] Error 2</div><div>make: *** [all] Error 2</div>
</div><div>--------------------------------------------</div><div>If testing is not set the errors are similar:</div><div><div>--------------------------------------------</div></div><div><div>Linking CXX shared library ../../../lib/<a href="http://libvtkPVServerManagerCore-pv4.1.so">libvtkPVServerManagerCore-pv4.1.so</a></div>
<div>[ 17%] Built target vtkPVServerManagerCore</div><div>Linking CXX shared library ../../../lib/libQtTesting.so</div><div>CMakeFiles/QtTesting.dir/pqNativeFileDialogEventPlayer.cxx.o: In function `pqNativeFileDialogEventPlayer::start()':</div>
<div>/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventPlayer.cxx:122: undefined reference to `qt_filedialog_existing_directory_hook'</div></div><div>...</div><div>
<div>/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventTranslator.cxx:152: undefined reference to `qt_filedialog_open_filenames_hook'</div><div>/home/amaclean/Development/Kitware/src/ParaView/ThirdParty/QtTesting/vtkqttesting/pqNativeFileDialogEventTranslator.cxx:153: undefined reference to `qt_filedialog_save_filename_hook'</div>
<div>collect2: error: ld returned 1 exit status</div><div>make[2]: *** [lib/libQtTesting.so] Error 1</div><div>make[1]: *** [ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/all] Error 2</div><div>make: *** [all] Error 2</div>
</div><div><br></div><div><br></div><div>Regards</div><div> Andrew</div><div><br></div><div></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________
</div></div>