ParaView::pqApplicationComponents FTBFS: fatal error: 'pqTimer.h' file not found
With current master, building against cmake imported target ParaView::pqApplicationComponents fails with a missing include, like in the Demo1 example:
$ cd Examples/CustomApplications/Demo1
$ mkdir build && cd build
$ cmake -DParaView_DIR=/home/schueller/projects/pv-linux-install/lib/cmake/paraview-5.6/ ..
-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found X11: /usr/include found components: Xt
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so found components: OpenGL GLX
-- Found Python3: /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.so (found suitable version "3.6.7", minimum required is "3.6") found components: Development
-- Configuring done
-- Generating done
-- Build files have been written to: /home/schueller/projects/paraview/Examples/CustomApplications/Demo1/build
$ make
Scanning dependencies of target DemoApp1_autogen
[ 20%] Automatic MOC and UIC for target DemoApp1
[ 20%] Built target DemoApp1_autogen
Scanning dependencies of target DemoApp1
[ 40%] Building CXX object CMakeFiles/DemoApp1.dir/myMainWindow.cxx.o
[ 60%] Building CXX object CMakeFiles/DemoApp1.dir/DemoApp1.cxx.o
[ 80%] Building CXX object CMakeFiles/DemoApp1.dir/DemoApp1_autogen/mocs_compilation.cpp.o
In file included from /home/schueller/projects/paraview/Examples/CustomApplications/Demo1/myMainWindow.cxx:35:
In file included from /home/schueller/projects/pv-linux-install/include/paraview-5.6/pqActiveObjects.h:46:
/home/schueller/projects/pv-linux-install/include/paraview-5.6/pqServer.h:51:10: fatal error: 'pqTimer.h' file not found
#include "pqTimer.h"
^~~~~~~~~~~
1 error generated.
CMakeFiles/DemoApp1.dir/build.make:86: recipe for target 'CMakeFiles/DemoApp1.dir/myMainWindow.cxx.o' failed
make[2]: *** [CMakeFiles/DemoApp1.dir/myMainWindow.cxx.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/DemoApp1.dir/all' failed
make[1]: *** [CMakeFiles/DemoApp1.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
pqTimer.h lives in vtkqttesting:
$ find . -name pqTimer.h
./ThirdParty/QtTesting/vtkqttesting/pqTimer.h
I first tried to add that missing include in !3018 (closed), but it would still be missing in the ParaView::pqApplicationComponents target, plus I dont want to uselessly link to ParaView::qttesting.
related to !2971 (merged), cc @ben.boeckel
Edited by Julien Schueller