How to build as static library on Linux? #2931
-
|
Greetings! I'm trying to build version 3.8 from scratch, but as a static library. Unfortunately, it fails with the following error: Doing a quick search, that source file requires the preprocessor definition However, that definition is only applied when building shared library: https://github.com/pelicanmapping/osgearth/blob/osgearth-3.8/src/osgEarth/CMakeLists.txt#L4 Is there a way to build osgEarth as static library? Is only shared library supported? When building as shared library that error does not happen, and I can build without errors. You can check my full build log: osgearth-3.8-linux-amd64-gcc13-release-static-source.log Environment
Regards! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
If you grab the master branch, that #pragma has been removed. Give that a try please. |
Beta Was this translation helpful? Give feedback.
If you grab the master branch, that #pragma has been removed. Give that a try please.