LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Trying my hand at installing a game... Tux Racer (https://www.linuxquestions.org/questions/linux-from-scratch-13/trying-my-hand-at-installing-a-game-tux-racer-4175514509/)

GameCodingNinja 08-12-2014 06:59 PM

Trying my hand at installing a game... Tux Racer
 
Well, as you can imagine, there's a problem. It fails during the configure which normally is no big deal, just install what it says is missing. It says it's missing tcl and tcl is a blfs item. I install it but get the same configure error afterward. Not sure what to do at this point.

Code:

creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for strdup... yes
checking for finite... yes
checking for isnan... yes
checking for _finite... no
checking for _isnan... no
checking for ieeefp.h... no
checking for Win32 platform... no
checking for X... libraries , headers
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for main in -ldl... yes
checking for main in -lm... yes
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... no
configure: error: Cannot find Tcl library

    *** BUILD_PROBLEM_DETECTED ***

make: *** No targets specified and no makefile found.  Stop.

    *** BUILD_PROBLEM_DETECTED ***

make: *** No rule to make target 'install'.  Stop.

    *** BUILD_PROBLEM_DETECTED ***


notKlaatu 08-12-2014 07:03 PM

Where did you install TCL to? you can tell the installer specifically where to look for TCL if need be.

Usually you can see these options with

Code:

./configure --options
Otherwise, you installed the correct version of TCL, yes?

ReaperX7 08-12-2014 09:29 PM

Tuxracer may be looking for an older version.

Try this:

Code:

whereis libtcl8.6.so
When it find it, try this:

Code:

cd /path/to/libtcl8.6.so
ln -sv libtcl8.6.so libtcl8.so

It might detect libtcl8.so at least, but needed, you could add extra symlinks for:

libtcl8.0.so
libtcl8.1.so
libtcl8.2.so
libtcl8.3.so
libtcl8.4.so
libtcl8.5.so

John VV 08-12-2014 09:43 PM

WHAT VERSION OF TUX RACER IS THIS ? -- yes all capital --
there are two

the old and unsupported outdated one and the newer "Extreme Tux Racer"

the old one from 2001
http://tuxracer.sourceforge.net/download.html
http://sourceforge.net/projects/tuxr...iles/tuxracer/

or the current one
http://sourceforge.net/projects/extremetuxracer/
http://sourceforge.net/projects/extr...iles/releases/

ReaperX7 08-12-2014 10:06 PM

Extreme Tuxracer is the latest incarnation of TuxRacer. I suggest you grab it.

GameCodingNinja 08-13-2014 12:09 AM

Thanks for all the suggestions! I'll try building the newest version of Extreme Tux Racer.

oblo 08-14-2014 02:54 AM

Extreme tuxracer works very well on lfs! ;)

GameCodingNinja 08-14-2014 09:12 AM

I downloaded the latest Extreme Tux Racer and configure reports "SDL_image not found".

Code:

...
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.0.0... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDLIMAGE... no
configure: error: SDL_image not found

I did a find and these are the only modules I found. This is after I installed SDL-1.2.15 from BLFS.

Quote:

find /usr -name *SDL*
/usr/lib/libSDLmain.a
/usr/lib/libSDLmain.la
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL.so
/usr/lib/libSDL-1.2.so.0.11.4
/usr/lib/libSDL.la
Is SDL_image in some other package?

oblo 08-14-2014 09:41 AM

1 Attachment(s)
I have these packages and probably you need it.

John VV 08-14-2014 12:57 PM

then build and install " SDL_image"
http://www.libsdl.org/projects/SDL_image/

you will also likely need "SDL_mixer", "SDL_ttf"

did you read the build instructions ?
http://sourceforge.net/p/extremetuxracer/wiki/Build

GameCodingNinja 08-14-2014 02:17 PM

Thanks for your help everyone. I just assumed everything I needed was under BLFS. I'm still just feeling my way around all this stuff.

GameCodingNinja 08-16-2014 02:44 PM

I'm a bit farther now. Now it's complaining it can't find libGL. It's installed through MesaLIB via BLFS.

Code:

checking for SDLIMAGE... yes
checking for SDLMIXER... yes
checking for glBegin in -lGL... no
configure: error: libGL not found

It's there, I can see it and I even ran the gears demo.

Code:

find /usr/lib -name libGL.*
/usr/lib/libGL.la
/usr/lib/libGL.so
/usr/lib/libGL.so.1.2.0
/usr/lib/libGL.so.1

Why does this have to be difficult?

John VV 08-16-2014 02:55 PM

well this is " linux from scratch "
it is NOT supposed to be EASY

LFS is supposed to be rather HARD and rather complicated
and something one has to PUZZLE through

Solving that puzzle of building LFS is the purpose of the OS

for "easy" use something like
Opensuse
on suse to install ETR it is one line in the terminal
and it is installed

the same for
Ubuntu,Mint, Fedora, Debian ,...

GameCodingNinja 08-16-2014 05:06 PM

Actually, LFS is easy. Just follow the set-by-step instructions. What's difficult is venturing out on your own as I've discovered in just trying to install a game. LFS doesn't actually teach you how to problem solve building packages. John, don't take it so personally if I vent a bit. Linux as I have come to learn, is all about pulling your hair out.

I have a feeling the problem has something to do with what Reaper posted. I'm might be looking for a different version of GL?

GameCodingNinja 08-18-2014 09:40 AM

I'm giving up on this idea of installing a game. I've tried other games and if I do get past the configure part, there's some compiler error related to SDL or something. If the game actually builds, then it errors with a segment fault or some other error when trying to run it. A weeks worth of effort with nothing to show for it.


All times are GMT -5. The time now is 01:27 AM.