Topic: Updating gcc on Ubuntu 12.04 LTS
GunChleoc![]() Topic Opener |
Posted at:
2014-03-04, 11:01 UTC+1.0
I need to update my gcc so I can compile the new functions in trunk. I have run this:
Still no joy. I suspect that somehow the old gcc is still being used. Any ideas? Busy indexing nil values ![]() ![]() |
QCS |
Posted at:
2014-03-04, 11:20 UTC+1.0
Yes, g++-4.6 is still installed and can not be uninstalled without losing vital stuff like build-essential. So you have g++-4.6 as default, and g++-4.7 additionally, on your system. To use it with widelands, you basically have two options:
CMake is evil. ![]() ![]() |
GunChleoc![]() Topic Opener |
Posted at:
2014-03-04, 11:44 UTC+1.0
I modified compile.sh and added the compiler like this:
resulting in the following error:
Maybe I have to hack CMakeLists.txt somehow? I don't understand a word in that file though. I checked /usr/bin/g++-4.7 and the file is there, the Synaptic package manager also lists g++-4.7 as installed. Busy indexing nil values ![]() ![]() |
Tino |
Posted at:
2014-03-04, 13:10 UTC+1.0
Try
Edited:
2014-03-04, 13:10 UTC+1.0
![]() ![]() |
QCS |
Posted at:
2014-03-04, 13:45 UTC+1.0
Tino's edit should do the trick. However I am not sure on why this happens. I had to do the same for the Ubuntu Precise PPA, and I only added the CMAKE_CXX_COMPILER parameter... maybe you need to remove everything in the build directory because CMAKE_C_COMPILER was available before. CMake is evil. ![]() ![]() |
GunChleoc![]() Topic Opener |
Posted at:
2014-03-04, 17:36 UTC+1.0
It did, thanks guys Busy indexing nil values ![]() ![]() |