[ITK Community] [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.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Community mailing list