Skip to content

build system fails to build samples with static build under Linux #169

Description

@slapin

On ubuntu 22.04 I get the libraries problem with static build:

Consolidate compiler generated dependencies of target OgreProcedural
[ 75%] Built target OgreProcedural
Consolidate compiler generated dependencies of target Sample_Primitives
[ 77%] Linking CXX executable ../../bin/Sample_Primitives
/usr/bin/ld: cannot find -lfix::assimp: No such file or directory
/usr/bin/ld: cannot find -lSDL2::SDL2: No such file or directory
/usr/bin/ld: cannot find -lZLIB::ZLIB: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [samples/primitives/CMakeFiles/Sample_Primitives.dir/build.make:156: bin/Sample_Primitives] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: samples/primitives/CMakeFiles/Sample_Primitives.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

The Ogre dependencies are installed so I guess cmake IMPORT's are missing for static build.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions