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

When using cmake to create the osgstaticviewer example ,can't find plugins-{$version} path #1240

Closed
AlexOct opened this issue Jun 30, 2023 · 1 comment

Comments

@AlexOct
Copy link

AlexOct commented Jun 30, 2023

When I created the example like osgstaticviewer by using cmake.I can't load static lib from the path to plugins-{$version} (eg. plugins-3.6.5),during compilation.so i cant find lib like ..\..\lib\osgPlugins-3.6.5\osgdb_ive.lib
I load other lib in the way likes :find_package(osgText REQUIRED) and target_link_libraries($OSGTEXT_LIBRARY_RELEASE)

Is there any function in cmake that can help me find the path to plugins.

@robertosfield
Copy link
Collaborator

There a CMake mechanism I know of that can be used directly with osgstaticviewer.

Building the OSG static adds complexity to build and is rather niche for OSG usage which is designed primarily to work with shared libraries and use the plugins dynamically, unless you really need it I'd not bother.

If static build is important to your project then perhaps just moving onto the VulkanSceneGraph would be helpful, it builds by default as static lib and the loaders are designed from day one to support static builds.

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

No branches or pull requests

2 participants