I am very interested in using SuMmOn; however, I have not been able to compile it. I've tried a Windows XP box and a box running RHEL 4.0. I read the readme files and downloaded/set all requirements. When I try to compile SUMmOn I receive the following error.
g++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I -I. -I -Wno-deprecated -c ./ PeaksUtils.cpp
In file included from PeaksUtils.cpp:25:
PeaksUtils.hpp:29:18: ramp.h: No such file or directory
In file included from PeaksUtils.cpp:25:
PeaksUtils.hpp:47: error: `RAMPFILE' has not been declared
PeaksUtils.hpp:47: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.hpp:47: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.hpp:47: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.hpp:48: error: `RAMPFILE' has not been declared
PeaksUtils.hpp:48: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.hpp:48: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.hpp:48: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.hpp:49: error: `RAMPFILE' has not been declared
PeaksUtils.hpp:49: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.hpp:49: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.hpp:49: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.hpp:61: error: `RAMPFILE' has not been declared
PeaksUtils.hpp:61: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.hpp:61: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.hpp:61: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.cpp:38: error: `RAMPFILE' has not been declared
PeaksUtils.cpp:38: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.cpp:39: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.cpp:39: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.cpp:55: error: `double PeaksUtils::calculateTIC' is not a static member of `class PeaksUtils'
PeaksUtils.cpp:55: error: `RAMPFILE' was not declared in this scope
PeaksUtils.cpp:55: error: `rampFile' was not declared in this scope
PeaksUtils.cpp:55: error: `ramp_fileoffset_t' was not declared in this scope
PeaksUtils.cpp:55: error: `pScanIndex' was not declared in this scope
PeaksUtils.cpp:55: error: expected primary-expression before "int"
PeaksUtils.cpp:55: error: expected primary-expression before "int"
PeaksUtils.cpp:55: error: expected primary-expression before "int"
PeaksUtils.cpp:56: error: initializer expression list treated as compound expression
PeaksUtils.cpp:56: error: expected `,' or `;' before '{' token
PeaksUtils.cpp:72: error: `float PeaksUtils::calculateBPI' is not a static member of `class PeaksUtils'
PeaksUtils.cpp:72: error: `RAMPFILE' was not declared in this scope
PeaksUtils.cpp:72: error: `rampFile' was not declared in this scope
PeaksUtils.cpp:72: error: `ramp_fileoffset_t' was not declared in this scope
PeaksUtils.cpp:72: error: `pScanIndex' was not declared in this scope
PeaksUtils.cpp:72: error: expected primary-expression before "int"
PeaksUtils.cpp:72: error: expected primary-expression before "int"
PeaksUtils.cpp:72: error: expected primary-expression before "int"
PeaksUtils.cpp:73: error: initializer expression list treated as compound expression
PeaksUtils.cpp:73: error: expected `,' or `;' before '{' token
PeaksUtils.cpp:96: error: `RAMPFILE' has not been declared
PeaksUtils.cpp:96: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.cpp:97: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.cpp:97: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.cpp: In member function `int PeaksUtils::preparePeaks(std::vector<std::pair<float, float>, std::allocator<std::pair<float, float> > >&, int*&, int*&, int)':
PeaksUtils.cpp:103: error: `readPeaks' was not declared in this scope
make: *** [PeaksUtils.o] Error 1
Can you decipher where the problem lies? I suspect that my Makefile does not reflect my system setup. Any advice would be much appreciated.
Thanks a lot
Ross
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Make sure you set an environmental variable called RAMPROOT to point to the directory where you installed RAMP. (On bash you can achieve this by typing: export RAMPROOT="path/to/RAMP/dir").
If you have not done so already (there are no errors related to this in the gcc output you pasted, but they might show up after you fix the first problem ;) ), you will also need to set another environmental variable called GSLROOT to point to the directory where you downloaded the GSL libary.
Regarding you other post on the Makefile: the Makefile in the CVS repository is the Makefile that I use on a RH machine to compile SUMmOn.
Please let me know if this solved your problem.
Cheers,
Patrick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am very interested in using SuMmOn; however, I have not been able to compile it. I've tried a Windows XP box and a box running RHEL 4.0. I read the readme files and downloaded/set all requirements. When I try to compile SUMmOn I receive the following error.
g++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I -I. -I -Wno-deprecated -c ./ PeaksUtils.cpp
In file included from PeaksUtils.cpp:25:
PeaksUtils.hpp:29:18: ramp.h: No such file or directory
In file included from PeaksUtils.cpp:25:
PeaksUtils.hpp:47: error: `RAMPFILE' has not been declared
PeaksUtils.hpp:47: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.hpp:47: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.hpp:47: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.hpp:48: error: `RAMPFILE' has not been declared
PeaksUtils.hpp:48: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.hpp:48: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.hpp:48: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.hpp:49: error: `RAMPFILE' has not been declared
PeaksUtils.hpp:49: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.hpp:49: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.hpp:49: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.hpp:61: error: `RAMPFILE' has not been declared
PeaksUtils.hpp:61: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.hpp:61: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.hpp:61: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.cpp:38: error: `RAMPFILE' has not been declared
PeaksUtils.cpp:38: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.cpp:39: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.cpp:39: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.cpp:55: error: `double PeaksUtils::calculateTIC' is not a static member of `class PeaksUtils'
PeaksUtils.cpp:55: error: `RAMPFILE' was not declared in this scope
PeaksUtils.cpp:55: error: `rampFile' was not declared in this scope
PeaksUtils.cpp:55: error: `ramp_fileoffset_t' was not declared in this scope
PeaksUtils.cpp:55: error: `pScanIndex' was not declared in this scope
PeaksUtils.cpp:55: error: expected primary-expression before "int"
PeaksUtils.cpp:55: error: expected primary-expression before "int"
PeaksUtils.cpp:55: error: expected primary-expression before "int"
PeaksUtils.cpp:56: error: initializer expression list treated as compound expression
PeaksUtils.cpp:56: error: expected `,' or `;' before '{' token
PeaksUtils.cpp:72: error: `float PeaksUtils::calculateBPI' is not a static member of `class PeaksUtils'
PeaksUtils.cpp:72: error: `RAMPFILE' was not declared in this scope
PeaksUtils.cpp:72: error: `rampFile' was not declared in this scope
PeaksUtils.cpp:72: error: `ramp_fileoffset_t' was not declared in this scope
PeaksUtils.cpp:72: error: `pScanIndex' was not declared in this scope
PeaksUtils.cpp:72: error: expected primary-expression before "int"
PeaksUtils.cpp:72: error: expected primary-expression before "int"
PeaksUtils.cpp:72: error: expected primary-expression before "int"
PeaksUtils.cpp:73: error: initializer expression list treated as compound expression
PeaksUtils.cpp:73: error: expected `,' or `;' before '{' token
PeaksUtils.cpp:96: error: `RAMPFILE' has not been declared
PeaksUtils.cpp:96: error: `ramp_fileoffset_t' has not been declared
PeaksUtils.cpp:97: error: ISO C++ forbids declaration of `rampFile' with no type
PeaksUtils.cpp:97: error: ISO C++ forbids declaration of `pScanIndex' with no type
PeaksUtils.cpp: In member function `int PeaksUtils::preparePeaks(std::vector<std::pair<float, float>, std::allocator<std::pair<float, float> > >&, int*&, int*&, int)':
PeaksUtils.cpp:103: error: `readPeaks' was not declared in this scope
make: *** [PeaksUtils.o] Error 1
Can you decipher where the problem lies? I suspect that my Makefile does not reflect my system setup. Any advice would be much appreciated.
Thanks a lot
Ross
Ross,
Thank you for your interest in the project.
Make sure you set an environmental variable called RAMPROOT to point to the directory where you installed RAMP. (On bash you can achieve this by typing: export RAMPROOT="path/to/RAMP/dir").
If you have not done so already (there are no errors related to this in the gcc output you pasted, but they might show up after you fix the first problem ;) ), you will also need to set another environmental variable called GSLROOT to point to the directory where you downloaded the GSL libary.
Regarding you other post on the Makefile: the Makefile in the CVS repository is the Makefile that I use on a RH machine to compile SUMmOn.
Please let me know if this solved your problem.
Cheers,
Patrick