| Perhaps the CMake file is incorrectly coded:
check_deps(BUILD_CHUA_OPCODES EIGEN3_INCLUDE_PATH)
if(BUILD_CHUA_OPCODES)
make_plugin(chua chua/ChuaOscillator.cpp)
target_include_directories(chua PRIVATE ${Boost_INCLUDE_DIRS})
endif()
It checks for EIGEN3 to be defined, but does not add it to the include
path for the target. It also sets Boost without checking for it, but
also does not use boost. Perhaps it's a typo and should be using
EIGEN3_INCLUDE_PATH instead. (You could also set
-DBUILD_CHUA_OPCODES=0 to skip building these).
On Thu, Jan 18, 2018 at 9:32 AM, John wrote:
> I am still trying to understand why I get errors I cmake when looking
> at eigen dependency
>
> In CMakeFiles/CMakeError.log I see
>
> Determining if the include file eigen3/Eigen/Dense exists failed with the follow
> ing output:
> Change Dir: /home/jpff/Sourceforge/csound/New/csound6/CMakeFiles/CMakeTmp
>
> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
> gmake[1]: Entering directory `/home/jpff/Sourceforge/csound/New/csound6/CMakeFil
> es/CMakeTmp'
> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCom
> pileExec.dir/build
> gmake[2]: Entering directory `/home/jpff/Sourceforge/csound/New/csound6/CMakeFil
> es/CMakeTmp'
> /usr/bin/cmake -E cmake_progress_report /home/jpff/Sourceforge/csound/New/csound
> 6/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building CXX object CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.cxx.o
> /usr/bin/c++ -I/home/jpff/Sourceforge/csound/New/csound6/CMakeFiles/CMakeTmp/
> pthread.h -o CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.cxx.o -c /home/j
> pff/Sourceforge/csound/New/csound6/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
> /home/jpff/Sourceforge/csound/New/csound6/CMakeFiles/CMakeTmp/CheckIncludeFile.c
> xx:1:30: fatal error: eigen3/Eigen/Dense: No such file or directory
> compilation terminated.
> gmake[2]: *** [CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.cxx.o] Error 1
> gmake[2]: Leaving directory `/home/jpff/Sourceforge/csound/New/csound6/CMakeFile
> s/CMakeTmp'
> gmake[1]: *** [cmTryCompileExec/fast] Error 2
> gmake[1]: Leaving directory `/home/jpff/Sourceforge/csound/New/csound6/CMakeFile
> s/CMakeTmp'
>
> and in particular the line
>
> xx:1:30: fatal error: eigen3/Eigen/Dense: No such file or directory
>
> I find this confusing as I clearly have that file
>
> xenakis:~/csound6> ls -l /usr/include/eigen3/Eigen/Dense
> -rw-r--r-- 1 root root 122 Jul 18 2016 /usr/include/eigen3/Eigen/Dense
>
> What could possibly be wrong? This is GNU/Linux OpenSUSE Leap 42.3
>
> Naturally my suspicion is C++.....
> |