[daetools-users] coolprop required?
Object-oriented equation-based modelling and optimisation software
Brought to you by:
ciroki
|
From: Raymond S. <ray...@gm...> - 2017-06-25 23:56:37
|
Hi.
I am trying to compile the project, and I got an error on the coolprop
library compile, but I don't need that package, so I thought I'd just skip
it:
$ sh compile_libraries.sh boost ref_blas_lapack umfpack idas superlu
superlu_mt bonmin nlopt trilinos deal.ii
$ sh compile.sh all
However, I got a different error related to the fact that coolprop wasn't
compiled in the second step:
make[1]: Entering directory
'/home/raymond/builds/mine_python-daetools-svn/20170625/src/trunk/pyCore'
compiling dllmain.cpp
compiling stdafx.cpp
compiling dae_python.cpp
compiling python_wraps.cpp
rm -f libpyCore.so.1.7.0 libpyCore.so libpyCore.so.1 libpyCore.so.1.7
linking ../release/libpyCore.so.1.7.0
/usr/bin/ld: cannot find -lCoolProp
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:253: ../release/libpyCore.so.1.7.0] Error 1
make[1]: Leaving directory
'/home/raymond/builds/mine_python-daetools-svn/20170625/src/trunk/pyCore'
make: *** [Makefile:360: sub-pyCore-make_first-ordered] Error 2
make: Leaving directory
'/home/raymond/builds/mine_python-daetools-svn/20170625/src/trunk'
And for reference, the error from the coolprop compile:
[ 22%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/Fluids/FluidLibrary.cpp.o
[ 24%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/HelmholtzEOSBackend.cpp.o
[ 26%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/HelmholtzEOSMixtureBackend.cpp.o
[ 28%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/MixtureDerivatives.cpp.o
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed/limits.h:194:0,
from
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed/syslimits.h:7,
from
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed/limits.h:34,
from /usr/include/c++/7.1.1/climits:42,
from
/home/raymond/builds/mine_python-daetools-svn/20170625/src/trunk/coolprop/externals/Eigen/Eigen/Core:251,
from
/home/raymond/builds/mine_python-daetools-svn/20170625/src/trunk/coolprop/src/Backends/Helmholtz/MixtureDerivatives.h:17,
from
/home/raymond/builds/mine_python-daetools-svn/20170625/src/trunk/coolprop/src/Backends/Helmholtz/MixtureDerivatives.cpp:1:
/home/raymond/builds/mine_python-daetools-svn/20170625/src/trunk/coolprop/externals/cppformat/fmt/format.h:
In member function ‘void fmt::internal::ArgFormatterBase<Impl,
Char>::visit_char(int)’:
/home/raymond/builds/mine_python-daetools-svn/20170625/src/trunk/coolprop/externals/cppformat/fmt/format.h:1890:20:
error: expected unqualified-id before numeric constant
const unsigned CHAR_WIDTH = 1;
^
[ 31%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/MixtureParameters.cpp.o
make[2]: *** [CMakeFiles/CoolProp.dir/build.make:351:
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/MixtureDerivatives.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/CoolProp.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
I'm happy to provide more output if it may be helpful.
I'm using svn r725 (corresponding to 1.7.0) on Linux using gcc 7.1.1 glibc
2.25, python 3.6.1, numpy 1.13. I realize those are more recent than those
used in the 'official' build based on the sourceforge release page, so it
may be related, especially to the compiler error when trying to build
coolprop. That's why I was hoping to simply skip that one. Is there a way
to build daetools without it at this point? (or an easy way to get around
the coolprop compile error?)
Thanks,
Ray
|