Page 1 of 1

Compiling on Fedora

Posted: Sun Aug 17, 2008 11:08 pm
by freegamer
I can't compile Love on Fedora.

Code: Select all

/usr/bin/ld: cannot find -llua5.1
collect2: ld returned 1 exit status
I do have the lua 5.1 devel package installed. The header files seem to reside in /usr/include (confirmed by trying a find /usr -name lua* which only returns these).

Code: Select all

ls /usr/include/lua*
/usr/include/lualib.h
/usr/include/luaconf.h
/usr/include/lua.h
/usr/include/lua.hpp[
I modifed the Makefile to read:

Code: Select all

INCLUDE_LUA= -I/usr/include
But no dice (same error as before).

Re: Compiling on Fedora

Posted: Sun Aug 17, 2008 11:14 pm
by rude
Hello.

I've heard that many distros use just -llua instead of -llua5.1. Have you tried changing LD_LUA to -llua?

On a related note, the autotools files have been done for some time (thanks tido). They'll be released with the next version.

Re: Compiling on Fedora

Posted: Sun Aug 17, 2008 11:16 pm
by freegamer
Yay! That (-llua) worked! Cheers.

Re: Compiling on Fedora

Posted: Sun Aug 17, 2008 11:18 pm
by rude
I solved a Linux-related problem? Unpossible!