LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 03-03-2024, 03:43 PM   #1
TronNerd82
LQ Newbie
 
Registered: Dec 2023
Location: Burgerland
Distribution: Slackware, Debian, NetBSD, NomadBSD
Posts: 6
Blog Entries: 1

Rep: Reputation: 10
How might I go about running Tux: A Quest for Herring on modern Debian?


For starters, where might I even download the game? Second, once I do find the game, what might I need to get it running? Has anyone successfully run the game anytime recently?

I'd just like to try playing this rather historic (if underrated) FOSS game starring everyone's favorite chubby penguin.
 
Old 03-03-2024, 03:53 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
https://github.com/malespiaut/tuxaqfh
https://sourceforge.net/projects/tux....0.14-classic/

Looks lik it is cpp.
https://github.com/malespiaut/tuxaqf...er/src/tux.cxx

You can try to build it if you have the depends installed, if it is not in debians repos.
 
Old 03-03-2024, 04:02 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,730

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Never mind wrong game...

Last edited by michaelk; 03-03-2024 at 04:04 PM.
 
Old 03-03-2024, 06:28 PM   #4
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
I tried on Debian Stable from the sourceforge package, but failed. The github link is missing configure, so didn't know how to try that one.

Code:
Making all in src
make[1]: Entering directory '/tmp/tux_aqfh-1.0.14/src'
c++  -g -O2 -O6 -Wall  -o tux_aqfh  camera.o components.o fade_out.o feature.o gfx.o globalstate.o gui.o hooks.o score.o isect.o level.o material.o ocean.o orca.o penguin.o rocket.o sound.o starwing.o status.o surf_rev.o tux.o tuxstate.o whale.o slamRun.o slamCodeGen.o slamExpression.o slam.o slamStatement.o slamSymbols.o slamToken.o  -lplibsl -lplibssg -lplibpu -lplibfnt -lplibsg -lplibul    -lpthread -lX11 -lXi -lXext -lXmu  -lm
/usr/bin/ld: gfx.o: undefined reference to symbol 'glEnable'
/usr/bin/ld: /lib/i386-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:171: tux_aqfh] Error 1
make[1]: Leaving directory '/tmp/tux_aqfh-1.0.14/src'
make: *** [Makefile:113: all-recursive] Error 1
 
Old 03-04-2024, 07:44 AM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
Get source.
https://github.com/malespiaut/tuxaqfh

Start to build it.
Code:
./autogen.sh
configure.ac:8: installing './compile'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
Makefile.am: installing './INSTALL'
src/Makefile.am: installing './depcomp'

./configure
...
config.status: creating slamcode/Makefile
config.status: creating src/Makefile
config.status: creating wavs/Makefile
config.status: executing depfiles commands
...needs plib

#Get a copy of plib, decompress. build it
Code:
curl https://plib.sourceforge.net/dist/plib-1.8.5.tar.gz -o plib-1.8.5.tar.gz
tar xzf plib-1.8.5.tar.gz

./configure
...
config.status: creating src/net/Makefile
config.status: executing depfiles commands
PLIB configuration information:

  Building FNT library:     yes
  Building JS library:      yes
  Building NET library:     yes
  Building PUI library:     yes
  Building puAux library:   yes
  Building SG library:      yes
  Building PSL library:     yes
  Building SL library:      yes
  Building SSG library:     yes
  Building ssgAux library:  yes
  Building PW library:      yes
  Building UTIL library:    yes
  
make
#many warnings, no errors(old source)
...
rm -f libplibpw.a
ar cru libplibpw.a pw.o pwX11.o pwWindows.o pwMacOSX.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libplibpw.a
make[2]: Leaving directory '/me/cpp/plib/plib-1.8.5/src/pw'
make[2]: Entering directory '/me/cpp/plib/plib-1.8.5/src'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/me/cpp/plib/plib-1.8.5/src'
make[1]: Leaving directory '/me/cpp/plib/plib-1.8.5/src'
make[1]: Entering directory '/me/cpp/plib/plib-1.8.5'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory 'me/cpp/plib/plib-1.8.5
I don't want to install this. plib did build, tuxaqfh look like it is going to build. You don't have to install plib after you build it, but The OP will need to tell tuxaqfh Makefile where it can find pblib, if you leave it in the build dir.
 
Old 03-04-2024, 10:20 AM   #6
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
For debian (as topic suggests), easiest just to install libplib-dev package instead of building that manually. I also had to install libxmu-dev and libxi-dev.

The clue I got from you was to run autogen.sh before configure for the github version; that wasn't in the instructions.

But I got a different error than with the sourceforge code.
Code:
/usr/bin/ld: gui.o: in function `GUI::GUI()':
/home/legacy/tuxaqfh/src/gui.cxx:172: undefined reference to `jsJoystick::jsJoystick(int)'
/usr/bin/ld: gui.o: in function `GUI::joystickInput()':
/home/legacy/tuxaqfh/src/gui.cxx:276: undefined reference to `jsJoystick::read(int*, float*)'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:410: tux_aqfh] Error 1
make[1]: Leaving directory '/home/legacy/tuxaqfh/src'
make: *** [Makefile:362: all-recursive] Error 1

Last edited by enigma9o7; 03-04-2024 at 10:22 AM.
 
Old 03-04-2024, 12:30 PM   #7
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
Arch has plib in the AUR. I will use this version.
https://aur.archlinux.org/packages/plib
https://aur.archlinux.org/cgit/aur.g...KGBUILD?h=plib

And this source for tuxaqfh
https://github.com/malespiaut/tuxaqfh

Already had libxi, libxmu.

I got the same errors, so...I remarked out lines 172, 276 in gui.cxx

And that compiled.

Code:
./tux_aqfh --help


   WELCOME TO: TUXEDO T. PENGUIN - A QUEST FOR HERRING.
               by Steve and Oliver Baker
                 <sjbaker1@airmail.net>
                  http://tuxaqfh.sourceforge.net


                        #####        
                       #######       
                       #  #  #       
                       #" #" #       
 Linux                ##vvvvv##      
 Rules!              ##  vvv  ##     
                    #          ##    
                   ##           ##   
                   ###          ###  
                 +++#####       ##++ 
                ++++++#       #++++++
                +++++++#     #+++++++
                  +++++#######+++++  
                    +++       +++    


Usage:

    tux_aqfh [OPTIONS]...

Options:
  -h, --help            Display this help message.
  -t, --tux             Play as Tux (the default)
  -g, --gown            Play as Gown
  -r, --reset           Reset game to start (BEWARE!!)
  -d                    Enable various internal debug
  -D, --datadir DIR     Load the game data from DIR defaults
                        to /usr/local/share/games/tux_aqfh
To the OP. It is build-able from the above source.
 
Old 03-04-2024, 09:12 PM   #8
TronNerd82
LQ Newbie
 
Registered: Dec 2023
Location: Burgerland
Distribution: Slackware, Debian, NetBSD, NomadBSD
Posts: 6

Original Poster
Blog Entries: 1

Rep: Reputation: 10
Quote:
Originally Posted by teckk View Post
Arch has plib in the AUR. I will use this version.
https://aur.archlinux.org/packages/plib
https://aur.archlinux.org/cgit/aur.g...KGBUILD?h=plib

And this source for tuxaqfh
https://github.com/malespiaut/tuxaqfh

Already had libxi, libxmu.

I got the same errors, so...I remarked out lines 172, 276 in gui.cxx

And that compiled.

Code:
./tux_aqfh --help


   WELCOME TO: TUXEDO T. PENGUIN - A QUEST FOR HERRING.
               by Steve and Oliver Baker
                 <sjbaker1@airmail.net>
                  http://tuxaqfh.sourceforge.net


                        #####        
                       #######       
                       #  #  #       
                       #" #" #       
 Linux                ##vvvvv##      
 Rules!              ##  vvv  ##     
                    #          ##    
                   ##           ##   
                   ###          ###  
                 +++#####       ##++ 
                ++++++#       #++++++
                +++++++#     #+++++++
                  +++++#######+++++  
                    +++       +++    


Usage:

    tux_aqfh [OPTIONS]...

Options:
  -h, --help            Display this help message.
  -t, --tux             Play as Tux (the default)
  -g, --gown            Play as Gown
  -r, --reset           Reset game to start (BEWARE!!)
  -d                    Enable various internal debug
  -D, --datadir DIR     Load the game data from DIR defaults
                        to /usr/local/share/games/tux_aqfh
To the OP. It is build-able from the above source.
Followed your advice but I'm still having issues. The compilation goes fine until it tries to compile in the penguin directory, to which it throws up the following lines:

Code:
Making install in penguin
make[1]: Entering directory '/home/tronnerd82/gits/tuxaqfh/penguin'
make[1]: *** No rule to make target 'configure.ac', needed by 'all-am'.  Stop.
make[1]: Leaving directory '/home/tronnerd82/gits/tuxaqfh/penguin'
make: *** [Makefile:362: install-recursive] Error 1
I'm not sure if it's doing this because I have the files in a special directory for things I get off of GitHub and it expects to be somewhere else, or if there's more code that needs to be commented out or what. Not to seem noob-ish but I require further help with this, as C++ and Makefile syntax are not my specialty.

Any help is appreciated, and I'm grateful to have gotten this far. All of you guys' help means a lot.
 
Old 03-05-2024, 07:16 AM   #9
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
Did that spit out an executable at <your_build_path>/tuxaqfh-master/src/tux_aqfh

Will that executable run?
Code:
<your_build_path>/tuxaqfh-master/src/tux_aqfh --help
I did not work out all of the changes needed in that code tree to make it work on a modern sound system, modern joystick etc. It was just to get it running. That executable has a segfault when I try and use some of those switches.

If you want to use this old source tree, you'll have work the problems, do some research and see what needs to be done to fix it. It may be syntax has changed, paths have changed....May take you a while.

This will be a good opportunity for you to learn. It's more enjoyable to work on something that you actually want to use, rather than just an example out of a book.

You can't, on a forum like this, help someone debug a code tree like that. The thread will be 80 posts long, and still nothing.

You need to learn.

Here is what you need.
https://cplusplus.com/doc/tutorial/
https://en.cppreference.com/w/
https://cplusplus.com/reference/

https://plib.sourceforge.net/
https://plib.sourceforge.net/examples.html

Search youtube for codebeauty, she gives lots of examples.

You can search a code tree for occurrences of <something> that you are looking for.

Example:
Code:
cd <path>/tux/tuxaqfh-master

grep -R '<plib' *
src/components.cxx:#include <plib/ssg.h>
src/penguin.h:#include <plib/ssg.h>
src/penguin.h:#include <plib/ssgKeyFlier.h>
src/rocket.h:#include <plib/ssg.h>
src/orca.h:#include <plib/ssg.h>
src/orca.h:#include <plib/ssgKeyFlier.h>
src/tux.h:#include <plib/ssg.h>
src/tux.h:#include <plib/ssgKeyFlier.h>
src/tux.h:#include <plib/sl.h>
src/tux.h:#include <plib/js.h>
src/tux.h:#include <plib/fnt.h>
Happy troubleshooting.
 
  


Reply

Tags
debian, gaming, penguin, tux



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
Tux: A Quest For Herring MTK358 Linux - Games 1 08-07-2010 07:46 PM
LXer: RightNow CEO & Founder Greg Gianforte to Speak at Red Herring Fall 2005 Conference LXer Syndicated Linux News 0 12-15-2005 06:16 AM
LXer: Altiris Recognized as a Red Herring Small Cap 100 LXer Syndicated Linux News 0 12-14-2005 03:46 AM
problem install tux a quest for a herring on fc3 fedora core 3 lusse92 Linux - Games 5 09-26-2005 09:41 AM
Cant install Tux a quest for herring. *cry* :'[ *sob* Make problems... RHLinuxGUY Linux - Games 12 11-01-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 09:03 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