FlightGear飞行模拟器

标题: 【转】Visual C++ 2010编译FlightGear 2.8.0 [打印本页]

作者: jinchengde    时间: 2012-8-23 17:40
标题: 【转】Visual C++ 2010编译FlightGear 2.8.0
本帖最后由 jinchengde 于 2012-8-23 17:46 编辑

引用:
http://wiki.flightgear.org/Building_using_CMake_-_Windows

第三方库下载:
ftp://ftp.ihg.uni-duisburg.de/FlightGear/Win32/MSVC/



Required software   Directory tree On Windows, assumptions on the directory structure are made to automate the discovery of dependencies.
This recommended directory structure is described below. Clicking the links allows you to download pre-built parts (for 3rdParty, make sure to download the right bits version. You need only one of the zips.).

${MSVC_3RDPARTY_ROOT} /
       3rdParty /  
       ( includes boost, plib, fltk, zlib, libpng, libjpeg, libtiff, freetype, libsvn, gdal, ... )  
               bin /
               include /
               lib /
       boost_1_44_0 /  (included in the 3rdParty package linked above)  
               boost /
       install /
              msvc100 /
             ( for VS2010 32 bits, or msvc90, msvc90-64 or msvc100-64 for VS2008 32, VS2008 64 and VS2010 64 )  
                  OpenSceneGraph /  
                 ( OSG CMake install )  
                         bin /
                         include /
                         lib /
                  SimGear /  
                  (create this empty for now, subfolders will be created by build process)  
                        include /
                        lib /
                   FlightGear /  
                  (create this empty for now)  
                         include /
                         lib /
  When building a 64 bits version, use the following structure for the 3dparty tools:
               3rdParty.x64 /  ( 64 bit version )  
                        bin /
                        include /
                        lib /
  If you do not use the recommended structure you will need to enter paths by hand. Source and build directories can be located anywhere.
NdT: glut is missing for the 64bits build, you can use freeglut.
  Building
作者: liuwh_99    时间: 2012-8-24 00:12
有人编译Debug版本吗?运行时报错!
作者: jinchengde    时间: 2012-8-24 11:54
liuwh_99 发表于 2012-8-24 00:12
有人编译Debug版本吗?运行时报错!

报什么错?
作者: 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版代码,问题一样!!!
作者: liuwh_99    时间: 2012-8-25 23:54
V2.9(2.8问题也一样),Debug状态下运行,起飞后,在menu选择Position on the ground, 报错:

捕获.PNG (16.91 KB, 下载次数: 638)

捕获.PNG

捕获1.PNG (41 KB, 下载次数: 696)

捕获1.PNG

作者: jinchengde    时间: 2012-8-27 00:12
liuwh_99 发表于 2012-8-25 23:54
V2.9(2.8问题也一样),Debug状态下运行,起飞后,在menu选择Position on the ground, 报错:

貌似是某个析构函数挂掉了,没遇到过这个问题,所以我也不知道。
可以到新闻组发个贴问问去,那儿大牛比较多。
作者: freeyun    时间: 2012-9-24 20:19
liuwh_99 发表于 2012-8-25 22:57
一个是_CrtIsValidHeap错误,由于Atmosphere.cxx和StandardAtmosphere.cxx中“P-sl-psf”属性的Tie操作造成 ...

另一个是HttpClient类,你把实时天气关闭就不会了,暂时解决方法
作者: 天天    时间: 2012-12-11 01:11
在用cmake编译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
非常着急  请大家帮帮我  谢谢了   
作者: freeyun    时间: 2013-3-16 21:29
天天 发表于 2012-12-11 01:11
在用cmake编译simgear的时候出现了错误
CMake Error at F:/Program Files/CMake 2.8/share/cmake-2.8/Modu ...

Please set BOOST_ROOT to the root 没有找到boost头文件 ,叫你设置boost目录
作者: chiuras    时间: 2013-5-23 22:20
怎么设置BOOST_ROOT?要在PATH里面设置?
作者: jinchengde    时间: 2013-6-6 21:56
chiuras 发表于 2013-5-23 22:20
怎么设置BOOST_ROOT?要在PATH里面设置?

不需要再PATH里面设置吧,我似乎没有设置BOOST_ROOT也可以
作者: QQ_5F7693    时间: 2013-8-19 08:51
请问,我用网上已经编译好的OSG,怎么还是提示找不到呢?
version is 2 dot 10 dot 0
ignoring: ^E:/FlightGear/simgear-2.10.0/.git;\\.gitignore;Makefile.am;~$;
Library installation directory: lib
3rdparty files located in E:/FlightGear
BOOST_ROOT is E:/FlightGear/boost_1_44_0
Boost version: 1.44.0
SimGear mode: NORMAL
Sound support: ENABLED
Could NOT find osgText (missing:  OSGTEXT_LIBRARY)
Could NOT find osgSim (missing:  OSGSIM_LIBRARY)
Could NOT find osgDB (missing:  OSGDB_LIBRARY)
Could NOT find osgParticle (missing:  OSGPARTICLE_LIBRARY)
Could NOT find osgGA (missing:  OSGGA_LIBRARY)
Could NOT find osgUtil (missing:  OSGUTIL_LIBRARY)
Could NOT find osg (missing:  OSG_LIBRARY)
Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY)
CMake Error at D:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenSceneGraph (missing: OSGTEXT_FOUND OSGSIM_FOUND
  OSGDB_FOUND OSGPARTICLE_FOUND OSGGA_FOUND OSGUTIL_FOUND OSG_FOUND
  OPENTHREADS_FOUND) (found suitable version "3.0.1", minimum required is
  "3.0.0")
Call Stack (most recent call first):
  D:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  D:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake:187 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:183 (find_package)

作者: QQ_5F7693    时间: 2013-8-19 15:00
2.10.0版本,运行怎么会出现[/img]
作者: QQ_5F7693    时间: 2013-8-19 15:02
2.10.0版本,运行出现找不到程序输入点,不知道怎么回事?有遇到过这种情况的吗?
作者: huanjing2022    时间: 2014-10-13 13:56
看来很多高手啊,我也遇到点问题最近,第二次编译或者拷贝到别的电脑再编译也不行有个msb6006的错误,请高手指点
作者: goodman11011011    时间: 2015-11-9 11:27
一定要看CMAKE的英文版资料




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