I'm compiling some VTK MWE with a cmake like this:
cmake_minimum_required (VERSION 3.9)
project (edl VERSION 0.9999 LANGUAGES C CXX)
# find_package(TBB REQUIRED)
find_package(VTK REQUIRED)
add_executable(edl edl.cxx)
target_link_libraries(edl ${VTK_LIBRARIES})
I call cmake like:
mkdir -p ./build && cd ./build
cmake -D CMAKE_LIBRARY_PATH=$PATH_WHERE_TBB_AND_VTK_ARE ..
make
and I get the following error:
(pyvista_cxx) ❯ make
[ 50%] Building CXX object CMakeFiles/edl.dir/edl.cxx.o
In file included from /home/sik/miniconda3/envs/pyvista_cxx/include/vtk-8.2/vtkAtomicTypes.h:18:0,
from /home/sik/miniconda3/envs/pyvista_cxx/include/vtk-8.2/vtkObjectBase.h:54,
from /home/sik/miniconda3/envs/pyvista_cxx/include/vtk-8.2/vtkObject.h:45,
from /home/sik/miniconda3/envs/pyvista_cxx/include/vtk-8.2/vtkProp.h:32,
from /home/sik/miniconda3/envs/pyvista_cxx/include/vtk-8.2/vtkProp3D.h:37,
from /home/sik/miniconda3/envs/pyvista_cxx/include/vtk-8.2/vtkActor.h:36,
from /home/sik/repos/pyvista_is256_mwe/edl.cxx:20:
/home/sik/miniconda3/envs/pyvista_cxx/include/vtk-8.2/vtkAtomic.h:28:10: fatal error: tbb/atomic.h: No such file or directory
#include <tbb/atomic.h>
^~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/edl.dir/build.make:62: recipe for target 'CMakeFiles/edl.dir/edl.cxx.o' failed
make[2]: *** [CMakeFiles/edl.dir/edl.cxx.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/edl.dir/all' failed
make[1]: *** [CMakeFiles/edl.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Issue:
I'm compiling some VTK MWE with a cmake like this:
I call cmake like:
and I get the following error:
tbb/atomic.h
is there:as a workaround I can add the include path
And this time
vtkRegressionTestImage
is not there:I could not find
vtkRegressionTestImage
in the recipe either.Is there a way to export those files with the recipie? shall I do something different to get the vtk targets, so that I can link against them?
Environment (
conda list
):Details about
conda
and system (conda info
):