Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling on Linux Ubuntu/Mint #29

Open
MartinHeroux opened this issue Mar 27, 2019 · 1 comment
Open

Compiling on Linux Ubuntu/Mint #29

MartinHeroux opened this issue Mar 27, 2019 · 1 comment

Comments

@MartinHeroux
Copy link

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 <SDL_image.h>

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants