Board index FlightGear Support Compiling

Error on windows:

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

Error on windows:

Postby legoboyvdlp » Thu Oct 04, 2018 4:14 pm

Hi,
Compiling with fg-from-scratch, windows 10

OSG and SG compiled successfully with no warnings or errors - however, FlightGear fails with the following errors: I have no idea what they mean, so I thought I'd post them here?
Code: Select all
Build FAILED.

"C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\INSTALL.vcxproj" (default target) (1) ->
"C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\ALL_BUILD.vcxproj" (default target) (3) ->
"C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\utils\fgelev\fgelev.vcxproj" (default target) (12
) ->
(Link target) ->
  SimGearCore.lib(sg_dir.obj) : error LNK2019: unresolved external symbol __imp_PathIsDirectoryEmptyW referenced in fun
ction "public: bool __cdecl simgear::Dir::isEmpty(void)const " (?isEmpty@Dir@simgear@@QEBA_NXZ) [C:\Users\redpa\Documen
ts\FlightGear\fg-from-scratch\flightgear-build\utils\fgelev\fgelev.vcxproj]
  C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\utils\fgelev\Release\fgelev.exe : fatal error LN
K1120: 1 unresolved externals [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\utils\fgelev\fgelev
.vcxproj]


"C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\INSTALL.vcxproj" (default target) (1) ->
"C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\ALL_BUILD.vcxproj" (default target) (3) ->
"C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\utils\fgviewer\fgviewer.vcxproj" (default target)
 (24) ->
  SimGearCore.lib(sg_dir.obj) : error LNK2019: unresolved external symbol __imp_PathIsDirectoryEmptyW referenced in fun
ction "public: bool __cdecl simgear::Dir::isEmpty(void)const " (?isEmpty@Dir@simgear@@QEBA_NXZ) [C:\Users\redpa\Documen
ts\FlightGear\fg-from-scratch\flightgear-build\utils\fgviewer\fgviewer.vcxproj]
  C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\utils\fgviewer\Release\fgviewer.exe : fatal erro
r LNK1120: 1 unresolved externals [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\flightgear-build\utils\fgviewer\
fgviewer.vcxproj]

    0 Warning(s)
    4 Error(s)
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Error on windows:

Postby legoboyvdlp » Sat Oct 06, 2018 3:45 pm

Workaround:

add this to options in the .cmd script:

Code: Select all
-DENABLE_FGVIEWER:BOOL=0 ^
   -DENABLE_FGELEV:BOOL=0 ^
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP


Return to Compiling

Who is online

Users browsing this forum: No registered users and 7 guests