It is currently Thu May 22, 2025 8:08 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jul 19, 2012 1:21 pm 
Offline

Joined: Mon Jun 04, 2012 8:39 pm
Posts: 2
I installed the dependencies, cfitsio, CCfits, CLHEP, gsl and Healpix.
Then I went into galprop and ran
./configure.

That went fine.
On running make, I get the following error. Seems like it does not recognize some lines in the main galpropMain.cc file.
I'd appreciate any ideas on how to get around this. thanks:


/home/arjunsharma/gal1/galprop-54.1.984/source/galpropMain.cc:99: undefined reference to `Galprop::~Galprop()'
/home/arjunsharma/gal1/galprop-54.1.984/source/galpropMain.cc:92: undefined reference to `utl::ErrorLogger::Log(utl::ErrorLogger::SeverityLevel, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, utl::ErrorLogger::VerbosityLevel) const'
collect2: ld returned 1 exit status
make[2]: *** [galprop] Error 1
make[2]: Leaving directory `/home/arjunsharma/gal1/galprop-54.1.984/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/arjunsharma/gal1/galprop-54.1.984'
make: *** [all] Error 2


Top
 Profile  
 
PostPosted: Sun Jul 22, 2012 8:51 pm 
Offline

Joined: Mon Jun 04, 2012 8:39 pm
Posts: 2
On running make again, I am getting the following error:


/home/arjunsharma/Healpix_2.20a/src/cxx/generic_gcc/lib/libcxxsupport.a(cxxutils.o): In function `openmp_max_threads':
/home/arjunsharma/Healpix_2.20a/src/cxx/cxxsupport/openmp_support.h:51: undefined reference to `omp_get_max_threads'
collect2: ld returned 1 exit status
make[2]: *** [galprop] Error 1
make[2]: Leaving directory `/home/arjunsharma/gal1/galprop-54.1.984/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/arjunsharma/gal1/galprop-54.1.984'
make: *** [all] Error 2


Top
 Profile  
 
PostPosted: Thu Nov 01, 2012 4:46 am 
Offline

Joined: Tue Oct 30, 2012 7:06 am
Posts: 4
Add "--enable-openmp" after "./configure" commond.


arjunsharma wrote:
On running make again, I am getting the following error:


/home/arjunsharma/Healpix_2.20a/src/cxx/generic_gcc/lib/libcxxsupport.a(cxxutils.o): In function `openmp_max_threads':
/home/arjunsharma/Healpix_2.20a/src/cxx/cxxsupport/openmp_support.h:51: undefined reference to `omp_get_max_threads'
collect2: ld returned 1 exit status
make[2]: *** [galprop] Error 1
make[2]: Leaving directory `/home/arjunsharma/gal1/galprop-54.1.984/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/arjunsharma/gal1/galprop-54.1.984'
make: *** [all] Error 2

_________________
Best,
Xiang Li
===========================
Purple Moutain Observatory, CAS
Nanjing, P.R.China
===========================


Top
 Profile  
 
PostPosted: Fri Jul 26, 2013 12:08 am 
Offline

Joined: Sun Jul 07, 2013 8:48 am
Posts: 8
did you just run: ./configure ? nothing else?


Top
 Profile  
 
PostPosted: Fri Jul 26, 2013 10:33 am 
Offline
Site Admin

Joined: Wed Oct 21, 2009 6:30 pm
Posts: 47
Location: Stanford U.
The issues like reported above can be caused by installing all dependencies (Healpix, cfitsio, CLHEP, etc.) into the same directory (e.g., /usr/local).
To be safe, install all the dependencies into individual directories. This can be done by using the argument "--prefix=/path/to/package" when running "configure" for the dependencies.
After that, run "make" and "make install" for every dependency, so that the dependent library is installed into /path/to/package.
Then, when you run "configure" for GALPROP, use "--with-package=/path/to/package". You will need one of each for every dependency.
Run "./configure --help" to see the list of all packages.
The comment by lx9507 about "--enable-openmp" is correct, you need this flag to enable multi-threading in GALPROP.

_________________
Andrey Vladimirov
http://galprop.stanford.edu/


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 3 guests


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:  
Powered by phpBB® Forum Software © phpBB Group