Board index FlightGear Support Compiling

Help with fg-from-scratch  Topic is solved

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

Help with fg-from-scratch

Postby pb321 » Fri Nov 01, 2019 5:02 pm

Trying to compile with fg-from-scratch and get the following in the first few lines of scratch.log:
Code: Select all
White Text Fix: 0
scratch-source/openscenegraph-3.6-git
scratch-build/openscenegraph-3.6
'qtpaths.exe' is not recognized as an internal or external command,
operable program or batch file.
QT Folder:
CMake Toolchain: "Visual Studio 15 2017 Win64"
Updating vcpkg . . .
Already up to date.
Compiling vcpkg
The property 'instance' cannot be found on this object. Verify that the
property exists.


QT 5.10.1 is installed in c:\qt, as I understand it should be. In addition, I'm using cmake-3.13.3-win64-x64, Git for Windows v2.20.1 and Visual Studio 2017.

Any suggestions will be very much appreciated!
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: Help with fg-from-scratch

Postby xDraconian » Sat Dec 28, 2019 6:48 am

@pb321,

Sorry for my delayed reply. Just getting back to FG after taking a break for a few months.
qtpaths.exe is a program that installs with Qt - fg-from-scratch uses this to understand how to link with your install.

Before running fg-from-scratch, ensure your PATH includes the Qt\bin folder containing the program qtpaths.exe
Code: Select all
set PATH=C:\Qt\5.13.1\msvc2017_64\bin;%PATH%

Scott
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: Help with fg-from-scratch  

Postby pb321 » Thu Jan 02, 2020 4:10 pm

Thank you. That was the problem.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: Help with fg-from-scratch

Postby callahanp » Thu Feb 06, 2020 5:57 pm

I compiled a fgfs.exe with fg-from-scratch successfully in C:\fg
I modified the PATH environment variable to include:
C:\Qt and C:\fg\scratch-install\bin

I get The code execution cannot proceed because gdal204.dll was not found. Reinstalling the program may fix this problem. Same message for OpenAL32.dll and libcurl.dll


a second run of fg-from-scratch seems to have fixed these errors and fgfs starts.

But now I'm getting:
Reqired data files not found, please check your installation. Looking for base-package files at '../data/

What should ../data be?
callahanp
 
Posts: 15
Joined: Sat May 11, 2013 3:40 am
Callsign: pac1

Re: Help with fg-from-scratch

Postby callahanp » Thu Feb 06, 2020 6:12 pm

I downloaded a zip of fgdata and placed it in c:\data

Now fgfs starts, I get a white window and it immediately closes.

command window has: the following and then nothing happens.

0.00 [INFO]:general Created multi-app mutex, we are in writeable mode
0.01 [INFO]:general FlightGear: Version 2019.2.0
0.01 [INFO]:general FlightGear: Build Type Dev
0.01 [INFO]:general Built with Microsoft Visual C++ version 1924
0.01 [INFO]:general Jenkins number/ID 0:none
0.01 [INFO]:general platform default fg_root = Path "../data"
0.02 [INFO]:general Reading global defaults
0.06 [INFO]:general init package root at:Path "C:/Users/patca/Documents/FlightGear/Aircraft"
0.06 [INFO]:input No user specified aircraft, using default
0.14 [INFO]:general Loading aircraft -set file from:Path "c:/data/Aircraft/c172p/c172p-set.xml"
0.23 [INFO]:general User langauge 0:en-US
0.23 [INFO]:general Found language resource for: en
0.23 [INFO]:general Reading localized strings for 'en' from Path "c:/data/Translations/default/sys.xml"
0.24 [INFO]:general Reading localized strings for 'en' from Path "c:/data/Translations/default/atc.xml"
0.24 [INFO]:general Reading localized strings for 'en' from Path "c:/data/Translations/default/tips.xml"
0.24 [INFO]:general Using default download dir: Path "C:/Users/patca/Documents/FlightGear"
0.24 [WARN]:general read-allowed path not found:Path "C:/Users/patca/Documents/FlightGear/AI"
0.24 [WARN]:general read-allowed path not found:Path "C:/Users/patca/Documents/FlightGear/Liveries"
0.24 [INFO]:general Using default texture cache directory: Path "C:/Users/patca/Documents/FlightGear/TextureCache"
0.24 [INFO]:general Using TerraSync dir: Path "C:/Users/patca/Documents/FlightGear/TerraSync"
0.25 [WARN]:general scenery path not found:Path "c:/data/Scenery"
0.25 [INFO]:general EmbeddedResourceManager: selected locale 'en-US'
0.25 [INFO]:astro initializing cloud layers
Now checking for plug-in osgPlugins-3.4.2/osgdb_nvtt.dll
1.49 [WARN]:general Enabling ATI/AMD viewport hack
1.49 [INFO]:general Configuration State
1.49 [INFO]:general ============= =====
1.49 [INFO]:general aircraft-dir = "c:/data/Aircraft/c172p"
1.50 [INFO]:general fghome-dir = "Path "C:/Users/patca/AppData/Roaming/flightgear.org""
1.50 [INFO]:general download-dir = "C:/Users/patca/Documents/FlightGear"
1.50 [INFO]:general terrasync-dir = "C:/Users/patca/Documents/FlightGear/TerraSync"
1.50 [INFO]:general aircraft-search-paths =

1.50 [INFO]:general scenery-search-paths =
C:/Users/patca/Documents/FlightGear/TerraSync
1.56 [INFO]:view FGRenderer:: Maximum texture size 32768
1.62 [WARN]:io Image loading failed:Warning: reading "c:/data/Aircraft/c172p/Previews/c172p-preview10.jpg" not supported.
callahanp
 
Posts: 15
Joined: Sat May 11, 2013 3:40 am
Callsign: pac1


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests