Board index FlightGear Support Compiling

Windows 10 (2017.1.0) VS2015 debug (64-bit)

Building FlightGear from source, and in the need for help?

Windows 10 (2017.1.0) VS2015 debug (64-bit)

Postby ronh » Sat Dec 03, 2016 6:08 pm

Has anyone got Flightgear to run in the VS2015 in debug mode?

I have successfully compile all the components OSG-WIN, SIMGear-WIN and FlightGear-Win in both Release and Debug.

It involved changing CmakeLists.txt and CmakeCache.txt files - setting up folder structures (use fgmeta as a start). FlightGear compiles in debug. I can get it to run - up to a point. It will auto break at

Code: Select all
    ucrtbased.dll!00007ffb8aaf10cb()   Unknown
    ucrtbased.dll!00007ffb8aaf1017()   Unknown
>   fgfs.exe!std::vector<SGLightBin::Light,std::allocator<SGLightBin::Light> >::operator[](unsigned __int64 _Pos) Line 1226   C++
    fgfs.exe!SGLightBin::getLight(unsigned int i) Line 46   C++
    fgfs.exe!SGLightFactory::getOdal(const SGLightBin & lights, const simgear::SGReaderWriterOptions * options) Line 409   C++
    fgfs.exe!SGTileDetailsCallback::generateLightingTileObjects(std::vector<SGTriangleInfo,std::allocator<SGTriangleInfo> > & matTris, const SGMaterialCache * matcache) Line 957   C++
    fgfs.exe!SGTileDetailsCallback::readNode(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & __formal, const osgDB::Options * __formal) Line 133   C++
    osg130-osgDBd.dll!osgDB::Registry::readNode(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & fileName, const osgDB::Options * options, bool buildKdTreeIfRequired) Line 237   C++
    osg130-osgDBd.dll!osgDB::DatabasePager::DatabaseThread::run() Line 909   C++
    ot20-OpenThreadsd.dll!OpenThreads::ThreadPrivateActions::StartThread(void * data) Line 113   C++
    [External Code]   


this is after I select an new airport from the Location menu. Anyone else looking at this configuration?
Ron
Windows 10 VS 2015, 2017
Ubuntu 18.04 LTS
ronh
 
Posts: 26
Joined: Sun Nov 27, 2016 4:45 pm
Location: Ontario, Canada
Version: next
OS: Windows 10 Ubuntu 18

Re: Windows 10 (2017.1.0) VS2015 debug (64-bit)

Postby ronh » Tue Dec 06, 2016 6:53 pm

Happy to say I have a working debug build of flightgear 2017.1.0 with the help of the following bug report:

https://sourceforge.net/p/flightgear/codetickets/1920/ This fixed my issue above.Now on to figuring this thing out. :wink:
Ron
Windows 10 VS 2015, 2017
Ubuntu 18.04 LTS
ronh
 
Posts: 26
Joined: Sun Nov 27, 2016 4:45 pm
Location: Ontario, Canada
Version: next
OS: Windows 10 Ubuntu 18


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest