Hi, after you installed gcc-4.7 and g++-4.7 you have to set these compilers at the very beginning instead of the default ones. For example, create a clean build directory and in case you are using ccmake, set the two variables CMAKE_[C/CXX]_COMPILER already as command line arguments (I guess it would be something like "ccmake -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-4.7 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.7 path/to/src". In case of cmake-gui, you can specify these compilers easily the first time you press configure and are prompted for the generator.
Stefan ________________________________________ Von: Rockers, Elijah D. [edrock...@houstonmethodist.org] Gesendet: Montag, 14. September 2015 19:53 An: mitk-users@lists.sourceforge.net Cc: Bajaj, Sahil Betreff: [mitk-users] Problem making MITK with Ubuntu 12.04 Hello, I am having trouble completeing the build on Ubuntu 12.04LTS. ccmake tells me that I need to install the two different compilers, gcc and g++ which I have done, but it is still giving me the error message. I have attached the output log. I reviewed it, but did not see anything to indicate gcc or g++ were not correctly installed. I was unable to git clone from git.mitk.org, so I had to use the mirror. Here is the exact error message I get from cmake: CMake Error at CMakeLists.txt:96 (message): GCC version must be at least 4.7.3 If you are using Ubuntu 12.04, you can easily install gcc and g++ 4.7.3 (or any later version available) in addition to your version 4.6.3: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.7 g++-4.7 Make sure to explicitly specify these compilers when configuring MITK: CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-4.7 CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.7 For more information on the proposed PPA see the Toolchain Updates section of https://wiki.ubuntu.com/ToolChain.<https://wiki.ubuntu.com/ToolChain> Thanks Houston Methodist. Leading Medicine. Houston Methodist is ranked by U.S.News & World Report as one of America's "Best Hospitals" in 11 specialties and designated as a Magnet hospital for excellence in nursing. Houston Methodist has also been named to FORTUNEĀ® Magazine's "100 Best Companies to Work ForĀ®" list for 10 years in a row. Visit us at houstonmethodist.org. Follow us at twitter.com/MethodistHosp and facebook.com/HoustonMethodist. ***CONFIDENTIALITY NOTICE*** This e-mail is the property of Houston Methodist and/or its relevant affiliates and may contain restricted and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender and delete all copies of the message. Thank you. ------------------------------------------------------------------------------ _______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users