Closed melodysu83 closed 2 years ago
Hi Melody,
Thanks for posting the details of the issue. Are you using Ubuntu 18.04?
Regardless, can you try out the suggestions from this comment which is from another issue but may be relevant.
Thanks Adnan!
The ambf-2.0
branch now builds after the GCC version update.
For anyone that has a similar issue, I updated the GCC version by running these commands in a terminal:
Check my current gcc, g++ version: (mine was a 5.4)
gcc --version
g++ --version
Install the gcc-7 packages:
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y
Set it up so the symbolic links gcc, g++ point to the newer version:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --config gcc
gcc --version
g++ --version
The gcc/g++ version should both now be updated to a 7.X. (in my case, 7.5)
Glad to hear that and thanks for the detailed info :).
Hi Adnan, We're recently trying to migrate our commits to the AMBF-2.0 branch but are having trouble building the new code. Here is the cmake output: (which went well without error)
But then when I try: make .. , a few errors occurred.
I am suspecting it having to do with the compiler C++ version (according to stackOverflow post here), but am not sure where to fix it. Do you have any insights? Thanks!