General Question Installation directory of DirectX SDK

JeanLucPicard

New member
Joined
Aug 2, 2025
Messages
1
Reaction score
0
Points
1
Location
milan
Hi,
I'm trying to compile orbiter but...
1> [CMake] CMake Error at C:\Development\VisualStudio\orbiter\CMakeLists.txt:227 (message):
1> [CMake] DirectX SDK not found. The D3D9 graphics client will not be built.
1> [CMake]
1> [CMake]
1> [CMake] -- Configuring incomplete, errors occurred!
1> L'esecuzione del comando 'C:\Windows\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_C_COMPILER:STRING="cl" -DCMAKE_CXX_COMPILER:STRING="cl" -DORBITER_MAKE_DOC:STRING="OFF" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:/Development/VisualStudio/orbiter/out/install/windows-x64-debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Development\VisualStudio\orbiter" 2>&1"' non è riuscita. Errore: 'È stato restituito il comando 'C:\Windows\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_C_COMPILER:STRING="cl" -DCMAKE_CXX_COMPILER:STRING="cl" -DORBITER_MAKE_DOC:STRING="OFF" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:/Development/VisualStudio/orbiter/out/install/windows-x64-debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Development\VisualStudio\orbiter" 2>&1"' con codice di uscita 1'.



What I have to do to avoid or solve the problem?

thanks in advance

JL
 
Hi,
I'm trying to compile orbiter but...
1> [CMake] CMake Error at C:\Development\VisualStudio\orbiter\CMakeLists.txt:227 (message):
1> [CMake] DirectX SDK not found. The D3D9 graphics client will not be built.
1> [CMake]
1> [CMake]
1> [CMake] -- Configuring incomplete, errors occurred!
1> L'esecuzione del comando 'C:\Windows\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_C_COMPILER:STRING="cl" -DCMAKE_CXX_COMPILER:STRING="cl" -DORBITER_MAKE_DOC:STRING="OFF" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:/Development/VisualStudio/orbiter/out/install/windows-x64-debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Development\VisualStudio\orbiter" 2>&1"' non è riuscita. Errore: 'È stato restituito il comando 'C:\Windows\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_C_COMPILER:STRING="cl" -DCMAKE_CXX_COMPILER:STRING="cl" -DORBITER_MAKE_DOC:STRING="OFF" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:/Development/VisualStudio/orbiter/out/install/windows-x64-debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Development\VisualStudio\orbiter" 2>&1"' con codice di uscita 1'.



What I have to do to avoid or solve the problem?

thanks in advance

JL
This error is coming from the D3D9 client build, which is built by default in Orbiter now. It's not very obvious where to look, but the instructions you need to follow are in that subfolder's README.txt file, which is here: https://github.com/orbitersim/orbiter/blob/main/OVP/D3D9Client/README.txt - specifically:

* For a DirectX graphic client, you obviously also need the respective 3-D
graphics SDKs. The D3D9 client builds with the MS DirectX June 2010
SDK.
You need the DirectX Software Development Kit (Version 9.29.1962 or newer) to
build the client. It can be downloaded at Microsoft Download Center at
https://www.microsoft.com/en-us/download/details.aspx?id=6812

If you have an existing Microsoft Visual C++ 2010 Redistributable installed
on your computer, you may receive an "S1023" error when you install the June
2010 DirectX SDK.
To resolve this issue follow the instructions from
https://support.microsoft.com/en-us...or-when-you-install-the-directx-sdk-june-2010

To run the client later on you also need the DirectX End-User Runtimes (June
2010 or newer). These can be downloaded at Microsoft Download Center at
https://www.microsoft.com/en-us/download/details.aspx?id=8109
(See http://users.kymp.net/~p501474a/D3D9Client/#DirectX Runtimes for
details on that).

We should perhaps put a note on this in the main COMPILING.md file since this will be required to build the project in its default configuration.
 
Back
Top