Skip to content

Commit

Permalink
fix build with lsl on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Giso Grimm authored and Giso Grimm committed Aug 2, 2024
1 parent 2655b5b commit 285dbc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion check_for_lsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
echo 'int main(int,char**){return 0;}'|g++ -llsl -x c++ - 2>/dev/null && echo yes||echo no
if test `uname -s` = Darwin; then
LDFLAGS=-L/opt/homebrew/lib
fi
echo 'int main(int,char**){return 0;}'|g++ ${LDFLAGS} -llsl -x c++ - 2>/dev/null && echo yes||echo no
rm -f a.out
11 changes: 8 additions & 3 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ CXXFLAGS += -DHAS_LSL
TASCARMODS += lsljacktime lslactor levels2osc pos2lsl
AUDIOPLUGINS += speechactivity periodogram
TASCARMODSGUI += glabsensors waitforlslstream lsl2osc
GLABSENSORS += smiley eog emergency espheadtracker midicc \
qualisys jackstatus serial oscthreshold
GLABSENSORS += smiley eog emergency espheadtracker \
qualisys jackstatus

ifeq ($(UNAME_S),Linux)
GLABSENSORS += midicc serial oscthreshold
endif

endif

ifeq "$(HAS_OPENMHA)" "yes"
Expand Down Expand Up @@ -184,7 +189,7 @@ build/$(PLUGINPREFIX)tascar_ap_%$(DLLEXT): src/tascar_ap_%.cc
build/$(PLUGINPREFIX)tascar_mask_%$(DLLEXT): src/tascar_mask_%.cc
$(CXX) -shared -o $@ $< $(CXXFLAGS) $(LDFLAGS) $(LDLIBS)

build/$(PLUGINPREFIX)glabsensor_%$(DLLEXT): src/glabsensor_%.cc build/glabsensorplugin.o src/glabsensorplugin.h
build/$(PLUGINPREFIX)glabsensor_%$(DLLEXT): src/glabsensor_%.cc build/glabsensorplugin.o
$(CXX) -shared -o $@ $^ $(CXXFLAGS) $(LDFLAGS) $(LDLIBS)

build/%_glade.h: src/%.glade
Expand Down

0 comments on commit 285dbc2

Please sign in to comment.