Code: Select all
Disclaimer. All commands below are safe, except last one. It is not inherently unsafe, but you are changing your terragear binaries anyway. In linux, everything you ran "sudo" or need to, it means you are applying somehow some sort of brute force.
I think this is what you inted, so go at it :D
Just do as follow
download terragear from sourceforce:
[anywhere in your drive, but I suggest you use /home/shm/sources]
Code: Select all
git clone git://git.code.sf.net/p/flightgear/terragear terragear
then enter terragear, you will need to change to the proper operative branch (master is /was broken) and anyways what you build with master no longer patches well scenery 2.0
Code: Select all
cd terragear
git checkout -t origin scenery/ws2.0
Then do the editions indicated in your post within that source you got there. (so you will compile your changes)
now. create and switch to a building directory outside the sources.
Code: Select all
mkdir ../terragear.builld
cd ../terragear/build
Building outside the sources is the safest way, and allows you to just remove the build directory and have a go at it again, if needed.
Then run this long command to configure the compilation. The Prefix indicated here is the same prefix I used to install terragear in your system, so keep it, or you end up with 2 terragears, and make it difficult for you to execute one or the other
Code: Select all
cmake -D CMAKE_BUILD_TYPE="Release" -D CMAKE_CXX_FLAGS_RELEASE="-O3 -pipe" -D CMAKE_C_FLAGS_RELEASE="-O3 -pipe" -D CMAKE_INSTALL_PREFIX:PATH=/usr/share ../terragear
All above is on single line!
after that thing finishes, run
and finally when that finishes, run
And then you had patched your terragear binaries.
IH-COL