LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-01-2005, 12:32 PM   #1
Kruncher
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61

Rep: Reputation: 15
can't compile tuxracer on 10.2


I have tuxracer 0.61 and can not compile it on Slackware 10.2. It complains about not being able to find tcl.

This is what "configure" is looking for:
checking for tcl8.3 library... no
checking for tcl83 library... no
checking for tcl8.2 library... no
checking for tcl82 library... no
checking for tcl8.0 library... no
checking for tcl80 library... no
checking for tcl library... yes
checking for tcl.h... yes

Slackware 10.2 has tcl 8.4, so I checked "./configure --help" and found these:
--with-tcl-libs=DIR Location of Tcl library
--with-tcl-lib-name=NAME Tcl library name
--with-tcl-inc=DIR Location of Tcl header files
--with-tcl-header=NAME Tcl header filename

I tried changing some of these values and nothing seems to work. Maybe I am not doing it right.
Any ideas?

Thank you.
 
Old 10-01-2005, 01:22 PM   #2
Theta13579
Member
 
Registered: Aug 2005
Location: Milky Way Galaxy
Distribution: Slackware
Posts: 34

Rep: Reputation: Disabled
Re: can't compile tuxracer on 10.2

the part that states checking for tcl80 library.... no
that indicates version
the older versions are not on slack 10.2, (that I know of).
and I'm not sure what version of TCL is required to run tuxracer, but tcl 8.4 should work.

you can go to: http://www.tcl.tk/
(latest Releases top left)
OR: http://www.tcl.tk/software/

if you download the tcl and install it by hand it might place the library in the /lib/* folder, which might be where the config command is looking.


Find the exact directory for the TCL library and place it under the command....

./configure --with-tcl-libs=/usr/lib/tcl8.4

./configure --with-tcl-libs=/usr/lib/tclX8.3

or try...

./configure --with-tcl-libs=/usr/lib/

/usr/lib is where I found tcl directories;
Or, browse your folders for tcl files. great fun that.

Last edited by Theta13579; 10-01-2005 at 01:24 PM.
 
Old 10-01-2005, 02:24 PM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
I've had problems here and there with tcl/tk on Slack because some programs expect to find the headers in /usr/include/{tcl,tk}-private. You could try symlinking with those directories but it looks as tho it did find tcl however.

Are you sure there is a problem? Looks to me as if it's just saying that it didn't find 8.3.or below. Slack 10.2 uses 8.4..... Unless you actually get a 'make' error, I would'nt worry about what configure states. Seems to me, configure is looking for known versions of tcl first, and then if it doesn't find one, it does a general check for tcl libs and headers, which it found...
 
Old 10-01-2005, 02:41 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Why not get a precompiled Slackware package of tuxracer from www.linuxpackages.net ?
Then use installpkg to install it.
 
Old 10-01-2005, 03:03 PM   #5
Kruncher
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
I'm having problems in "make", I think it's because "configure" doesn't configure it right.
I would get a package from linuxpackages.net but back when I used 10.1 I was able to get it to compile fine, plus they don't have any packages for 10.2

Here is the output of "configure": http://users.cjb.net/lqtemp/configure
and here are the errors I get when I do "make" http://users.cjb.net/lqtemp/make.problems

edit:You have to paste those links into a new window/tab or it won't work for some reason (might be because of the refering url).

Last edited by Kruncher; 10-01-2005 at 03:07 PM.
 
Old 10-01-2005, 03:18 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
A tgz package from linuxpackages doesn't have to be built with make. It's already done. Just type, as root, installpkg tuxracer*.tgz. A 10.0 or 10.1 package should work in 10.2. I got a 9.1 package when I had 10.1 and it works fine.
 
Old 10-01-2005, 03:22 PM   #7
Kruncher
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
Right, I know what a tgz package is, and how to make one. I like making my own packages.
Tuxracer is just giving me problems on 10.2 when it compiled without a hitch in 10.1.
I just need some help in getting it to build (because I want it to take advantage of my hardware, athlonxp and not i486).
Any Ideas would be helpful, thank you.
 
Old 10-01-2005, 04:05 PM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
maybe install the Slack-10.1 version of tcl and try again ?
( i didn't try this though... )

egag
 
Old 10-01-2005, 04:21 PM   #9
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
I tried too with the same results. Hunting around on the web, I found the exact errors with others as well. Not sure what to tell you... Looks as if tcl is making changes and tuxracer isn't keeping up with them....
 
Old 10-01-2005, 04:27 PM   #10
Kruncher
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
So I guess since tuxracer is pretty much dead (last post on there site is at the end of 2001) there's isn't much hope for a working version of TuxRacer.
Guess I'll just have to stick with Planet Penguin Racer.

Thanks guys.
 
Old 10-01-2005, 10:36 PM   #11
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
anyone feel like sharing a PlanetPenguin Racer .SlackBuild script??
 
Old 10-01-2005, 11:54 PM   #12
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
ppracer is just your standard ./configure,make,make install type of deal. Nothing extraordinary about it. I tried to back port ppracer's TCL fix into tuxracer and made some headway but it just made additional problems. You can run a diff on 0.2.1 and 0.2 and see his "FUCKTCL" function added to game_config.{c,h}... I eventually gave up cause I didn't care enough to keep working on it but It's entirely within the realm of possibility.

ppracer is tuxracer. I didn't see a difference in the few minutes I was playing it, except when you try to trick jump(t), the screen flashes and you come to a halt. A little buggy but basically tuxracer.

Code:
#!/bin/sh

CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-ppracer
VERSION=0.3.1
ARCH=i486
BUILD=1

rm -rf $PKG
mkdir -p $PKG/install

cd $TMP
rm -rf ppracer-$VERSION
tar xjvf $CWD/ppracer-$VERSION.tar.bz2
cd ppracer-$VERSION
chown -R root.root .
find . -perm 777 -exec chmod 755 {} \;
find . -perm 664 -exec chmod 644 {} \;
# Proper form is not to install to /usr/local, but you could do:
# ./configure --datadir=/usr/local/games
#     
# That would put the binary in /usr/local/bin and the game folder in /usr/local/games
CFLAGS="-march=i486 -pipe -O2" \
./configure --prefix=/usr \
      --datadir=/usr/share
make
make install DESTDIR=$PKG

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)

cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

       |-----handy-ruler------------------------------------------------------|
ppracer: ppracer (OpenGL racing game)
ppracer:
ppracer: PlanetPenguin Racer is an OpenGL racing game featuring Tux, the
ppracer: Linux mascot. The goal of the game is to slide down a snow- and
ppracer: ice-covered mountain as quickly as possible. It is based on the
ppracer: GPL version of TuxRacer.
ppracer:
ppracer:
ppracer:
ppracer:
ppracer:
EOF

# Build the package:
cd $PKG
makepkg -l y -c n $TMP/ppracer-$VERSION-$ARCH-$BUILD.tgz

Last edited by jong357; 10-02-2005 at 12:11 AM.
 
Old 10-02-2005, 12:09 AM   #13
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
cool. thanks man.
 
Old 10-09-2005, 03:54 AM   #14
brancalessio
LQ Newbie
 
Registered: Aug 2004
Posts: 24

Rep: Reputation: 0
Re: can't compile tuxracer on 10.2

Tux Racer compiled neither on Slackware 10.0 nor on Slackware 10.1. At least, I was not able to do it and I always got the same error during ./configure. Did you achieve to compile it in 10.0 or 10.1? How did you get that?

Thanks you for help!

Thanks too to making me know of PlanetPenguin.

Quote:
Originally posted by Kruncher
I have tuxracer 0.61 and can not compile it on Slackware 10.2. It complains about not being able to find tcl.

This is what "configure" is looking for:
checking for tcl8.3 library... no
checking for tcl83 library... no
checking for tcl8.2 library... no
checking for tcl82 library... no
checking for tcl8.0 library... no
checking for tcl80 library... no
checking for tcl library... yes
checking for tcl.h... yes

Slackware 10.2 has tcl 8.4, so I checked "./configure --help" and found these:
--with-tcl-libs=DIR Location of Tcl library
--with-tcl-lib-name=NAME Tcl library name
--with-tcl-inc=DIR Location of Tcl header files
--with-tcl-header=NAME Tcl header filename

I tried changing some of these values and nothing seems to work. Maybe I am not doing it right.
Any ideas?

Thank you.
 
Old 10-09-2005, 07:15 AM   #15
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 189

Rep: Reputation: 123Reputation: 123
Hi

I could build tuxracer-0.61 package on Slackware-10.2 with following patch.
( http://lfs.mesi.com.ar/patches/downloads/tuxracer/ )

For example, my configure options are " ./configure --prefix=/usr --with-tcl-lib-name=tcl8.4 --with-data-dir=[PATH/TO/DATA-DIR]

Hope this help.
(j_w)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tuxracer problem dave`2005 Linux - Games 19 08-21-2005 12:32 PM
TuxRacer Lord C Linux - Software 4 03-11-2004 01:50 PM
Tuxracer wr3ck3d Linux - Software 8 08-02-2003 01:09 PM
does tuxracer have sound? jclark00001 Linux - General 3 02-20-2003 09:51 PM
tuxracer bibilit Linux - Software 4 11-13-2002 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration