<div dir="ltr">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.<div><br></div><div><a href="https://gitlab.kitware.com/paraview/paraview/merge_requests/1201/diffs">https://gitlab.kitware.com/paraview/paraview/merge_requests/1201/diffs</a><br></div><div><br></div><div>Utkarsh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 18, 2016 at 2:07 AM, Christoph Willing <span dir="ltr"><<a href="mailto:chris.willing@iinet.net.au" target="_blank">chris.willing@iinet.net.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for looking at it so quickly. However that change doesn't fix it for me. Here's some of the session:<br>
<br>
- first confirm that change (addition of "include(ParaViewQt)" is applied:<br>
root@sl64-142-vmbuilder:/tmp/S<wbr>Bo/ParaView-v5.2.0/build# head -13 /tmp/SBo/ParaView-v5.2.0/Plugi<wbr>ns/PythonQtPlugin/CMakeLists.<wbr>txt<br>
if (ParaView_SOURCE_DIR)<br>
else()<br>
  cmake_minimum_required(VERSION 3.3)<br>
  project(PythonQtPlugin)<br>
<br>
  find_package(ParaView REQUIRED)<br>
  include(${PARAVIEW_USE_FILE})<br>
endif()<br>
<br>
<br>
include(ParaViewQt)<br>
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})<br>
find_package(PythonQt REQUIRED)<br>
<br>
- yes, patch applied so try make:<br>
root@sl64-142-vmbuilder:/tmp/S<wbr>Bo/ParaView-v5.2.0/build# make -j1<br>
.....<br>
[ 99%] Generating moc_pqPythonQtPluginImplementa<wbr>tion.cxx<br>
/bin/sh: Qt4::moc: command not found<br>
Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/build.<wbr>make:62: recipe for target 'Plugins/PythonQtPlugin/moc_pq<wbr>PythonQtPluginImplementation.<wbr>cxx' failed<br>
make[2]: *** [Plugins/PythonQtPlugin/moc_pq<wbr>PythonQtPluginImplementation.<wbr>cxx] Error 127<br>
CMakeFiles/Makefile2:45361: recipe for target 'Plugins/PythonQtPlugin/CMakeF<wbr>iles/PythonQtPlugin.dir/all' failed<br>
make[1]: *** [Plugins/PythonQtPlugin/CMakeF<wbr>iles/PythonQtPlugin.dir/all] Error 2<br>
Makefile:149: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
<br>
<br>
So I still have a failure, even with the change in place. If I edit the offending file Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/build.<wbr>make and change all instances of "Qt4::moc" to plain "moc", then compilation carries on to completion:<br>
<br>
root@sl64-142-vmbuilder:/tmp/S<wbr>Bo/ParaView-v5.2.0/build# make -j1<br>
[ 99%] Generating moc_PythonQtPlugin_Plugin.cxx<br>
Scanning dependencies of target PythonQtPlugin<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/pqPytho<wbr>nQtPluginImplementation.cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/moc_pqP<wbr>ythonQtPluginImplementation.<wbr>cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/moc_<wbr>pqPythonQtPlugin.cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/moc_<wbr>pqPythonQtMethodHelpers.cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/moc_<wbr>pqPythonEventFilter.cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/moc_<wbr>pqPluginDecorators.cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/pqPytho<wbr>nQtPlugin.cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/pqPytho<wbr>nQtWrapperFactory.cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/PythonQ<wbr>tPlugin_Plugin.cxx.o<br>
[ 99%] Building CXX object Plugins/PythonQtPlugin/CMakeFi<wbr>les/PythonQtPlugin.dir/moc_<wbr>PythonQtPlugin_Plugin.cxx.o<br>
[ 99%] Linking CXX shared library ../../lib/libPythonQtPlugin.so<br>
[ 99%] Built target PythonQtPlugin<br>
.... (continues to end)<br>
<br>
<br>
chris<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 18/11/16 02:13, Utkarsh Ayachit wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Chris,<br>
<br>
Thanks for reporting. Here's a fix:<br>
<a href="https://gitlab.kitware.com/paraview/paraview/merge_requests/1201" rel="noreferrer" target="_blank">https://gitlab.kitware.com/par<wbr>aview/paraview/merge_requests/<wbr>1201</a><br>
<br>
Utkarsh<br>
<br>
On Wed, Nov 16, 2016 at 5:47 PM, Christoph Willing<br>
<<a href="mailto:chris.willing@iinet.net.au" target="_blank">chris.willing@iinet.net.au</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Building PythonQt plugin for paraview-5.2.0 fails due to use of Qt4::moc<br>
command in the generated file<br>
(build)/Plugins/PythonQtPlugin<wbr>/CMakeFiles/PythonQtPlugin.<wbr>dir/build.make<br>
<br>
I can work around the problem locally by using sed in my build script to<br>
replace "Qt4::moc" in that file with plain "moc" just after cmake<br>
configuration, but it would be nicer not to have to do that.<br>
<br>
No such problem with previous building of paraview-5.1.2.<br>
<br>
I'm using x86_64 Linux with cmake-3.5.2, qt-4.8.7 and PythonQt from commontk<br>
git repo 20160810.<br>
<br>
chris<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:<br>
<a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
</blockquote>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>