yes, i followed your steps doing that:
Quote:
congyanping@congyanping-OptiPlex-7040:~/Software/galtoolslib/galtoolslib/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/congyanping/Software/galtoolslib/galtoolslib/binary/galtoolslib /home/congyanping/Software/galtoolslib/galtoolslib
my directory of galtoolslib is ~/Software/galtoolslib/galtoolslib
Code:
-- Looking for C++ include alm_healpix_tools.h
-- Looking for C++ include alm_healpix_tools.h - found
-- Looking for C++ include lsconstants.h
-- Looking for C++ include lsconstants.h - found
-- Looking for C++ include alm_powspec_tools.h
-- Looking for C++ include alm_powspec_tools.h - found
-- Looking for C++ include alloc_utils.h
-- Looking for C++ include alloc_utils.h - found
-- Performing Test HEALPIX_STD_COMPLEX
-- Performing Test HEALPIX_STD_COMPLEX - Success
-- Found HEALPix: /home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libhealpix_cxx.a;/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libsharp.a;/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libc_utils.a;/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libfftpack.a;/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libcxxsupport.a
-- Found WCS: /usr/local/lib/libwcs.so
-- Using GSL from /usr/local
-- Found Xerces-C: /usr/local/lib/libxerces-c.so
-- : /usr/local/include
-- Version: 3.2.1
-- CMAKE_BUILD_TYPE not set, defaulting to RelWithDebInfo.
Set in cache or on command line to override.
-- The configure script will now override the cached CMAKE_CXX_FLAGS_RELWITHDEBINFO variable to a hand crafted value for most compilers.
CMAKE_CXX_FLAGS can be used to add compiler flags. To manually define the build flags a CMAKE_BUILD_TYPE other than RelWithDebInfo (the default) and Release should be used.
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP Fortran flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Using CXX flags -std=c++11 -fopenmp -g -pipe -O3 -Wall for compiler /usr/bin/g++
-- Using Fortran flags -fopenmp -g -pipe -O3 -Wall for compiler /usr/bin/gfortran
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL and MODULE mangling
-- Verifying Fortran/CXX Compiler Compatibility
-- Verifying Fortran/CXX Compiler Compatibility - Success
compile_result='TRUE'
run_result='0'
compile_output='Change Dir: /home/congyanping/Software/galtoolslib/galtoolslib/build/CMakeFiles/CMakeTmp
then i run make && make install, i got the result of :
Quote:
[ 1%] Building CXX object utils/CMakeFiles/utils.dir/ErrorLogger.cc.o
[ 3%] Building CXX object utils/CMakeFiles/utils.dir/Timer.cc.o
[ 5%] Building CXX object utils/CMakeFiles/utils.dir/Parameters.cc.o
[ 6%] Building CXX object utils/CMakeFiles/utils.dir/StatusIndicator.cc.o
[ 8%] Building CXX object utils/CMakeFiles/utils.dir/Interpolation.cc.o
[ 10%] Building CXX object utils/CMakeFiles/utils.dir/ReaderErrorReporter.cc.o
[ 11%] Building CXX object utils/CMakeFiles/utils.dir/Reader.cc.o
[ 13%] Building CXX object utils/CMakeFiles/utils.dir/Variables.cc.o
[ 15%] Building CXX object utils/CMakeFiles/utils.dir/md5.cc.o
[ 16%] Building CXX object utils/CMakeFiles/utils.dir/Malloc.cc.o
[ 18%] Linking CXX static library libutils.a
[ 18%] Built target utils
Scanning dependencies of target galstruct
[ 20%] Building CXX object galstruct/CMakeFiles/galstruct.dir/radialprofiles.cpp.o
[ 22%] Building CXX object galstruct/CMakeFiles/galstruct.dir/spiralarms.cpp.o
[ 23%] Building CXX object galstruct/CMakeFiles/galstruct.dir/planeprofiles.cpp.o
[ 25%] Building CXX object galstruct/CMakeFiles/galstruct.dir/cylindricalprofiles.cpp.o
[ 27%] Linking CXX static library libgalstruct.a
[ 27%] Built target galstruct
Scanning dependencies of target skymap
[ 28%] Building CXX object libskymap/CMakeFiles/skymap.dir/Coordinate.cc.o
[ 30%] Building CXX object libskymap/CMakeFiles/skymap.dir/HealpixBaseExtended.cc.o
In file included from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/HealpixBaseExtended.h:10:0,
from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/HealpixBaseExtended.cc:1:
/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/include/healpix_base.h:56:14: warning: inline function ‘I T_Healpix_Base<I>::ring_above(double) const [with I = int]’ used but never defined
inline I ring_above (double z) const;
^~~~~~~~~~
[ 32%] Building CXX object libskymap/CMakeFiles/skymap.dir/Region.cc.o
[ 33%] Building CXX object libskymap/CMakeFiles/skymap.dir/SkySelection.cc.o
[ 35%] Building CXX object libskymap/CMakeFiles/skymap.dir/Skymap.cc.o
[ 37%] Building CXX object libskymap/CMakeFiles/skymap.dir/BaseSky.cc.o
In file included from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.cc:1:0:
/home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.h: In member function ‘std::unique_ptr<SM::BaseSky<T> > SM::BaseSky<T>::CoordinateConversion(SM::CoordSys) const’:
/home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.h:677:47: error: no matching function for call to ‘rangeset<int>::toVector()’
for ( int np : newPixels.toVector() )
^
In file included from /home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/include/healpix_base.h:39:0,
from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/HealpixBaseExtended.h:10,
from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.h:4,
from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.cc:1:
/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/include/rangeset.h:187:10: note: candidate: void rangeset<T>::toVector(std::vector<T>&) const [with T = int]
void toVector (std::vector<T> &res) const
^~~~~~~~
/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/include/rangeset.h:187:10: note: candidate expects 1 argument, 0 provided
In file included from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.cc:1:0:
/home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.h: In member function ‘void SM::BaseSky<T>::Interpolate(SM::BaseSky<T>&, bool) const’:
/home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.h:764:45: error: no matching function for call to ‘rangeset<int>::toVector()’
for ( auto np : newPixels.toVector() )
^
In file included from /home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/include/healpix_base.h:39:0,
from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/HealpixBaseExtended.h:10,
from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.h:4,
from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/BaseSky.cc:1:
/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/include/rangeset.h:187:10: note: candidate: void rangeset<T>::toVector(std::vector<T>&) const [with T = int]
void toVector (std::vector<T> &res) const
^~~~~~~~
/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/include/rangeset.h:187:10: note: candidate expects 1 argument, 0 provided
libskymap/CMakeFiles/skymap.dir/build.make:182: recipe for target 'libskymap/CMakeFiles/skymap.dir/BaseSky.cc.o' failed
make[2]: *** [libskymap/CMakeFiles/skymap.dir/BaseSky.cc.o] Error 1
CMakeFiles/Makefile2:195: recipe for target 'libskymap/CMakeFiles/skymap.dir/all' failed
make[1]: *** [libskymap/CMakeFiles/skymap.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
the error information have not been eliminated.
