microsoft / microsoft/vcpkg

Package osg plugins can't be found when running executable

Open
#4,183 14 comments 2 reactions 1 assignee Claimed by @LilyWangLL View on GitHub
category:port-feature
Dominant language
CMake
Stars
27.5k
Forks
7.7k
Avg merge
2d 19h
Merged PRs (30d)
321

Description

This is under windows, VS 2017. Osg (OpenSceneGraph) and the plugins were successfully built, the osg dlls are under /bin, the plugins under /tools/osg, but while the main osg.dll can is found correctly when running out of visual studio the plugins cannot be found.

-- Edit
We are using cmake on a midsize codebase, amongst others OSG is a dependency. We have been building dependencies "by hand" and now trying out vcpkg, osg is a bit of a problem.

With VCPKG_APPLOCAL_DEPS set to true, all the libraries that are linked are copied to the local directory wich is fine, but the plugins are not explicitly linked, and are situated in the tools under osg directory (as suggested in this post https://github.com/Microsoft/vcpkg/issues/834). In a "normal" configuration the dlls and plugins would be on the path, I haven't seen any documentation on how this should be handled using a vcpkg installation. Should tools be put on the path ? An extra copy outside of vcpkg ? Or can these files be marked as "need to copy" without explicitly linking them via add_library() in cmake.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.