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

assimp: fix bug where using draco compression in gltf2 file errors #26705

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bacusters
Copy link

@bacusters bacusters commented Feb 26, 2025

Ensure -DASSIMP_ENABLE_DRACO preprocessor symbol is defined when draco is used in assimp. Add test file to verify that the importer works with draco compression.

Summary

Changes to recipe: assimp/*

Motivation

Fixes #26695. After a refactor, the draco support was no longer enabled in assimp when using GLTF2, even though the dependency was being built. A preprocessor definition was missing to make Assimp aware that draco is available.

Details

Change adds a extra call in the injected conan_deps.cmake to define the preprocessor symbol ASSIMP_ENABLE_DRACO. This ensures that the GLTF2 importer of Assimp will support and use draco compression instead of throwing an error. Added another small test file that uses GLTF2 with compression and added a run in the test_package to verify that it works after the fix.


…o is used in assimp. Add test file to verify that the importer works with draco compression.
@CLAassistant
Copy link

CLAassistant commented Feb 26, 2025

CLA assistant check
All committers have signed the CLA.

@@ -29,3 +29,8 @@ def test(self):

bin_c_path = os.path.join(self.cpp.build.bindirs[0], "test_package_c")
self.run(f"{bin_c_path} {obj_path}", env="conanrun")

# Check that a GLTF2 file with draco compression can be loaded without error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bacusters - we no longer allow checking binary files into the repository. Please note that the intended purpose of the test package is to check that find_package works in CMake, that the compiler can resolve includes from the package, and that the linker can correctly resolve the library and symbols from the binary files , and not a functionality check. Apologies as some legacy test packages still don't reflect this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[package] assimp: Draco compression not working with GLTF2
5 participants