File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33# This script builds the liblsl.so for linux machines without bigger quirks
44# and no recent CMake version, i.e. ARM boards and PCs with old distributions.
55# For development, install a recent CMake version, either via pip
66# (pip install cmake) or as binary download from cmake.org
77
88set -x
9- LSLGITREVISION=" ` git describe --tags HEAD` "
9+ # Try to read LSLGITREVISION from git if the variable isn't set
10+ echo ${LSLGITREVISION:= " $( git describe --tags HEAD) " }
1011${CXX:- g++} -fPIC -fvisibility=hidden -O2 ${CFLAGS} -Ilslboost \
11- -DBOOST_ALL_NO_LIB -DBOOST_ASIO_SEPARATE_COMPILATION -D BOOST_THREAD_BUILD_DLL \
12+ -DBOOST_ALL_NO_LIB \
1213 -DLSL_LIBRARY_INFO_STR=\" ${LSLGITREVISION:- " built from standalone build script" } \" \
1314 src/* .cpp src/pugixml/pugixml.cpp \
14- lslboost/asio_objects.cpp \
1515 lslboost/libs/atomic/src/lockpool.cpp \
1616 lslboost/libs/chrono/src/chrono.cpp \
1717 lslboost/libs/serialization/src/* .cpp \
18- lslboost/libs/thread/src/pthread/{once,thread}.cpp \
19- -shared -o liblsl.so -lpthread
18+ lslboost/libs/thread/src/pthread/once.cpp \
19+ lslboost/libs/thread/src/pthread/thread.cpp \
20+ -shared -o liblsl.so -lpthread -lrt
2021${CC:- gcc} -O2 ${FLAGS} -Iinclude testing/lslver.c -o lslver -L. -llsl
2122LD_LIBRARY_PATH=. ./lslver
You can’t perform that action at this time.
0 commit comments