zenorogue / noteye

A frontend to modify the input/output of console and libtcod roguelikes.
GNU General Public License v3.0
55 stars 14 forks source link

Doesn't build on Linux Mint #7

Open SynedraAcus opened 7 years ago

SynedraAcus commented 7 years ago

Attempting to make on Linux Mint 17 (x86-64) returns this:

morozov@morozov-300V3A-300V4A-300V5A ~/tools/Games/noteye/src $ make 
g++ -DHYDRA -DLINUX -DOPENGL -DCURSESW -Wl,-rpath,. -Wl,-rpath,/usr/share/noteye hydra.o noteye-main.cpp -o ../noteye ../libnoteye.so -lGL -lGLU 
/usr/bin/ld: hydra.o: undefined reference to symbol 'SDL_RWFromFile'
//usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [../noteye] Error 1

All libs are latest version, everything before make is exactly according to Readme.md.

SynedraAcus commented 7 years ago

Okay, I think I got it working. There was -lSDL2 missing in one of the Makefile's lines. Here is a fixed one. I don't know much about makefiles, so I didn't send it as a pull request. Maybe an ugly hack or something, but it surely works. Thanks to RL_M at reddit for the hint.