Andrew,

Today's gatekeeper review brought in fixes to address the Qt 5.3 build
issue. The CMake warnings still remain. I'll have them diagnosed
soonish.

Utkarsh

On Tue, Jun 17, 2014 at 8:11 AM, Andrew Maclean
<[email protected]> wrote:
> 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
>
> ___________________________________________
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to