[Paraview] PythonQt build error

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Nov 18 10:33:56 EST 2016


Oops, I should have tested with Qt 4. It worked for some reason with Qt 5.
I've updated the MR, it was indeed missing essential components.

https://gitlab.kitware.com/paraview/paraview/merge_requests/1201/diffs

Utkarsh

On Fri, Nov 18, 2016 at 2:07 AM, Christoph Willing <
chris.willing at iinet.net.au> wrote:

> Thanks for looking at it so quickly. However that change doesn't fix it
> for me. Here's some of the session:
>
> - first confirm that change (addition of "include(ParaViewQt)" is applied:
> root at sl64-142-vmbuilder:/tmp/SBo/ParaView-v5.2.0/build# head -13
> /tmp/SBo/ParaView-v5.2.0/Plugins/PythonQtPlugin/CMakeLists.txt
> if (ParaView_SOURCE_DIR)
> else()
>   cmake_minimum_required(VERSION 3.3)
>   project(PythonQtPlugin)
>
>   find_package(ParaView REQUIRED)
>   include(${PARAVIEW_USE_FILE})
> endif()
>
>
> include(ParaViewQt)
> set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
> find_package(PythonQt REQUIRED)
>
> - yes, patch applied so try make:
> root at sl64-142-vmbuilder:/tmp/SBo/ParaView-v5.2.0/build# make -j1
> .....
> [ 99%] Generating moc_pqPythonQtPluginImplementation.cxx
> /bin/sh: Qt4::moc: command not found
> Plugins/PythonQtPlugin/CMakeFiles/PythonQtPlugin.dir/build.make:62:
> recipe for target 'Plugins/PythonQtPlugin/moc_pq
> PythonQtPluginImplementation.cxx' failed
> make[2]: *** [Plugins/PythonQtPlugin/moc_pqPythonQtPluginImplementation.cxx]
> Error 127
> CMakeFiles/Makefile2:45361: recipe for target
> 'Plugins/PythonQtPlugin/CMakeFiles/PythonQtPlugin.dir/all' failed
> make[1]: *** [Plugins/PythonQtPlugin/CMakeFiles/PythonQtPlugin.dir/all]
> Error 2
> Makefile:149: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
> So I still have a failure, even with the change in place. If I edit the
> offending file Plugins/PythonQtPlugin/CMakeFiles/PythonQtPlugin.dir/build.make
> and change all instances of "Qt4::moc" to plain "moc", then compilation
> carries on to completion:
>
> root at sl64-142-vmbuilder:/tmp/SBo/ParaView-v5.2.0/build# make -j1
> [ 99%] Generating moc_PythonQtPlugin_Plugin.cxx
> Scanning dependencies of target PythonQtPlugin
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/pqPythonQtPluginImplementation.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/moc_pqPythonQtPluginImplementation.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/moc_pqPythonQtPlugin.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/moc_pqPythonQtMethodHelpers.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/moc_pqPythonEventFilter.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/moc_pqPluginDecorators.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/pqPythonQtPlugin.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/pqPythonQtWrapperFactory.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/PythonQtPlugin_Plugin.cxx.o
> [ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi
> les/PythonQtPlugin.dir/moc_PythonQtPlugin_Plugin.cxx.o
> [ 99%] Linking CXX shared library ../../lib/libPythonQtPlugin.so
> [ 99%] Built target PythonQtPlugin
> .... (continues to end)
>
>
> chris
>
>
>
> On 18/11/16 02:13, Utkarsh Ayachit wrote:
>
>> Chris,
>>
>> Thanks for reporting. Here's a fix:
>> https://gitlab.kitware.com/paraview/paraview/merge_requests/1201
>>
>> Utkarsh
>>
>> On Wed, Nov 16, 2016 at 5:47 PM, Christoph Willing
>> <chris.willing at iinet.net.au> wrote:
>>
>>> Building PythonQt plugin for paraview-5.2.0 fails due to use of Qt4::moc
>>> command in the generated file
>>> (build)/Plugins/PythonQtPlugin/CMakeFiles/PythonQtPlugin.dir/build.make
>>>
>>> I can work around the problem locally by using sed in my build script to
>>> replace "Qt4::moc" in that file with plain "moc" just after cmake
>>> configuration, but it would be nicer not to have to do that.
>>>
>>> No such problem with previous building of paraview-5.1.2.
>>>
>>> I'm using x86_64 Linux with cmake-3.5.2, qt-4.8.7 and PythonQt from
>>> commontk
>>> git repo 20160810.
>>>
>>> chris
>>> _______________________________________________
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20161118/f11e1751/attachment.html>


More information about the ParaView mailing list