Skip to content

Better document usage of static plugins so it's clearer with CMake subproject setup #357

@hsdk123

Description

@hsdk123

Hi, I'm currently finding trouble importing plugins:

Containers::Pointer<Trade::AbstractImporter> importer =
        manager.loadAndInstantiate("TgaImporter");

The above line always returns nullptr.
I'm currently using the bootstrap base project, and I've configured cmake s.t.

WITH_TGAIMPORTER
WITH_ANYIMAGEIMPORTER

are both true.
Are there any other settings that I need to set?

The documentation on plugin setup is very dispersed and I'm somewhat confused as to a first time setup.

References:
https://doc.magnum.graphics/magnum/plugins.html
https://doc.magnum.graphics/magnum/building-plugins.html

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions