Page 1 of 1

Building for Ubuntu 8.10 64-bit

Posted: Sun Feb 28, 2010 7:49 pm
by Cean
Howdy howdy,

The deb package on the homepage apparently doesn't work too well with 8.10, so I'm stuck with having to compile. I don't plan on upgrading to 9.10 because the last time I tried, bad things happened. But I won't go into that now.

"$ ./configure" works fine until it checks for lua:

Code: Select all

checking for library containing lua_pcall... no
configure: error: Can't LÖVE without Lua
"$ lua -v" returns:

Code: Select all

Lua 5.1.3  Copyright (C) 1994-2008 Lua.org, PUC-Rio
How do I make 1 + 1 = 2?

Re: Building for Ubuntu 8.10 64-bit

Posted: Sun Feb 28, 2010 7:51 pm
by bartbes
Install the dev packages.

EDIT: In the repo there is a script to download all required packages for you. Here

Re: Building for Ubuntu 8.10 64-bit

Posted: Sun Feb 28, 2010 7:51 pm
by Robin
My guess would be that you need some kind of dev package for Lua.

(Ninja'd)

Re: Building for Ubuntu 8.10 64-bit

Posted: Sun Feb 28, 2010 8:34 pm
by Cean
Thank you. That was a very quick response.

Now bear with me. I'm right-brained.

./configure seems to work fine now. However, "$ make" returns:

Code: Select all

make  all-recursive
make[1]: Entering directory `/home/cean/love-0.6.1'
Making all in src
make[2]: Entering directory `/home/cean/love-0.6.1/src'
make[3]: Entering directory `/home/cean/love-0.6.1/src'
depbase=`echo modules/sound/lullaby/Mpg123Decoder.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	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/Mpg123Decoder.o -MD -MP -MF $depbase.Tpo -c -o modules/sound/lullaby/Mpg123Decoder.o modules/sound/lullaby/Mpg123Decoder.cpp &&\
	mv -f $depbase.Tpo $depbase.Po
modules/sound/lullaby/Mpg123Decoder.cpp: In member function ‘int love::sound::lullaby::Mpg123Decoder::feed(int)’:
modules/sound/lullaby/Mpg123Decoder.cpp:206: error: ‘mpg123_feed’ was not declared in this scope
make[3]: *** [modules/sound/lullaby/Mpg123Decoder.o] Error 1
make[3]: Leaving directory `/home/cean/love-0.6.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cean/love-0.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cean/love-0.6.1'
make: *** [all] Error 2
I'm just going to be completely honest and admit that I have no idea what any of that means.

Re: Building for Ubuntu 8.10 64-bit

Posted: Sun Feb 28, 2010 8:45 pm
by bartbes
It means rude implemented a feature that I avoided in the original because it wasn't in the version that the ubuntu repo had. (9.10 has the new package)

Re: Building for Ubuntu 8.10 64-bit

Posted: Sun Feb 28, 2010 10:16 pm
by Cean
Ah, I see. Well I suppose love will have to wait until I can manage to get 9.10 working. Thanks again for your help.

Re: Building for Ubuntu 8.10 64-bit

Posted: Sun Feb 28, 2010 10:30 pm
by giniu
That's why I never liked ubuntu or other "versioned" operating systems, especially those that split binaries from headers - rolling release approach is lots better, nothing - like OS version - never stops you from upgrading :) Anyway - maybe you build your own package from source instead of changing whole OS version?