[Insight-users] ITK Build Failing

jmerkow jmerkow at gmail.com
Sun Nov 3 23:40:12 EST 2013


I got it to work!  

To anyone else that runs into this problem, this is how I solved it.
This worked on Ubuntu 13.10, and it assumes that you use the symbolic links
to c++ and cc for compiling, but it should also work if you use straight up
g++ and gcc.

First get the older c++ (g++ compiler)

sudo apt-get install c++-4.6 c++-4.8

then get them up with update-alternatives:

sudo update-alternatives --remove-all gcc 
sudo update-alternatives --remove-all g++

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc

sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++

then use update-alternatives to switch compilers:
sudo update-alternatives --config gcc
sudo update-alternatives --config g++







--
View this message in context: http://itk-users.7.n7.nabble.com/ITK-Build-Failing-tp32665p32673.html
Sent from the ITK - Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list