Closed mnqslbs2 closed 5 years ago
OK So I see that one reason that this fails is that I have an unsupported version of GNC. I have:
gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
And the make
output states gcc versions later than 6 are not supported
.
Do I need to recompile under an older version of gcc?
If so then how?
I wonder could @psteinb help?
Thanks,
Ben
Hi Ben, Just encountered a similar issue. All you need is to specify an older compiler for cmake to use(see below).
Cheers, Alon
check if you have a compiler <=6:
dpkg --list | grep compiler
if not, get one: sudo apt install g++-5 sudo apt install gcc-5
check where it is: whereis gcc-5
(should be at /usr/bin/gcc-5)
compile using cmake and specify the compiler version
cmake -D CMAKE_C_COMPILER=/usr/bin/gcc-5 -D CMAKE_CXX_COMPILER=/usr/bin/g++-5 -DCMAKE_INSTALL_PREFIX=/wherever/you/want/it/to/go ..
continue normally.
Hi Alon, Thanks for this everything built without error in cmake and my test mvdecon worked well. I consider this issue now closed. Cheers, Ben
Hi, I am trying to build this on Ubuntu 18.04.2 LTS and I'm getting errors that I don't understand when I run the make command. My call to cmake is the following, and seems to run fine:
But when I then run the make command it fails with errors:
Can someone point me to what might be my problem here? As I cannot decipher it. Thanks in advance, Ben