User Tools

Site Tools


devel:dependency:spot

Building Spot

This is to build statically linked yet compact binaries for Spot tools for Linux, Windows and OSX.

Static binaries for Linux

./configure --disable-shared --disable-python --disable-devel --enable-optimizations --prefix ~/spot.linux
make LDFLAGS=-all-static
make install-strip

Static binaries for Windows using MinGW toolchain

MinGW GCC misses implementation for threads (at least for MinGW GCC v9.3.0). This results in error when building spot/bricks/brick-shmem which uses std::thread. A workaround:

  1. Copy header files from mingw-std-threads into spot/bricks/
  2. In spot/bricks/brick-shmem replace #include <thread> by #include "mingw.thread.h"
./configure --disable-shared --disable-python --disable-devel --enable-optimizations --host x86_64-w64-mingw32 --prefix ~/spot.windows
make LDFLAGS=-all-static
make install-strip

Static binaries for OSX

./configure --disable-shared --disable-python --disable-devel --enable-optimizations --prefix ~/spot.osx
make LDFLAGS="-all-static -static-libstdc++ -static-libgcc"
make install-strip
Copyright © 2014-2024 workcraft.org

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki