Solarus-Games English Forum

Solarus => Development => Topic started by: yangchao on March 14, 2015, 08:58:53 PM

Title: try build solarus in ubuntu 12.04, apt-get error
Post by: yangchao on March 14, 2015, 08:58:53 PM
Hi
I try to build solarus in linux platform. According to "Compilation instructions" operation,but get errors:

sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libluajit-5.1-dev libphysfs-dev libopenal-dev libmodplug-dev libvorbis-dev
[sudo] password for ljh:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libsdl2-dev
E: Unable to locate package libsdl2-image-dev
E: Unable to locate package libsdl2-ttf-dev
Title: Re: try build solarus in ubuntu 12.04, apt-get error
Post by: Christopho on March 14, 2015, 09:36:20 PM
SDL2 is not available on Ubuntu 12.04.
But if you search Debian packages of SDL2, you will find some and they work with Ubuntu 12.04. Make sure you take SDL 2.0.1 or above, because SDL 2.0.0 is buggy.
Title: Re: try build solarus in ubuntu 12.04, apt-get error
Post by: yangchao on March 15, 2015, 02:56:09 AM
How can I do,  dos update Debian packages in ubuntu 12.04?
Title: Re: try build solarus in ubuntu 12.04, apt-get error
Post by: Christopho on March 15, 2015, 10:19:42 AM
One way is to download the .deb files of Debian. You need libsdl2-dev, libsdl2-image-dev and libsdl2-ttf-dev and their dependencies.
https://packages.debian.org/sid/libsdl2-dev
https://packages.debian.org/sid/libsdl2-image-dev
https://packages.debian.org/sid/libsdl2-ttf-dev
You can install them by double-clicking their .deb files.
Title: Re: try build solarus in ubuntu 12.04, apt-get error
Post by: yangchao on March 15, 2015, 11:07:23 AM
thanks a lot
Title: Re: try build solarus in ubuntu 12.04, apt-get error
Post by: zutokaza on August 10, 2015, 09:13:07 PM
I just want to know if you ever got it working because I am doing the same with 12.04 Ubuntu.

Temporary Fix if you still can't get it to work.
http://forum.solarus-games.org/index.php/topic,361.0.html
Title: Re: try build solarus in ubuntu 12.04, apt-get error
Post by: Christopho on August 11, 2015, 02:49:21 AM
Yes it works, I was doing on one of my machines a few months ago before upgrading to 14.04.