Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: vinnie on September 25, 2011, 10:45:17 PM

Title: Make Package of Dungeon Crawl Stone Soup
Post by: vinnie on September 25, 2011, 10:45:17 PM
Are two days that I'm trying to build this game with the idea of ​​making a package, but I can not.
Here can you see evolution of my test https://crawl.develz.org/tavern/viewtopic.php?f=9&t=2665 .
In this moment i have problet to discovery llua5.1, I can not understand where it is!

if someone more capable than me could help me I would be happy  ;D
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: Rich on September 26, 2011, 12:01:56 AM
Hi vinnie
-l is a flag indicating a library, and lua5.1 is what it's looking for. You probably want  lua-dev.tcz, but
you may have to create a symlink or alter the name in the make file.
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: Juanito on September 26, 2011, 02:49:50 AM
liblua and lua-dev should do it
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: vinnie on September 27, 2011, 01:05:41 AM
@Juanito: simply install these two dependencies not resolve

@rich: i try to copy:
/usr/local/lib/liblua.so to /usr/local/lib/lua5.1
/usr/local/lib/liblua.so to /usr/local/lib/lua5.1.a
/usr/local/lib/liblua.so to /usr/local/include/lua5.1
/usr/local/lib/liblua.a to /usr/local/lib/lua5.1.a
But this don't work, there is the makefile:
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: Rich on September 27, 2011, 01:27:43 AM
Hi vinnie
Just a guess on my part, but try changing  -llua5.1  to  -lliblua  in the make file.
This line may also cause trouble:
LUA_INCLUDE_DIR := /usr/include/lua5.1
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: vinnie on September 27, 2011, 02:29:50 AM
RICH, i try to mod makefile and recompile:
makefile mod: http://sprunge.us/QhYU (http://sprunge.us/QhYU)
compilation: http://sprunge.us/cFJU (http://sprunge.us/cFJU)

I'm still stalled

Edit: I forgot to add the domain of the nopaste site, excuse me, the tiredness :P
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: Rich on September 27, 2011, 09:16:15 AM
Quote
makefile mod: QhYU
compilation: cFJU
Huh?
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: vinnie on September 27, 2011, 10:31:17 AM
makefile mod: http://sprunge.us/QhYU (http://sprunge.us/QhYU)
compilation: http://sprunge.us/cFJU (http://sprunge.us/cFJU)

my carelessness, I'm sorry
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: curaga on September 27, 2011, 11:17:35 AM
-llua not -lliblua
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: vinnie on September 28, 2011, 03:46:50 AM
ok, this trick works but i now have new error:
Code: [Select]
/usr/local/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [crawl] Error 1
tc@box:~/stone_soup-0.9.1/source$
(http://sprunge.us/LPMU (http://sprunge.us/LPMU))

In the game forum (https://crawl.develz.org/tavern/viewtopic.php?p=31706#p31706) they have suggested that I use the command "export CFLAGS=-L/usr/local/lib" but this does not work.
In addition, rather than to change an environment variable i prefer to change the makefile.
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: Rich on September 28, 2011, 09:07:48 AM
Hi vinnie
Sorry, I forgot that -l implies a lib prefix.
It now appears to be looking for Xorg and Xorg dev.
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: vinnie on September 28, 2011, 10:33:13 AM
ok but now the problems il GL, in the other forum they suggest to me to use export, but this is command of bash and I'd prefer to avoid.
If possible specify directory in the makefile o with option of make ?

https://crawl.develz.org/tavern/viewtopic.php?p=31843#p31843
here I summarized the situation
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: Rich on September 28, 2011, 02:18:30 PM
Hi vinnie
libGL is in Xorg. Did you try installing Xorg and Xorg-dev?
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: vinnie on September 28, 2011, 08:02:53 PM
eureka Rich, i have installed Xorg-7.5.tcz (I had already installed the header) and now dungeon crawl stone soup be compiled : http://sprunge.us/OWcL (http://sprunge.us/OWcL)
but it will not install! http://sprunge.us/LQSX (http://sprunge.us/LQSX) this is a real curse!
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: Rich on September 29, 2011, 01:21:43 AM
Hi vinnie
Maybe it wants the lua source files because it wants to compile lua?
Title: Re: Make Package of Dungeon Crawl Stone Soup
Post by: vinnie on September 30, 2011, 02:58:48 PM
I had already installed the lua-dev but, the last intervention galehar solved and now the game works, I just have to create the package :) .