Hey.
Wiec mam problem z użyciem SDL2 na Debianie. Nie wiem co robie źle, bo niby kompilator znajduje SDL ale jakby nie wszystko.
Zainstalowałem bibliotekę kompilując ją manualnie co krok po kroku wygląda talk:
hg clone https://hg.libsdl.org/SDL SDL
cd SDL
mkdir build
cd build
../configure
make
sudo make install
Dla testu użyłem kodu z tego tutoriala: http://wiki.libsdl.org/Tutorials/TextInput.
I teraz przy próbie instalacji wywala mi niezdefiniowane źródła do tego co poniżej:
g++ -o bin/game-main pre-compiled/game-main.cxx `sdl2-config --cflags --libs`
/tmp/ccJ8wKyL.o: In function `main':
game-main.cxx:(.text+0x17): undefined reference to `InitVideo()'
game-main.cxx:(.text+0x5d): undefined reference to `text'
game-main.cxx:(.text+0x81): undefined reference to `composition'
game-main.cxx:(.text+0x8a): undefined reference to `cursor'
game-main.cxx:(.text+0x93): undefined reference to `selection_len'
game-main.cxx:(.text+0x99): undefined reference to `Redraw()'
collect2: error: ld returned 1 exit status
Może mnie ktoś naprowadzić jeśli coś pominąłem?
Dzięki Siery.