Page 1 of 1

Build Love on PowerPC - MintPPC 9.3

Posted: Sun Aug 12, 2012 4:31 am
by JDFight
Hello Everyone -

I just got Love 0.8.0 to build successfully on my MintPPC g4 powerbook system. Here is how I did it:

Clone the love repository from Bitbucket

Code: Select all

hg clone https://bitbucket.org/rude/love
Install love dependencies:

Code: Select all

sudo apt-get build-dep love
I am not sure if this next step is neccessary - but I ran it and it worked for me...
Run the get-libs script in <LOVE_SRC>/platform/unix:

Code: Select all

cd <LOVE_SRC>/platform/unix
chmod +x get-libs
./get-libs
There is a macro called AM_PROG_AR defined in configure.in that initially causes love 0.8.0 to fail to build. This can be fixed by commenting out a line in the configure.in file.

cd to the love source directory and comment out line #9 in platform/unix/configure.in

Code: Select all

#AM_PROG_AR
Now build it:

Code: Select all

cd <LOVE_SRC>
platform/unix/automagic
./configure
make
Have fun spreading the love on powerpc!

Note: if you are running the unstable MintPPC 11 you can just install Love 0.8.0 with apt. I think these instructions will work similarly on Debian Squeeze based systems...

Re: Build Love on PowerPC - MintPPC 9.3

Posted: Sun Aug 12, 2012 9:07 am
by bartbes
JDFight wrote: cd to the love source directory and comment out line #9 in platform/unix/configure.in

Code: Select all

#AM_PROG_AR
I'm pretty sure that was necessary, perhaps you just didn't have the right tool installed?

Re: Build Love on PowerPC - MintPPC 9.3

Posted: Sun Aug 12, 2012 12:26 pm
by JDFight
Hmmm - Sorry about that, If it is neccessary, then I don't want to give bad advice....The AM_PROG_AR has something to do with automake. If it is not defined, then older versions of automake fail. My assumption in commenting it out was that if it was not defined, then it was not being used. I am using the automake that came with my system distribution which is based on Debian Squeeze.

The most I could find about the macros is here: http://www.gnu.org/software/automake/ma ... acros.html :

Code: Select all

AM_PROG_AR([act-if-fail])
    You must use this macro when you use the archiver in your project, if you want support for unusual archivers such as Microsoft lib. The content of the optional argument is executed if the archiver interface is not recognized; the default action is to abort configure with an error message. 
Here a couple more links I found related to AM_PROG_AR:
http://patchwork.ozlabs.org/patch/128825/
https://github.com/keithw/mosh/pull/266

Is this a critical component of Love? Is my build incomplete?

I will try again later with a new version of automake and see if the bug goes away - Thanks!

Re: Build Love on PowerPC - MintPPC 9.3

Posted: Mon Aug 13, 2012 10:12 am
by bartbes
Well, I had to add it because it wouldn't compile otherwise, if it compiled, it's probably fine, then.