It is currently Sat May 24, 2025 7:31 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jun 01, 2018 8:08 am 
Offline

Joined: Mon Mar 31, 2014 9:14 pm
Posts: 12
Hi Galprop team,
I have been using GALPROP (v-54) for quite long time and now just wanted to test the new modified version (56), but I'm facing some difficulties in installing galtoolslib and galprop.

I installed all the required software like ccfits, clhep, and even the new WCS (which was written as optional in Readme but after checking the discussion on the forum, I understood it's a necessary package.)

I create the build directory for galtoolslib, but then cannot understand how to use the required libraries in cmake.
The previous version (54) had a very detailed instruction for configure but the new version Readme has too little instructions to understand properly.
Can you please help with cmake -DCMAKE_ .... line ? It just says path for the installed software, but I'm having a difficulty in linking the software packages (likes of ccfits, clhep,cfitsio,healpix,xerces....)
Any help would be appreciated. :)
sincerely
suvo


Top
 Profile  
 
PostPosted: Fri Jun 01, 2018 8:18 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 61
Location: Stanford
Could you give a little more information about how you installed the packages. If you used your system package manager (the recommended method for most packages) they should be detected automatically. If you installed manually you may need to set the paths in cmake. There is unfortunately not a completely homogeneous way to specify the different packages but when you run cmake and it cannot find the packages, there should be a descriptive error message pointing towards the solution. Usually it is as simple as setting -D<package_name>_PREFIX=/path/to/install/prefix.
It would also help if you could point out explicitly what information is needed in the README so we can update it for future release.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
PostPosted: Sat Jun 02, 2018 1:49 am 
Offline

Joined: Mon Mar 31, 2014 9:14 pm
Posts: 12
Thank you for your reply.
Okay, I'm giving a detailed description of my installation attempt.

Inside /home/suvo/galprop-56.1, I have created a binary directory. The binary directory contains all the installed packages like ccfits, cfitsio and so on.

So an example installation of cfitsio in the binary directory would be as follows
1. extract the tar file (cfitsio.tar)
2. inside the extracted folder, I do a configure, ./configure FC='gcc --m64' --prefix=/home/suvo/galprop-56.1/binary/binarycfitsio
3. make
4. make install

I do the same for the remaining packages (Xerces, gsl and so on...).

Then extract galtoolslib tar file and put them in a separate folder (/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source). I create a separate build directory /home/suvo/galprop-56.1/buildgaltoolslib
Inside this directory I try to run cmake as follows

:~/galprop-56.1/buildgaltoolslib$ cmake /home/suvo/galprop-56.1/galtoolslib-1.0.855-Source -DCMAKE_INSTALL_PREFIX=/home/suvo/galprop-56.1/galtoolslib

This ends with the following error message

-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Cfitsio not found. Use Cfitsio_PREFIX or Cfitsio_INC and Cfitsio_LIB to specify its location
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Cfitsio (missing: Cfitsio_LIBRARY Cfitsio_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindCfitsio.cmake:42 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/Modules/FindCCfits.cmake:16 (find_package)
CMakeLists.txt:19 (find_package)


-- Configuring incomplete, errors occurred!



So it cannot detect the cfitsio package which is placed in the binary directory.

Should I do a configure before running the cmake ? I'm not sure how exactly I can link the installed packages during galtoolslib installation using cmake.

Thanking you again,
Sincerely
suvo


Top
 Profile  
 
PostPosted: Mon Jun 04, 2018 11:16 pm 
Offline

Joined: Mon Mar 31, 2014 9:14 pm
Posts: 12
Okay, nevermind!

I've figured the building of galtoolslib.
Inside the build directory, I gave the paths for include and lib folders for each package in CMakeCache.text file.
Eventually it's done!
However, while running make now I'm getting another error

/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source/libskymap/BaseSky.h: In member function ‘std::unique_ptr<SM::BaseSky<T> > SM::BaseSky<T>::CoordinateConversion(SM::CoordSys) const’:
/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source/libskymap/BaseSky.h:674:13: error: ‘rangeset’ was not declared in this scope
rangeset<int> newPixels;
^
/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source/libskymap/BaseSky.h:674:22: error: expected primary-expression before ‘int’
rangeset<int> newPixels;
^
/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source/libskymap/BaseSky.h:675:96: error: ‘newPixels’ was not declared in this scope
newMap->query_disc_inclusive(co.healpixAng(newMap->GetCoordinateSystem()), radius, newPixels);
^
/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source/libskymap/BaseSky.h: In member function ‘void SM::BaseSky<T>::Interpolate(SM::BaseSky<T>&, bool) const’:
/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source/libskymap/BaseSky.h:761:10: error: ‘rangeset’ was not declared in this scope
rangeset<int> newPixels;
^
/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source/libskymap/BaseSky.h:761:19: error: expected primary-expression before ‘int’
rangeset<int> newPixels;
^
/home/suvo/galprop-56.1/galtoolslib-1.0.855-Source/libskymap/BaseSky.h:762:85: error: ‘newPixels’ was not declared in this scope
map.query_disc_inclusive(co.healpixAng(map.GetCoordinateSystem()), radius, newPixels);
^
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:160: recipe for target 'all' failed
make: *** [all] Error 2


Top
 Profile  
 
PostPosted: Tue Jun 12, 2018 3:09 am 
Offline

Joined: Mon Mar 31, 2014 9:14 pm
Posts: 12
Solved this problem by setting C++11 standard for gcc compilation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group