adobe / adobe/USD-Fileformat-plugins
CMake unable to find FBX SDK
- Dominant language
- C++
- Stars
- 396
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Do you have an example of the proper command line to build with FBX support on Windows? I'm trying to build with FBX sdk support, and installed the SDK as described in the instructions.
Here is the current command line with FBX_SDK_ROOT.
D:\upr\usd-25.02\built>cmake -S USD-Fileformat-plugins -B usd-fileformat-release -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_BUILD_TYPE=Release -DUSD_FILEFORMATS_ENABLE_DRACO=ON -Dpxr_ROOT=usd-release -DUSD_FILEFORMATS_ENABLE_FBX=ON -DFBX_SDK_ROOT="C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.7\"
Unfortunately, cmake fails to find the FBXSDK here. Interestingly, it seems to be able to find FBX_INCLUDE_DIRS, but not FBXSDK_LIBRARIES. It might be something weird that only happens on my machine, but if you have a known-good command line that would be a great first step.
CMake Error at C:/Program Files/CMake/cmake-3.28.0/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find FBXSDK (missing: FBXSDK_LIBRARIES)
Call Stack (most recent call first):
C:/Program Files/CMake/cmake-3.28.0/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/FindFBXSDK.cmake:132 (find_package_handle_standard_args)
fbx/CMakeLists.txt:10 (find_package)
Contributor guide
Research direction
Reproduce the Windows configure command from the issue, then inspect cmake/FindFBXSDK.cmake and fbx/CMakeLists.txt, especially the FBXSDK_LIBRARIES lookup. Compare the SDK installation layout with the paths used by the finder; done means CMake configures with USD_FILEFORMATS_ENABLE_FBX=ON without the missing-library error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100