vectorgrp / sil-kit

Vector SIL Kit – Open-Source Library for Connecting Software-in-the-Loop Environments
https://vectorgrp.github.io/sil-kit-docs
MIT License
107 stars 32 forks source link

Build with statically linked libs? #10

Closed Andoramb closed 11 months ago

Andoramb commented 11 months ago

Describe the issue Is it possible to build (for example) the sil-kit-registry binary with statically linked libraries, so it can run standalone on different environments?

To Reproduce So far I have added the following lines to the cmake instruction:

-D CMAKE_FIND_LIBRARY_SUFFIXES=".a" \
-D BUILD_SHARED_LIBS=OFF \

Expected behavior When I try to run the compiled binary on an other OS (same arch as origin) it still gives missing library related errors:

./sil-kit-registry: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./sil-kit-registry)
./sil-kit-registry: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by ./sil-kit-registry)
./sil-kit-registry: /lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by ./sil-kit-registry)
./sil-kit-registry: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./sil-kit-registry)
./sil-kit-registry: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./sil-kit-registry)
./sil-kit-registry: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./sil-kit-registry)

Your Environment (please complete the following information):

VDanielEdwards commented 11 months ago

Hello @Andoramb, we do not support linking SIL Kit as a static library, and neither do we support statically linking the utility executables.

Thank you for your message and happy holidays!

Andoramb commented 11 months ago

Alright,

Good to know! Thanks for the quick answer. Same to you 👍