PtokaX forum

PtokaX => Support => Topic started by: XiNoID on 18 December, 2008, 14:37:25

Title: Trouble with compiling PtokaX in gentoo linux
Post by: XiNoID on 18 December, 2008, 14:37:25
I'm getting this error:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llua5.1

but i have lua installed from portages and also compiled from source!

Any ideas? Please help! :)
Title: Re: Trouble with compiling PtokaX in gentoo linux
Post by: bastya_elvtars on 18 December, 2008, 22:32:04
Are you on Gentoo?

stupid me  :o
Title: Re: Trouble with compiling PtokaX in gentoo linux
Post by: ATAG on 19 December, 2008, 07:08:26
Quote#*******************************************************************************
# Binary to create
#
# Lua in Debian is lua5.1. Other known names are lua-5.1, lua51 and lua.
# If you have Lua lib with another name than lua5.1 change it in -llua5.1.
#
# In case when you don't have Lua as dynamic library (in debian liblua5.1.so)
# but as static library (liblua.a default when you compile Lua from sources)
# then remove -llua5.1 and after tinyxml/tinyxml.a add /usr/local/lib/liblua.a (default path when is Lua compiled from sources).
#*******************************************************************************
You have to change -llua5.1 to -llua (in the makefile) :)
Title: Re: Trouble with compiling PtokaX in gentoo linux
Post by: XiNoID on 19 December, 2008, 15:13:05
Thanks a lot!