FlightGear飞行模拟器

标题: FlightGear 2.8 编译指南 [打印本页]

作者: jinchengde    时间: 2012-8-24 22:12
标题: FlightGear 2.8 编译指南
本帖最后由 jinchengde 于 2012-12-22 16:03 编辑

根据部分反馈修改了第二版

FlightGear编译.pdf

1019.11 KB, 下载次数: 2305, 下载积分: 金钱 -2


作者: 胖子    时间: 2012-8-25 09:43
楼主好人 顶起
作者: liuwh_99    时间: 2012-8-25 22:57
一个是_CrtIsValidHeap错误,由于Atmosphere.cxx和StandardAtmosphere.cxx中“P-sl-psf”属性的Tie操作造成;另一个是HttpClient类造成的,调用堆栈显示程序停在simgear的网络操作函数中,我直接屏蔽了相关的内容,能够运行了,但重新设置位置时void fgReInitSubsystems()中    globals->restoreInitialState();处报错,还没有查出原因。 另外从菜单调出对话框,修改参数,也肯定报错,调用堆栈显示停在simgear的gui相关的函数。
我用GIT下载了2.9版代码,问题一样!!!
作者: jinchengde    时间: 2012-8-25 23:26
liuwh_99 发表于 2012-8-25 22:57
一个是_CrtIsValidHeap错误,由于Atmosphere.cxx和StandardAtmosphere.cxx中“P-sl-psf”属性的Tie操作造成 ...

正式发行的代码一般编译都不会有什么问题的,尤其应该不会有这种函数错误,不太清楚你的问题,把编译错误的报错信息贴出来看看
作者: zlycc2012    时间: 2012-8-28 15:38
多谢分享!!!!!!
作者: THELAST    时间: 2012-10-15 17:10
楼主没有亲测过?
作者: jinchengde    时间: 2012-10-23 21:44
THELAST 发表于 2012-10-15 17:10
楼主没有亲测过?

你是指测过什么?
作者: azure_sky    时间: 2012-11-27 17:36
多谢,这个比较有用
作者: 天天    时间: 2012-12-11 00:33
编译simgear时遇到两个错误    请帮帮忙
CMake Error at F:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1192 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:110 (find_package)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
   used as include directory in directory C:/FlightGear/simgear-2.8.0
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/bucket
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/debug
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/ephemeris
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/io
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/magvar
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/math
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/misc
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/nasal
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/props
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/serial
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/structure
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/threads
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/timing
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/xml
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/environment
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/screen
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/scene/bvh
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/scene/material
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/scene/model
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/scene/sky
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/scene/tgdb
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/scene/util
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/scene/tsync
   used as include directory in directory C:/FlightGear/simgear-2.8.0/simgear/sound
作者: 从前有个人    时间: 2013-3-13 13:35
编译到最后编译不成功是怎么回事啊?求解释,不能生成fgfs.exe

4>sgmaterial.lib(mipmap.obj) : warning LNK4217: 本地定义的符号 ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ (public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`vbase destructor'(void)) 在函数 "void __cdecl simgear::effect::dumpMipmap(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,int,int,int,unsigned char *,class std::vector<unsigned int,class std::allocator<unsigned int> > const &)" (?dumpMipmap@effect@simgear@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HHHHPAEABV?$vector@IV?$allocator@I@std@@@4@@Z) 中导入
4>sgmaterial.lib(mipmap.obj) : warning LNK4217: 本地定义的符号 ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z (public: __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::basic_ofstream<char,struct std::char_traits<char> >(char const *,int,int)) 在函数 "void __cdecl simgear::effect::dumpMipmap(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>>,int,int,int,int,unsigned char *,class std::vector<unsigned int,class std::allocator<unsigned int> > const &)" (?dumpMipmap@effect@simgear@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HHHHPAEABV?$vector@IV?$allocator@I@std@@@4@@Z) 中导入
4>groundradar.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::_Vector_iterator<class std::_Vector_val<unsigned short,class std::allocator<unsigned short> > > __thiscall osg::MixinVector<unsigned short>::begin(void)" (__imp_?begin@?$MixinVector@G@osg@@QAE?AV?$_Vector_iterator@V?$_Vector_val@GV?$allocator@G@std@@@std@@@std@@XZ),该符号在函数 "public: void __thiscall GroundRadar::updateTexture(void)" (?updateTexture@GroundRadar@@QAEXXZ) 中被引用
4>sgtgdb.lib(SGOceanTile.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class std::_Vector_iterator<class std::_Vector_val<unsigned short,class std::allocator<unsigned short> > > __thiscall osg::MixinVector<unsigned short>::begin(void)" (__imp_?begin@?$MixinVector@G@osg@@QAE?AV?$_Vector_iterator@V?$_Vector_val@GV?$allocator@G@std@@@std@@@std@@XZ)
4>groundradar.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::_Vector_iterator<class std::_Vector_val<unsigned short,class std::allocator<unsigned short> > > __thiscall osg::MixinVector<unsigned short>::end(void)" (__imp_?end@?$MixinVector@G@osg@@QAE?AV?$_Vector_iterator@V?$_Vector_val@GV?$allocator@G@std@@@std@@@std@@XZ),该符号在函数 "public: void __thiscall GroundRadar::updateTexture(void)" (?updateTexture@GroundRadar@@QAEXXZ) 中被引用
4>groundradar.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::_Vector_iterator<class std::_Vector_val<unsigned char,class std::allocator<unsigned char> > > __thiscall osg::MixinVector<unsigned char>::begin(void)" (__imp_?begin@?$MixinVector@E@osg@@QAE?AV?$_Vector_iterator@V?$_Vector_val@EV?$allocator@E@std@@@std@@@std@@XZ),该符号在函数 "public: void __thiscall GroundRadar::updateTexture(void)" (?updateTexture@GroundRadar@@QAEXXZ) 中被引用
4>groundradar.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::_Vector_iterator<class std::_Vector_val<unsigned char,class std::allocator<unsigned char> > > __thiscall osg::MixinVector<unsigned char>::end(void)" (__imp_?end@?$MixinVector@E@osg@@QAE?AV?$_Vector_iterator@V?$_Vector_val@EV?$allocator@E@std@@@std@@@std@@XZ),该符号在函数 "public: void __thiscall GroundRadar::updateTexture(void)" (?updateTexture@GroundRadar@@QAEXXZ) 中被引用
4>C:\FlightGear\flightgear-build\src\Main\Release\fgfs.exe : fatal error LNK1120: 4 个无法解析的外部命令
========== 全部重新生成: 成功 3 个,失败 1 个,跳过 0 个 ==========
作者: lstcyh    时间: 2013-3-29 14:45
多谢,这个比较有用
作者: wwjiangyou    时间: 2013-4-1 15:36
谢谢楼主了!但是编译后老是出问题。。。
作者: azure_sky    时间: 2013-4-3 17:22
好东西啊,对我很有用,谢谢
作者: agm123    时间: 2013-4-5 11:20
看看这个版本的程序,多谢
作者: wangchenglanduo    时间: 2013-5-5 11:18
为了下载附件,刷下屏,见谅啊!!!
作者: AAA    时间: 2013-5-7 15:38
怎么下载不了呢,什么权限能下载啊啊
作者: 从前有个人    时间: 2013-5-7 18:38
两次编译完成,多谢楼主
作者: wwjiangyou    时间: 2013-5-20 09:10
请问楼主知道不知道64位系统的编译方法啊?谢谢楼主。。
作者: chiuras    时间: 2013-5-23 22:21
OPENGL是下载放进去就可以了还是必须做什么。总是报错
作者: jinchengde    时间: 2013-6-6 21:54
wwjiangyou 发表于 2013-5-20 09:10
请问楼主知道不知道64位系统的编译方法啊?谢谢楼主。。

64位的我也没试过呀。。。
作者: jinchengde    时间: 2013-6-6 21:55
chiuras 发表于 2013-5-23 22:21
OPENGL是下载放进去就可以了还是必须做什么。总是报错

啥错误?
作者: wwjiangyou    时间: 2013-6-11 21:16
jinchengde 发表于 2013-6-6 21:54
64位的我也没试过呀。。。

呵呵!没事!非常谢谢!
作者: stevenjuang    时间: 2013-7-24 10:42
为了下载附件,刷下屏,见谅啊!!!
作者: QQ_5F7693    时间: 2013-8-17 10:26
Simgear已经编译好了,用Cmake编译flightgear的时候提示:
CMake Error at CMakeModules/FindSimGear.cmake:169 (message):
  Cannot find SimGear libraries! (Forgot 'make install' for SimGear?) Compile
  & INSTALL SimGear before configuring FlightGear.  When using non-standard
  locations, use 'SIMGEAR_DIR' to configure the SimGear location.
Call Stack (most recent call first):
  CMakeLists.txt:234 (find_package)
simgear的路径已经配置了,为什么还是不对呢?
作者: renshengsiji    时间: 2013-9-25 17:00
提示: 作者被禁止或删除 内容自动屏蔽
作者: 布瓜的世界    时间: 2013-9-26 15:12
多谢分享
作者: wawj7758521    时间: 2013-12-2 15:55
下来看看啊~~~~~~~~~~~
作者: wawj7758521    时间: 2013-12-2 15:55
谢谢楼主了~~~~~~~~~~
作者: vijak    时间: 2013-12-3 20:49
多谢分享!!!!!!
作者: 纵有疾风不言弃    时间: 2014-2-19 16:06
学习了,从头开始学起
作者: 纵有疾风不言弃    时间: 2014-2-19 16:13
为什么下载不成,真纠结
作者: 纵有疾风不言弃    时间: 2014-2-19 16:14
而且 气动力数据怎么查看
作者: 旭旭    时间: 2014-3-6 14:59
谢谢楼主~正在学习编译。
作者: 悠扬的口哨    时间: 2014-3-30 14:06
楼主好人 好书 值得下载
作者: cdcmj    时间: 2014-4-3 22:41
不知道怎么编译啊,新手
作者: sstevne    时间: 2014-6-27 00:15
编译3,没有成功过,用vs2010 64位
作者: swqaswqa    时间: 2014-7-19 12:46
真心感谢,这个比较有用
作者: QJXLSQQYS123    时间: 2014-12-12 20:31
顶起学习下~楼主好人!!!!!!!!~~~
作者: hawktech    时间: 2014-12-18 12:35
提示: 作者被禁止或删除 内容自动屏蔽
作者: hawktech    时间: 2014-12-18 23:29
提示: 作者被禁止或删除 内容自动屏蔽
作者: hawktech    时间: 2014-12-18 23:31
提示: 作者被禁止或删除 内容自动屏蔽
作者: 爽0618    时间: 2014-12-23 10:14
为了下载附件,刷下屏,见谅啊!!!
作者: jashire    时间: 2015-1-12 16:11
很棒的资料,多谢啦。。。。。
作者: JasonCooper    时间: 2015-1-23 15:17
很实用,非常感谢!楼主辛苦了!
作者: JasonCooper    时间: 2015-1-23 15:17
很实用,非常感谢!楼主辛苦了
作者: FGmmyq    时间: 2015-3-3 20:16
正在学习编译,希望有用
作者: zzzjaws    时间: 2015-4-13 16:31
非常感谢分享!!!!!!
作者: casablanda    时间: 2015-5-29 17:12
thx for sharing,expect for better
作者: winer02y    时间: 2015-8-9 09:01
多谢分享!!!!!!
作者: pickbranch    时间: 2015-9-12 14:36
很好,非常感谢!楼主辛苦了!希望出点最新版的编译指南。
作者: lvguohu    时间: 2015-10-12 13:52
FlightGear解决了大问题 顶起
作者: goodman11011011    时间: 2015-11-4 15:46
多谢分享,如果早看到就不下刚才那个了
作者: goodman11011011    时间: 2015-11-9 11:25
这篇文章非常好,我受益匪浅




欢迎光临 FlightGear飞行模拟器 (https://www.flightgear.org.cn/) Powered by Discuz! X3.2