Ok. I have never used the download_and_compile.sh script until today. The goal is to build SIMGEAR then FGFS. So the line in the script looks like this: WHATTOBUILDALL=(SIMGEAR FGFS)
It seems to build simgear fine. It then starts building fgfs. Things seem to be looking good, then I get this:
[ 43%] Built target buildId
[ 43%] Automatic MOC for target fgfs
[ 43%] Built target fgfs_autogen
[ 43%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Sound/VoiceSynthesizer.cxx.o
/home/dhudach/projects/fg/src/SCRIPTS/flightgear/src/Sound/VoiceSynthesizer.cxx:24:37: fatal error: simgear/sound/readwav.hxx: No such file or directory
compilation terminated.
src/Main/CMakeFiles/fgfs.dir/build.make:3827: recipe for target 'src/Main/CMakeFiles/fgfs.dir/__/Sound/VoiceSynthesizer.cxx.o' failed
make[2]: *** [src/Main/CMakeFiles/fgfs.dir/__/Sound/VoiceSynthesizer.cxx.o] Error 1
CMakeFiles/Makefile2:2137: recipe for target 'src/Main/CMakeFiles/fgfs.dir/all' failed
make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
***********************************
All optional package alternatives have found a matching package.
download_and_compile.sh has finished to work.
So the relevant error is that readwav.hxx file is not found. But it is clearly found in the simgear structure:
find . -name readwav.hxx -exec ls -l {} \;
-rw-rw-r-- 1 dhudach dhudach 496 Apr 20 12:51 ./simgear/simgear/sound/readwav.hxx
The download_and_compile.sh script is in a directory and I'm simply running it ./download_and_compile.sh. The following directories are created:
build, flightgear, install, simgear
My understanding from what I've read is that the download_and_compile script should build flightgear. What am I missing here?
Before I tried the script with SIMGEAR and FGFS, I just did SIMGEAR and it worked fine. Ok, maybe I thought that perhaps with simgear built, I can edit the script and just build FGFS. But it choked as above on the missing readwav.hxx file. So I surmised that the script needs to do both together. So I then removed all of the build folders and started over with SIMGEAR, FGFS in the script. And I still got the readwav.hxx missing file.
I am not including DATA in the script. I tried that about 4 times and I kept getting disconnected during the download. I had already downloaded fgdata tar file a few days ago so I figured since it's data only, it's really not needed to compile.
How do I resolve the missing readwav.hxx file even though it really is there? In other words, Since simgear has been built, how do I use the script to download and compile fgfs and make sure it properly references the simgear files?