Skip to content

Building from Source

chrilith edited this page Oct 19, 2019 · 3 revisions

You can compile this module using Microsoft Visual Studio Community 2015. This version is totally free and full-featured. You'll also need to install the DirectX SDK dependency to support older DirectX version 9 and 10 used by Flight Simulator.

Installing Visual Studio 2015 Community

In order to properly install Visual Studio you should:

  • Uninstall any existing Visual C++ Redistributable for Visual Studio 2015
  • Restart the computer
  • Disable your antivirus, whatever it is (even Windows Defender)
  • Launch the installer with administrator rights (the ISO version is recommended)

You'll only need the tools and compiler related to C++ and Git. The installer is supposed to provide the latest VC2015 Redistribuable.

Installing the DirectX SDK

To prevent error S1023, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the DirectX SDK.

You can use the following commands to uninstall the SP1:

C:\> MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}

C:\> MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}

After installation you can resinstall the latest version of the 2010 redistributable package for x86 and/or x64.

Installing the Lua Libraries

You must install the Win32 and Win64 Lua 5.1.4 libraries (the DLL version, not the VC one!). The content of both archives must be copied respectively in Libs\Lua\Win32 and Libs\Lua\Win64 at the root of the project (same location as the .sln file). The Libs folder doesn't exist and must be created.

You can download those 2 libraires from the LuaBinaries Project page. Latest files are lua-5.1.4_Win32_dll12_lib.zip and lua-5.1.4_Win64_dll12_lib.zip.

Importing the Saitek SDK Files

Passerelle is using some helpful files from the Saitek SDK installed with the FIP/X52Pro Saitek driver. You can easily import these files executing the provided Utils\ImportSaitek.bat batch file. You should edit this file to specify the proper location of the driver installation folder changing the SAITEK variable. By default it is set to C:\Program Files\Saitek\DirectOutput\SDK.

Installing the FSUIPC SDK Files

If you are build for x86, you'll also need the FSUIPC SDK that you can download form the official website. Unpack the UIPC_SDK_C.zip in the Libs\FSUIPC folder.

If you want to disable FSUIPC support you can remove the WITH_FSUIPC define from the Passerelle Config.h file.

Back to Contents