
Thank you very much, you helped me a lot.
i have re-configured the fourth item about C++ in ./configure of Healpix.
then i have the file in the dir of ~/src/cxx/generic_gcc/lib:
Quote:
libc_utils.a libcxxsupport.a libfftpack.a libhealpix_cxx.a libsharp.a
then I realized that the correct file address that healpix needs to link in the CMakeCache.txt file should look like this
Quote:
//Path to a file.
HEALPix_INCLUDE_DIR:PATH=/home/congyanping/Software/healpix/Healpix_311/include
//Location where Healpix is installed
HEALPix_PREFIX:PATH=/home/congyanping/Software/healpix/Healpix_311
//Path to a library.
HEALPix_c_utils:FILEPATH=/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libc_utils.a
//Path to a library.
HEALPix_cxxsupport:FILEPATH=/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libcxxsupport.a
//Path to a library.
HEALPix_fftpack:FILEPATH=/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libfftpack.a
//Path to a library.
HEALPix_healpix_cxx:FILEPATH=/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libhealpix_cxx.a
//Path to a library.
HEALPix_psht:FILEPATH=/home/congyanping/Software/healpix/Healpix_311/src/f90/psht
//Path to a library.
HEALPix_sharp:FILEPATH=/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc/lib/libsharp.a
but i coun't find the .a file for HEALPix_psht:FILEPATH= in the dir of ~/src/cxx/generic_gcc/lib
then i run cmake step, i got the result:
Quote:
-- Using GSL from /usr/local
-- 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.
-- Using CXX flags -std=c++11 -fopenmp -g -pipe -O3 -Wall for compiler /usr/bin/c++
-- Using Fortran flags -fopenmp -g -pipe -O3 -Wall for compiler /usr/bin/gfortran
compile_result='TRUE'
run_result='0'
compile_output='Change Dir: /home/congyanping/Software/galtoolslib/galtoolslib/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_bbfa4/fast"
/usr/bin/make -f CMakeFiles/cmTC_bbfa4.dir/build.make CMakeFiles/cmTC_bbfa4.dir/build
make[1]: 进入目录“/home/congyanping/Software/galtoolslib/galtoolslib/build/CMakeFiles/CMakeTmp”
Building CXX object CMakeFiles/cmTC_bbfa4.dir/regex.cxx.o
/usr/bin/c++ -std=c++11 -fopenmp -fPIE -o CMakeFiles/cmTC_bbfa4.dir/regex.cxx.o -c /home/congyanping/Software/galtoolslib/galtoolslib/build/CMakeFiles/CMakeTmp/regex.cxx
Linking CXX executable cmTC_bbfa4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bbfa4.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -fopenmp -rdynamic CMakeFiles/cmTC_bbfa4.dir/regex.cxx.o -o cmTC_bbfa4
make[1]: leaving dir“/home/congyanping/Software/galtoolslib/galtoolslib/build/CMakeFiles/CMakeTmp”
'
run_output=''
-- Configuring done
-- Generating done
-- Build files have been written to: /home/congyanping/Software/galtoolslib/galtoolslib/build
then make step, i got the same error,
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
[ 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
[ 28%] Building CXX object libskymap/CMakeFiles/skymap.dir/Coordinate.cc.o
In file included from /home/congyanping/Software/galtoolslib/galtoolslib/libskymap/Coordinate.cc:1:0:
/home/congyanping/Software/galtoolslib/galtoolslib/libskymap/Coordinate.h:4:10: fatal error: pointing.h: There is no such file or directory there.
#include "pointing.h"
^~~~~~~~~~~~
compilation terminated.
libskymap/CMakeFiles/skymap.dir/build.make:62: recipe for target 'libskymap/CMakeFiles/skymap.dir/Coordinate.cc.o' failed
make[2]: *** [libskymap/CMakeFiles/skymap.dir/Coordinate.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
any idea?
