After about a week of very hit-or-miss but steady efforts, I have managed to compile and run the project FlightGear (see flightgear.org for more details if you like flight simulators). This has a lot of dependencies on specialty packages which also have a lot of dependencies on packages available through apt-get (“trusty” “universe”, mostly).
Dependency “plib” is available as “plib-dev” via apt-get. Other dependencies and prerequisites not mentioned on the build page include Computational Geometry Algorithm Libraries from
LibBoost etc etc all available from apt-get and many pre-built binaries can be installed by running
apt-get build-dep libopenscenegraph-dev ;
apt-get -b source libopenscenegraph. The build will die but you will get all of the required dependencies installed.
OpenSceneGraph “OSG” is available as source from the developers as a bleeding-edge ‘git’ pull version 3.3.1, but compilation was successful only after installing both QT4 and QT5 and letting the compiler pick what it wanted to use. I am still uncertain how this managed to compile; I was half asleep when I did it. Pure QT4 and stable version 3.2.0 could not be made to compile, bombing out very repeatedly over a known issue in QT.
Satisfying “OSG” allowed further compilations to go forward, and I was able to build FlightGear.
Here’s the problem. It all works, the graphics are every bit as beautiful as you might hope, the world rendered around the pilot’s view is highly detailed and very lovely etc etc. But it is Dead Slow. The simulator itself works well, but the display frame rate for updates is about 2 to 5 seconds. At least. This won’t do.
At start-up, the xterm launching the application shows these error messages:
~$ bin/fgfs --fg-root=/usr/local/flightgear/fgdata
Enabling ATI viewport hack
Outdated graphics drivers:FlightGear has detected outdated drivers for your graphics card.
(Please upgrade to at least version 300 of the nVidia drivers (installed version is 19.2))
The version number 19.2 is a result returned by
glxinfo |grep NVIDIA
This is being executed with LD_LIBRARY_PATH="/usr/local/cuda-6.0/lib:/usr/local/cuda-6.0/targets/armv7-linux-gnueabihf/lib/:/usr/local/flightgear/lib"
Question 1. How can I convince the application that there’s a version 300+ NVIDIA driver so that it won’t fall back to a straight VGA/XGA non-hardware-accelerated display mode?
Question 2. in case there aren’t ways to force this thing to use the NVIDIA drivers without re-compiling, are there any CMAKE Gurus here, or would anyone recommend an authoritative resource online?
Question 3. Should I just go read the CUDA docs because my answer is likely there?
Thanks in advance,