Page 1 of 4

Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 7:31 pm
by fer0x
ok after a long ( i mean long ) battle with problems and detours i finally got love 0.7.2 to run on my linux mint 9. So that my friends out there dont have to go through the same ordeal i want to put up this guide :-

1) Download the 0.7.2 source from here : https://bitbucket.org/rude/love/downloa ... src.tar.gz
or http://cdn.bitbucket.org/rude/love/down ... src.tar.gz

2) Extract the package by either gnome desktop or by terminal using :

Code: Select all

tar zxf love-0.7.2-linux-src.tar.gz
3) Go to the extracted Folder

4) run terminal
use these commands:-

Code: Select all

./configure
you should see that a few files are missing (the script stops as soon as one file is missing hence u will see the next missing file once the previous is installed)
the links to those files are:-


4.a) libsdl for (SDL_Init) http://www.libsdl.org/release/SDL-1.2.13.tar.gz
#Extract the tar
#then go to terminal
#navigate to extracted folder

Code: Select all

./configure
make
make install
4.b) Openal
in terminal:-

Code: Select all

sudo apt-get install libopenal-dev

4.c) DevIL [developer image library]
here you can download either the .deb file or source file
.deb file : http://ftp.debian.org/debian/pool/main/ ... 1_i386.deb
src file : http://downloads.sourceforge.net/openil ... 7.8.tar.gz

The following Files will be needed for compiling the src [Note : you should have them neway, if not then install now :P]
Libpng http://www.libpng.org/pub/png/libpng.html
Libtiff http://www.libtiff.org/ this sucker was causing me some trouble :o:
CMS http://www.littlecms.com/
LibMng http://www.libmng.com/

To install all the above libraries use the same procedure:
#Extract the tar
#then go to terminal
#navigate to extracted folder

Code: Select all

./configure
make
make install
Now to install DevIL
If you use .deb file : just double click the file and install
if you use src file then follow the steps as earlier to compile and install:
#Extract the tar
#then go to terminal
#navigate to extracted folder

Code: Select all

./configure
make
make install
4.d) PhysicsSF http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz

to compile u will need "cmake"
#extract the file
#open terminal
#navigate to extracted folder

Code: Select all

cmake .
make
make install

4.e) mpg123 http://sourceforge.net/projects/mpg123/ ... 2/download

#Extract the tar
#then go to terminal
#navigate to extracted folder

Code: Select all

./configure
make
make install
5) Finally you are ALMOST ready to install
Go to where you extracted Folder [step 3 = love-head]
run terminal
use :-

Code: Select all

./configure
#all should run well
make
again at make you will encounter some errors telling you that some definition is improper in modplug_settings [you will have to read the output on terminal :P]
something like this:-

Code: Select all

g++ -DHAVE_CONFIG_H   -I. -I./modules -I/usr/include/AL -I/usr/include/freetype2  -I/usr/include/lua5.1 -I/usr/include/SDL -D_FILE_OFFSET_BITS=64   -g -O2 -MT modules/sound/lullaby/ModPlugDecoder.o -MD -MP -MF $depbase.Tpo -c -o modules/sound/lullaby/ModPlugDecoder.o modules/sound/lullaby/ModPlugDecoder.cpp &&\
	mv -f $depbase.Tpo $depbase.Po
modules/sound/lullaby/ModPlugDecoder.cpp: In constructor ‘love::sound::lullaby::ModPlugDecoder::ModPlugDecoder(love::Data*, const std::string&, int)’:
modules/sound/lullaby/ModPlugDecoder.cpp:45: error: ‘struct ModPlug_Settings’ has no member named ‘mStereoSeparation’
modules/sound/lullaby/ModPlugDecoder.cpp:46: error: ‘struct ModPlug_Settings’ has no member named ‘mMaxMixChannels’
make[3]: *** [modules/sound/lullaby/ModPlugDecoder.o] Error 1
make[3]: Leaving directory `/home/fer0x/Downloads/love-HEAD/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fer0x/Downloads/love-HEAD/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fer0x/Downloads/love-HEAD'
make: *** [all] Error 2
6)now in the extracted folder [love - head]
go to folder : love-HEAD/src/modules/sound/lullaby
edit the file modPlugDecoder.cpp using gedit
look for the lines

Code: Select all

settings.mStereoSeparation = 128;

settings.mMaxMixChannels = 32;
and comment them out like this :-

Code: Select all

//settings.mStereoSeparation = 128;

//settings.mMaxMixChannels = 32;
save the file

7)repeat the make procedure at the "love-head" folder [all will be fine now]

Code: Select all

make
make install
You will have Love installed Now
To test type in terminal :-

Code: Select all

love
you will have this window :-
Image

ENJOY :emo:

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 7:35 pm
by fer0x
sorry for the lengthy process but this is how it is :P
il try to make a single package and script (online & offline) for setup and upload it soon :)

Note the cpp file having missing member ? why would it be so? are others using differnt libs??

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 8:48 pm
by thelinx
I feel like Linux Mint should have packages for SDL, DevIL and PhysFS. Have you tried searching properly?

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 9:04 pm
by bartbes
Isn't mint an ubuntu derivative? Meaning you could've used my ppa?
Even if you use the debian edition, there are packages for debian.

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 9:24 pm
by TechnoCat
bartbes wrote:Isn't mint an ubuntu derivative? Meaning you could've used my ppa?
Even if you use the debian edition, there are packages for debian.
Yes.
"sudo apt-get install" them all

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 9:47 pm
by Boolsheet
On Linux Mint 11 the dev packages are up-to-date. I could build it with the ubuntu way described on the Building LÖVE wiki. (Minus the manual package updating)
Linux Mint 9 is probably still using libmodplug 8.8.1 or older.

The libtiff.org website had some suspicious activities, read it up on wikipedia.
Use this: http://www.remotesensing.org/libtiff/

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 10:34 pm
by Ensayia
I am speechless. How is that number of steps to get one program working on ANY OS acceptable? Can someone explain the reason for that madness?

This is an honest question, I'm not trying to start a Windows/Linux/Mac shitstorm.

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 10:39 pm
by slime
Don't worry, it's all open-source! You can do whatever you want! Screw Microsoft and Apple! ;)

From what I understand, the Windows and OS X way of doing things is for every program to include every dependency it needs in its own install, whereas with Linux, the dependencies are installed system-wide independently of whatever program needs them (thus saving space and unifying versions, or whatever). The linux way sounds good on paper compared to the other way sometimes, but it causes way more problems than it solves IMO.

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 10:46 pm
by Robin
Ensayia wrote:I am speechless. How is that number of steps to get one program working on ANY OS acceptable?
The thing is, it is not one program. It is a collection of many libraries, plus the LÖVE executable. It's even worse than you can see, since ./configure and make hide the bulk from you. This is the case on any OS. Most of the time, you just don't see it.

Re: Installing Love 0.7.2 on Linux Mint

Posted: Fri Jul 15, 2011 10:48 pm
by Ensayia
Robin wrote:
Ensayia wrote:I am speechless. How is that number of steps to get one program working on ANY OS acceptable?
The thing is, it is not one program. It is a collection of many libraries, plus the LÖVE executable. It's even worse than you can see, since ./configure and make hide the bulk from you. This is the case on any OS. Most of the time, you just don't see it.
Yes, but doesn't Linux have automation to any degree, or do you always have to hunt down dependencies to install anything?