Problem when compiling: cannot find -lSDL[...]
I'm trying to compile on Linux Mint.
I believe I've done downloading all dependencies, but...
mint@mint-acer ~ $ sudo apt-get install libsdl2-ttf-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsdl2-ttf-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libev4 libid3tag0 libimlib2 libxcb-xinerama0 libxcb-xtest0 libxdg-basedir1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.mint@mint-acer ~ $ sudo apt-get install libsdl2-net-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsdl2-net-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libev4 libid3tag0 libimlib2 libxcb-xinerama0 libxcb-xtest0 libxdg-basedir1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.mint@mint-acer ~ $ sudo apt-get install libsdl2-image-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsdl2-image-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libev4 libid3tag0 libimlib2 libxcb-xinerama0 libxcb-xtest0 libxdg-basedir1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.mint@mint-acer ~/Desktop/hedgewars-src-0.9.22 $ make
[ 0%] Built target hedgewars-server
[ 2%] Built target physlayer
[ 2%] Built target avwrapper
Linking Pascal executable ../bin/hwengine
Linking /home/mint/Desktop/hedgewars-src-0.9.22/bin/hwengine
/usr/bin/ld.bfd: warning: /home/mint/Desktop/hedgewars-src-0.9.22/bin/link.res contains output sections; did you forget -T?
/usr/bin/ld.bfd: cannot find -lSDL_ttf
/usr/bin/ld.bfd: cannot find -lSDL_net
/usr/bin/ld.bfd: cannot find -lSDL_image
An error occurred while linking /home/mint/Desktop/hedgewars-src-0.9.22/bin/hwengine
make[2]: *** [bin/hwengine] Error 1
make[1]: *** [hedgewars/CMakeFiles/hwengine.dir/all] Error 2
make: *** [all] Error 2
libSDL2 is not compatible with libSDL.
Make sure to install the correct (old) version of SDL(1) (1.2 I think it is).
sudo apt-get install mercurial cmake g++ qt4-qmake libqt4-dev libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev liblua5.1-dev fpc libphysfs-dev fonts-dejavu-core ttf-wqy-zenhei
If you want PNG screenshots, add:
sudo apt-get install libpng12-dev
sheepluva <- me my code stats ->
a Hedgewars Developer
click here to message me
<- where I'm from what I speak ->