Skip to content

Make portable linux .so files#5

Open
guillaumeriousat wants to merge 3 commits intomainfrom
make-portable-linux-so
Open

Make portable linux .so files#5
guillaumeriousat wants to merge 3 commits intomainfrom
make-portable-linux-so

Conversation

@guillaumeriousat
Copy link
Member

The linux .so files created by the CI had hard paths to the build folder in their runpath. This PR bundles the various libOrbbecSDK.so files with the main .so file and makes it so the main .so file tries to find the orbbec sdk in various places that makes sense when running the extension either from the godot editor or an exported project.

I have tested deleting every build artifact from my machine and replacing them by this and it now works both in exported versions and in the editor.

CMakeLists.txt Outdated
if (LINUX)
# fetch libOrbbecSDK.dll when compiling under windows.
add_custom_command(TARGET ${LIBNAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:OrbbecSDK>" "${GODOT_PROJECT_BINARY_DIR}/libOrbbecSDK.so.2.5.5"
Copy link

@jcelerier jcelerier Mar 19, 2026

Choose a reason for hiding this comment

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

I think this should try to look for the actual version number shipped by the orbbec SDK as it will break on every update otherwise

Copy link
Member Author

Choose a reason for hiding this comment

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

Should be fixed.

@jcelerier
Copy link

will try asap!

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.

2 participants