Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSVC] Assimp failed in setup with CMake Error #4593

Closed
Apriltanq opened this issue Jun 28, 2022 · 2 comments · Fixed by #4598
Closed

[MSVC] Assimp failed in setup with CMake Error #4593

Apriltanq opened this issue Jun 28, 2022 · 2 comments · Fixed by #4598
Labels
Bug Global flag to mark a deviation from expected behaviour Build Global flag to mark build relates topics

Comments

@Apriltanq
Copy link

Apriltanq commented Jun 28, 2022

Describe the bug
Assimp failed in setup with CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
DirectX_D3DX9_LIBRARY (ADVANCED)
linked by target "assimp_viewer" in directory F:/gitP/assimp/assimp/tools/assimp_view.

To Reproduce
Steps to reproduce the behavior:

  1. Open a VS x64 command
  2. git clone https://github.com/assimp/assimp assimp\assimp F:\gitP\assimp\assimp
  3. cd F:\gitP\assimp\assimp
  4. mkdir build_amd64
  5. cd build_amd64
  6. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release .. 2>&1

Expected behavior
it should work fine.

Actual behavior
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
DirectX_D3DX9_LIBRARY (ADVANCED)
linked by target "assimp_viewer" in directory F:/gitP/assimp/assimp/tools/assimp_view

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

Platform (please complete the following information):

  • OS: [Windows Server 2019 17763.2686]
  • Version [1809]

Error log
configure.log

@Apriltanq Apriltanq added the Bug Global flag to mark a deviation from expected behaviour label Jun 28, 2022
@kimkulling
Copy link
Member

This issue is caused by an invalid test for the assimp-tools. There are enabled as the default. Unfortunately, when using windows the expectation from assimpo is that the directx-SDK9.0 is installed. When this is not the case the cmake-step will fail.

@kimkulling kimkulling added the Build Global flag to mark build relates topics label Jun 28, 2022
@Apriltanq
Copy link
Author

Got it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour Build Global flag to mark build relates topics
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants