本文共 1084 字,大约阅读时间需要 3 分钟。
FlightGear 是一款开源的飞行模拟游戏,噢,他不仅仅是一个游戏,你还可以在里面扩展自己的飞行器,验证气动模型,使用外部设备把它扩展成自己家的是模拟器, FligthGear在Linux下的编译相对来说比较方便些,在windows下要自己编译,就比较麻烦一点了,不过以难不到那去,下面是我整理的一个编译方法.转载请注明出处.
我整理的源码库下载:http://download.csdn.net/source/565555
Compiling FlightGear 1.0.0 with Visual C++.net 2005
Build Tool:
Visual C++.net 2005 Professional EditionSteps to build FlightGear and fgrun on Windows:
1.Unpack source to file system layout: %FGBUILD% |--build | |--3rdParty | |--media | |--FlightGear | |--plib | |--SimGear | |--fgrun-1.0.0 | /--fltk-1.1.19 | |--run | /--data 2.Unpack project-vc8.zip to %FGBUILD%/build directorie. 3.Building SimGear and flightGear: Open the solution file SimGear/projects/VC8/SimGear.sln and build. Open the solution file FlightGear/projects/VC8/FligthGear.sln and build. 4.Building fltk and fgrun: Open the solution file fltk-1.1.9/vc2005/fltk.sln and build Open the solution file fgrun-1.0.0/fgrun.sln and build 5.publish builded file: run build/publish.bat Running FlightGear: 1.running %FGBUILD%/build/publish.bat by copy files. 2.into directorie %FGBUILD%/run and run fgrun.exe