BackyardBrains / Spike-Recorder

A neural recording app for the Windows, OS X (Mac) and Linux.
https://backyardbrains.com/products/spikerecorder
31 stars 27 forks source link

Compiling on Linux Ubuntu/Mint #29

Open MartinHeroux opened 5 years ago

MartinHeroux commented 5 years ago

I followed the instructions and ran into a few issues. Will a bit of help, I was able to solve the first few, but can't solve the last one.

Issue # 1.1 It appears that the current version of the code is looking for certain header files on the system and not in the downloaded folder.

~/Spike-Recorder-master$ make g++ -o src/CalibrationWindow.o -c src/CalibrationWindow.cpp -g -O2 -Isrc -Isupport -I. -Wall -DSIGSLOT_PURE_ISO --std=c++11 sdl2-config --cflags In file included from src/engine/RecordingManager.h:18:0, from src/CalibrationWindow.cpp:6: src/defaults/DefaultConfig.h:4:10: fatal error: ./tinyxml2.h: No such file or directory

include "./tinyxml2.h"

      ^~~~~~~~~~~~~~

compilation terminated. make: *** [Makefile:77: src/CalibrationWindow.o] Error 1

Solution to Issue #1.1 In src/defaults/DefaultConfig.h, change to #include "src/libraries/tinyxml2.h"

Issue 1.2 Compiling gets further with the above fix, but it hits a similar error for SDL.

src/widgets/LoadTexture.cpp:2:10: fatal error: SDL_image.h: No such file or directory

include

Solution to Issue #1.2

This can be fixed by changing one of the top lines in src/widgets/LoadTexture.cpp to #include "SDL2_image.framework/Versions/A/Headers/SDL_image.h"

Issue # 2 The last error I obtain when running make is below.

/usr/bin/ld: cannot find -lSDL2_image collect2: error: ld returned 1 exit status make: *** [Makefile:80: SpikeRecorder] Error 1

Help on this issue would be appreciated.

stanislavmircic commented 5 years ago

Please follow this tutorial on how to setup SDL2_image on Linux: http://lazyfoo.net/tutorials/SDL/06_extension_libraries_and_loading_other_image_formats/linux/index.php Hope this will help.