Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Continuing CMake problem

Date2018-01-18 14:32
FromJohn
Subject[Csnd-dev] Continuing CMake problem
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++.....

Date2018-01-18 14:46
FromSteven Yi
SubjectRe: [Csnd-dev] Continuing CMake problem
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++.....
>

Date2018-01-18 15:20
Fromjpff
SubjectRe: [Csnd-dev] Continuing CMake problem
PS

cmake says

CMake Warning at frontends/CsoundAC/CMakeLists.txt:14 (find_package):
   Could not find a package configuration file provided by "Eigen3" with 
any
   of the following names:

     Eigen3Config.cmake
     eigen3-config.cmake

   Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
   "Eigen3_DIR" to a directory containing one of the above files.  If 
"Eigen3"
   provides a separate development package or SDK, be sure it has been

Date2018-01-18 16:02
Fromjpff
SubjectRe: [Csnd-dev] Continuing CMake problem
Curiouser and curiouser!

Chua opcode is built OK so this bit is OK #9but I thought boost was not 
used now).

Looks as if the trouble is in csoundAC which I do not build anyway.



On Thu, 18 Jan 2018, Steven Yi wrote:

> 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).
>