Jump to content

Building TuxRacer from source on Leopard


socal swimmer
 Share

31 posts in this topic

Recommended Posts

so I downloaded the source to tuxracer, and tried to build it.

 

The steps I have taken so far:

 

cd ~/tuxracer/tuxracer-0.61

 

cp /usr/share/automake-1.10/config.* ./

 

-this allows "./configure" to know what the system is. found this on google...

 

./configure --with-gl-libs=/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries --with-gl-inc=/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers

 

- the extra stuff was necessary to tell configure where my openGL stuff was.

 

I received all kinds of messages, mostly good, some bad but didn't really matter (no Win32 Platform lol). Full output attached.

 

~~The Main Problem:

 

then, I received these messages. This is after I told configure (using the arguments) where my headers where:

 

checking for GL library... yes

checking for glXGetProcAddressARB... no

checking for GLU library... yes

checking for GL/gl.h... no

configure: error: Cannot find GL/gl.h

 

After checking the path I entered for the header files, GL/gl.h is there. For some reason, it won't recognize it. any ideas?

 

I tried reading through the configure shell script. That was a ;) joke. It says its in sh, but I have no idea what any of it is saying. and I thought I was decent at scripting...

 

 

 

When I get this working, I will post the binaries somewhere. I want tuxracer for 10.5.

configureoutput.txt

Link to comment
Share on other sites

I want tuxracer too, so thankyou very much for starting the path for Tuxracer for Leopard.

 

Do you think TR in Leopard might actually have some Music like in the linux version? Or perhaps the fish and trees won't disappear from time to time?

 

Meh, anyway, best of luck.

Link to comment
Share on other sites

i did something very simmilar to this a while ago in tiger. it gave me full screen and music. the mac version has neither of them. what i want to see is tuxracer for iphone using the motion sensors to steer

Link to comment
Share on other sites

I've compiled some linux source apps where the same problem existed: even though you specified the include and library paths, the configure script wasn't picking up files.

 

The solution I found was to also pass the paths as CPPFLAGS= and LDFLAGS= options also.

eg

./configure CFLAGS=-I/path_to_include_file LDFLAGS=-L/path_to_library

 

Edit: Fixed typos, its LDFLAGS and CFLAGS. (Pasted a C++ example, oops)

Link to comment
Share on other sites

I want tuxracer too, so thankyou very much for starting the path for Tuxracer for Leopard.

 

Do you think TR in Leopard might actually have some Music like in the linux version? Or perhaps the fish and trees won't disappear from time to time?

 

Meh, anyway, best of luck.

 

Well, the audio parts failed the "./configure" and I haven't yet tryed to fix it. Once I get it to compile, I will go back and work it out.

 

there is a tuxracer for mac ppc somewhere around.. maybe it's better to start from there... a simple recompiling in UB should be enough

 

I sent an emails to the mailing list and to the person who did the port, looking for the source code. The port on the website does not have the source code.

 

i did something very simmilar to this a while ago in tiger. it gave me full screen and music. the mac version has neither of them. what i want to see is tuxracer for iphone using the motion sensors to steer

 

really? do you remember how you did it? This could be very helpful...

 

I've compiled some linux source apps where the same problem existed: even though you specified the include and library paths, the configure script wasn't picking up files.

 

The solution I found was to also pass the paths as CPPFLAGS= and LDFLAGS= options also.

eg

./configure CPPFLAGS=-I/path_to_include_file LDDFLAGS=-L/path_to_library

 

when I added these to the end of the configure command, it fails with the same message:

 

$./configure --with-gl-libs=/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries --with-gl-inc=/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers CPPFLAGS=-I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers LDDFLAGS=-L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries

....

 

checking for GL library... yes

checking for glXGetProcAddressARB... no

checking for GLU library... yes

checking for GL/gl.h... no

configure: error: Cannot find GL/gl.h

 

 

lol I just google the error (with quotes) and two results came up: this thread, and one in German. I will keep looking...

 

so any more ideas?

Link to comment
Share on other sites

well based on what headrush said (even though he deleted his post?), I got a little farther:

 

I created a symbolic link called "GL" back to the correct folder:

 

sudo ln -s /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/GL

 

-this allowed the configure to find where GL was (its kind of dumb, it needs the exact path (GL/gl.h), so now it has it)

 

then, I ran the autoconf, though It may have been pointless. This included the two libraries in some way?:

 

autoconf -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries -I/System/Library/Frameworks/GLUT.framework/Versions/A/GLUT

 

finally, I ran ./configure:

 

./configure --with-gl-libs=/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries --with-gl-inc=/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers

 

checking for GL library... yes

checking for glXGetProcAddressARB... no

checking for GLU library... yes

checking for GL/gl.h... yes

checking GL/glext.h usability... no

checking GL/glext.h presence... yes

configure: WARNING: GL/glext.h: present but cannot be compiled

configure: WARNING: GL/glext.h: check for missing prerequisite headers?

configure: WARNING: GL/glext.h: see the Autoconf documentation

configure: WARNING: GL/glext.h: section "Present But Cannot Be Compiled"

configure: WARNING: GL/glext.h: proceeding with the preprocessor's result

configure: WARNING: GL/glext.h: in the future, the compiler will take precedence

checking for GL/glext.h... yes

checking whether glext.h is recent enough... yes

checking for glut library... no

checking for glut32 library... no

configure: error: GLUT library not found or too old version. 3.7 (beta) or later required (or install SDL instead).

 

 

So basically, I need to tell ./configure where the glut library is. I was thinking that the library should be in the GLUT framework, just like the OpenGl library is in the opengl framework. Here is the contents of the GLUT framework:

 

$ ls /System/Library/Frameworks/GLUT.framework/Versions/A

CodeResources (document)

GLUT (Unix executable)

Headers (folder)

Resources ( folder)

 

Is GLUT (Unix executable) the library? I don't think so, because I used "LDDFLAGS=-L/System/Library/Frameworks/GLUT.framework/Versions/A/GLUT" to include it as a library, and got the same problem. if it isn't the library, where is the library?

Link to comment
Share on other sites

well based on what headrush said (even though he deleted his post?), I got a little farther:

It was a bad suggestion so I deleted it.

I've been reading some info trying to sort the issue out but seems there are conflicting ideas how this is suppose to be done.

 

Some suggest that you have to pass the frameworks needed to gcc as LDFLAGS options (-framework frameworkName) and others say using the headers and libraries from within the framework like this with gcc won't work right and you have to also install SDL, GLUT, etc through Fink or MacPorts for it to work properly.

 

Will post if I find out for sure.

Link to comment
Share on other sites

Why are you building this version?

 

Tuxracer stopped being maintained years ago. It was replaced by Planet Penguin Racer and most recently by Extreme Tux Racer.

 

See http://en.wikipedia.org/wiki/Tux_Racer

 

You can download source code and latest Windows and Linux builds here.

http://www.extremetuxracer.com/?download

 

There is a wiki about building in Linux which might be helpful.

http://extremetuxracer.com/wiki/index.php?...mpiling_ETRacer

 

I love Tux racer. But the nice thing about dual booting is you don't have to fix dependencies.

Link to comment
Share on other sites

well I tried to use the -F/pathtoframework/... -framework GLUT, but it failed immediately because it didn't recognize -F. I figured out that "./configure --help" gives you a list of valid options:

$ ./configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
 -h, --help              display this help and exit
     --help=short        display options specific to this package
     --help=recursive    display the short help of all the included packages
 -V, --version           display version information and exit
 -q, --quiet, --silent   do not print `checking...' messages
     --cache-file=FILE   cache test results in FILE [disabled]
 -C, --config-cache      alias for `--cache-file=config.cache'
 -n, --no-create         do not create output files
     --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
 --prefix=PREFIX         install architecture-independent files in PREFIX
		  [/usr/local]
 --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
		  [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
 --bindir=DIR           user executables [EPREFIX/bin]
 --sbindir=DIR          system admin executables [EPREFIX/sbin]
 --libexecdir=DIR       program executables [EPREFIX/libexec]
 --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 --libdir=DIR           object code libraries [EPREFIX/lib]
 --includedir=DIR       C header files [PREFIX/include]
 --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 --infodir=DIR          info documentation [DATAROOTDIR/info]
 --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 --mandir=DIR           man documentation [DATAROOTDIR/man]
 --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 --htmldir=DIR          html documentation [DOCDIR]
 --dvidir=DIR           dvi documentation [DOCDIR]
 --pdfdir=DIR           pdf documentation [DOCDIR]
 --psdir=DIR            ps documentation [DOCDIR]

Program names:
 --program-prefix=PREFIX            prepend PREFIX to installed program names
 --program-suffix=SUFFIX            append SUFFIX to installed program names
 --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

X features:
 --x-includes=DIR    X include files are in DIR
 --x-libraries=DIR   X library files are in DIR

System types:
 --build=BUILD     configure for building on BUILD [guessed]
 --host=HOST       cross-compile to build programs to run on HOST [bUILD]

Optional Features:
 --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 --enable-debug          Produce an executable with debugging symbols
 --enable-pedantic       Enable -pedantic (and -ansi for C) when compiling
 --enable-profile        Produce a profiled executable
 --disable-sdl           Disable detction and use of SDL
 --disable-sdltest       Do not try to compile and run a test SDL program
 --enable-stencil-buffer Use if your hardware has a stencil buffer

Optional Packages:
 --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 --with-x                use the X Window System
 --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
 --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
 --with-gl-libs=DIR      GL/MesaGL library location
 --with-gl-lib-name=NAME GL library name
 --with-glu-lib-name=NAME GLU library name
 --with-gl-inc=DIR       OpenGL header file location
 --with-glut-libs=DIR    Location of GLUT library
 --with-glut-inc=DIR     Specify GLUT header file location
 --with-data-dir=PATH    Default tuxracer data directory

Some influential environment variables:
 CC          C compiler command
 CFLAGS      C compiler flags
 LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
             nonstandard directory <lib dir>
 LIBS        libraries to pass to the linker, e.g. -l<library>
 CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
             you have headers in a nonstandard directory <include dir>
 CXX         C++ compiler command
 CXXFLAGS    C++ compiler flags
 CPP         C preprocessor
 XMKMF       Path to xmkmf, Makefile generator for X Window System

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

 

so basically what I need to do:

 

./configure --with-gl-inc=DIR --with-gl-libs=DIR --with-glut-inc=DIR --with-glut-libs=DIR

 

and it should work (or get past this point at least). However, I do not know where the glut library is. I found this thread that deals with it, but the command that they say works does nothing for me:

The thread

 

I tried using the OpenGL libraries in place of the glut libraries, and I tried putting the GLUT exeutable as the glut library. Both had the same error.

 

So how do we get configure to use a framework instead of the library-header setup it normally uses?

 

Headrush, have any more bad ideas?

 

btw, I'm not sure if the OpenGL problem was totally solved, because I get this:

 

configure: WARNING: GL/glext.h: present but cannot be compiled

configure: WARNING: GL/glext.h: check for missing prerequisite headers?

configure: WARNING: GL/glext.h: see the Autoconf documentation

configure: WARNING: GL/glext.h: section "Present But Cannot Be Compiled"

configure: WARNING: GL/glext.h: proceeding with the preprocessor's result

configure: WARNING: GL/glext.h: in the future, the compiler will take precedence

 

 

 

PS: I got ahold of the original XCode project, but it keeps failing with "revise code to use <stdargs.h> instead of <varargs.h>". I shall read up later....

 

http://idisk.mac.com/matthewmajka-Public

Link to comment
Share on other sites

Are you trying to build Extreme Tux Racer (latest) or the old Tux Racer (0.61)?

 

I've built both for Tiger, not for Leopard yet, though I don't expect any big issues since X11 didn't really change in its setup. let me know. There are some different tweaks that need to be set for both of them.

 

-nawcom

 

well I tried to use the -F/pathtoframework/... -framework GLUT, but it failed immediately because it didn't recognize -F. I figured out that "./configure --help" gives you a list of valid options:

$ ./configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
 -h, --help              display this help and exit
     --help=short        display options specific to this package
     --help=recursive    display the short help of all the included packages
 -V, --version           display version information and exit
 -q, --quiet, --silent   do not print `checking...' messages
     --cache-file=FILE   cache test results in FILE [disabled]
 -C, --config-cache      alias for `--cache-file=config.cache'
 -n, --no-create         do not create output files
     --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
 --prefix=PREFIX         install architecture-independent files in PREFIX
		  [/usr/local]
 --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
		  [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
 --bindir=DIR           user executables [EPREFIX/bin]
 --sbindir=DIR          system admin executables [EPREFIX/sbin]
 --libexecdir=DIR       program executables [EPREFIX/libexec]
 --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 --libdir=DIR           object code libraries [EPREFIX/lib]
 --includedir=DIR       C header files [PREFIX/include]
 --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 --infodir=DIR          info documentation [DATAROOTDIR/info]
 --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 --mandir=DIR           man documentation [DATAROOTDIR/man]
 --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 --htmldir=DIR          html documentation [DOCDIR]
 --dvidir=DIR           dvi documentation [DOCDIR]
 --pdfdir=DIR           pdf documentation [DOCDIR]
 --psdir=DIR            ps documentation [DOCDIR]

Program names:
 --program-prefix=PREFIX            prepend PREFIX to installed program names
 --program-suffix=SUFFIX            append SUFFIX to installed program names
 --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

X features:
 --x-includes=DIR    X include files are in DIR
 --x-libraries=DIR   X library files are in DIR

System types:
 --build=BUILD     configure for building on BUILD [guessed]
 --host=HOST       cross-compile to build programs to run on HOST [bUILD]

Optional Features:
 --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 --enable-debug          Produce an executable with debugging symbols
 --enable-pedantic       Enable -pedantic (and -ansi for C) when compiling
 --enable-profile        Produce a profiled executable
 --disable-sdl           Disable detction and use of SDL
 --disable-sdltest       Do not try to compile and run a test SDL program
 --enable-stencil-buffer Use if your hardware has a stencil buffer

Optional Packages:
 --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 --with-x                use the X Window System
 --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
 --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
 --with-gl-libs=DIR      GL/MesaGL library location
 --with-gl-lib-name=NAME GL library name
 --with-glu-lib-name=NAME GLU library name
 --with-gl-inc=DIR       OpenGL header file location
 --with-glut-libs=DIR    Location of GLUT library
 --with-glut-inc=DIR     Specify GLUT header file location
 --with-data-dir=PATH    Default tuxracer data directory

Some influential environment variables:
 CC          C compiler command
 CFLAGS      C compiler flags
 LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
             nonstandard directory <lib dir>
 LIBS        libraries to pass to the linker, e.g. -l<library>
 CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
             you have headers in a nonstandard directory <include dir>
 CXX         C++ compiler command
 CXXFLAGS    C++ compiler flags
 CPP         C preprocessor
 XMKMF       Path to xmkmf, Makefile generator for X Window System

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

 

so basically what I need to do:

 

./configure --with-gl-inc=DIR --with-gl-libs=DIR --with-glut-inc=DIR --with-glut-libs=DIR

 

and it should work (or get past this point at least). However, I do not know where the glut library is. I found this thread that deals with it, but the command that they say works does nothing for me:

The thread

 

I tried using the OpenGL libraries in place of the glut libraries, and I tried putting the GLUT exeutable as the glut library. Both had the same error.

 

So how do we get configure to use a framework instead of the library-header setup it normally uses?

 

Headrush, have any more bad ideas?

 

btw, I'm not sure if the OpenGL problem was totally solved, because I get this:

 

configure: WARNING: GL/glext.h: present but cannot be compiled

configure: WARNING: GL/glext.h: check for missing prerequisite headers?

configure: WARNING: GL/glext.h: see the Autoconf documentation

configure: WARNING: GL/glext.h: section "Present But Cannot Be Compiled"

configure: WARNING: GL/glext.h: proceeding with the preprocessor's result

configure: WARNING: GL/glext.h: in the future, the compiler will take precedence

PS: I got ahold of the original XCode project, but it keeps failing with "revise code to use <stdargs.h> instead of <varargs.h>". I shall read up later....

 

http://idisk.mac.com/matthewmajka-Public

Link to comment
Share on other sites

Are you trying to build Extreme Tux Racer (latest) or the old Tux Racer (0.61)?

 

I've built both for Tiger, not for Leopard yet, though I don't expect any big issues since X11 didn't really change in its setup. let me know. There are some different tweaks that need to be set for both of them.

 

-nawcom

 

I am trying to build the old Tux Racer (0.61). I was actually hoping to use the Mac OS X frameworks instead of X11, for faster running (though not relevant on my system lol) and so that it can be run without X11.

 

Do you have any idea how to build it using the OS X frameworks?

 

and can you tell me how you built it (./configure arguments, etc)?

 

thank you!

Link to comment
Share on other sites

ok I tryed looking at the configure script, but I honestly have no idea what it is saying. Well, I have some idea but I can't understand it as a whole. I know enough to find the relevant section, but i didn't find gcc anywhere. Could you shed some light on how to manually enter the framework arguments?

 

I actually came across those exact posts, but I couldn't figure out how to make them fit in to the configure script.

 

Here is the relevant portion of configure:

if test "x$have_SDL" != "xyes" ; then

   if test "x$with_glut_libs" = "x" ; then
GLUT_LDOPTS=""
   else
GLUT_LDOPTS="-L$with_glut_libs"
   fi



   saved_LIBS="$LIBS"

   GLUT_LIB_LIST="glut glut32"

   for GLUT_LIB_NAME in $GLUT_LIB_LIST ; do

{ echo "$as_me:$LINENO: checking for $GLUT_LIB_NAME library" >&5
echo $ECHO_N "checking for $GLUT_LIB_NAME library... $ECHO_C" >&6; }
LIBS="$saved_LIBS $TR_LIBS $GLUT_LDOPTS -l$GLUT_LIB_NAME"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

 ;
 return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 (eval "$ac_link") 2>conftest.er1
 ac_status=$?
 grep -v '^ *+' conftest.er1 >conftest.err
 rm -f conftest.er1
 cat conftest.err >&5
 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 (exit $ac_status); } && {
 test -z "$ac_c_werror_flag" ||
 test ! -s conftest.err
      } && test -s conftest$ac_exeext &&
      $as_test_x conftest$ac_exeext; then
 have_glut_lib=yes
else
 echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

have_glut_lib=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     conftest$ac_exeext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $have_glut_lib" >&5
echo "${ECHO_T}$have_glut_lib" >&6; }


if test "x$have_glut_lib" = "xyes" ; then
    break;
fi
   done

   if test "x$have_glut_lib" = "xno" ; then
{ { echo "$as_me:$LINENO: error: GLUT library not found or too old version. 3.7 (beta) or later required (or install SDL instead)." >&5
echo "$as_me: error: GLUT library not found or too old version. 3.7 (beta) or later required (or install SDL instead)." >&2;}
  { (exit 1); exit 1; }; }
   fi

   LIBS="$saved_LIBS"
   TR_CPPFLAGS="$TR_CPPFLAGS -DHAVE_GLUT"
   TR_LIBS="$TR_LIBS $GLUT_LDOPTS -l$GLUT_LIB_NAME"

fi

 

thank you so much!

 

EDIT:

 

Well after comparing a configure file after running autoconf to one before, I discovered that autoconf adds/changes a lot of stuff. I don't know if this is useful.

 

How would I go about manually entering the -framework stuff into configure (or something else)?

 

If I could get configure to finish (ignore the error from missing glut), then I could manually enter the frameworks into the makefile?

Link to comment
Share on other sites

Hello,

 

As I'm interested too in playing Tuxracer on Leopard, I tried to compile...

I succeeded in compiling using XCode with a slightly modified code, but at exec, no window pops up

and I get the following message after calling glutMainLoop() :

 

2008-01-07 22:26:03.350 TUXR4[5969:813] GLUT Warning: The following is a new check for GLUT 3.0; update your code.

2008-01-07 22:26:03.352 TUXR4[5969:813] GLUT Fatal Error: redisplay needed for window 1, but no display callback.

 

Any idea?

 

If you're interested, I can send you the modified code and XCode project.

Link to comment
Share on other sites

Hello,

 

As I'm interested too in playing Tuxracer on Leopard, I tried to compile...

I succeeded in compiling using XCode with a slightly modified code, but at exec, no window pops up

and I get the following message after calling glutMainLoop() :

 

2008-01-07 22:26:03.350 TUXR4[5969:813] GLUT Warning: The following is a new check for GLUT 3.0; update your code.

2008-01-07 22:26:03.352 TUXR4[5969:813] GLUT Fatal Error: redisplay needed for window 1, but no display callback.

 

Any idea?

 

If you're interested, I can send you the modified code and XCode project.

 

yes that would be very nice!

 

I will look that over...

 

Just curious, what were these "slight" modifications?

 

did you change tcl.h, varargs.h, or something else?

Link to comment
Share on other sites

Hello,

 

I'll try to send you all my stuff as soon as I'm back from work.

 

As I remember, no modifications in tcl.h or varargs.h.

I've suppressed the GL/ path in all #include <GL/glxxxx.h> because I don't want to

modify anything in Leopard Frameworks directories.

I modified game_config.c because macro definitions for INIT_PARAMxxx does not

compile as is (syntax of Cpp? different use of #, ## for arguments)

I modified tuxracer.h too to add defines such as HAVE_GLUT, HAVE_ISNAN, HAVE_GETTIMEOFDAY... kind of stuff normally set by configure, but as I use XCode I have no configure settings done.

I also had to modified a file (I don't remember which) to define missing OpenGL/Glut

symbol PFNALLOC... (not the right name, but something that kind).

 

I'll try to identify the changes I made in a more usable way before I send what I've done.

I propose to build a tar.gz archive with my whole directory to avoid missing things.

 

To be continued...

 

 

yes that would be very nice!

 

I will look that over...

 

Just curious, what were these "slight" modifications?

 

did you change tcl.h, varargs.h, or something else?

Link to comment
Share on other sites

Hello,

 

Here it is : I've built an archive that you can find here : http://antoine.sautai.free.fr/TUXR4.tar.gz

Unfortunately, I have no time to give more details about the modifications I've done... Sorry!

In game_config.c line 68, you will have to modify the DATA_DIR define that I've hardcoded (Shame on me),

to put the right path of the data directory (also provided in my tar.gz)

 

 

Tell me if all of this is useful to you!

To be continued...

Link to comment
Share on other sites

Hello,

 

I've got another much simpler openGL program that I can compile an execute in Leopard.

In this program, there's a call to the glutDisplayFunc function.

If I remove that call, I got no window and traces shows the same error as in TuxRacer!

This call to glutDisplayFunc is present in several files of TR, but the including functions

are never called!

Maybe we must force such a call?

I cannot experiment this now, but I think it can be an interresting idea...

 

To be continued...

 

Link to comment
Share on other sites

YYYYYYEEEEESSSSSS!!!!!!!!!As I guessed, adding glutDisplayFunc( main_loop ); just before the call to winsys_process_events(); at the end of main.c, pops up the first window.... And everything's working!! You can race!If you run from XCode in normal mode, it's OK.If you run from XCode in debug mode, you won't see the mouse pointer unless you click on a XCode window (which is not easy when you can't see the pointer!)TuxRacer is back!Hello, In the previous message I told "everything's working"... I meant that I was able to play the game!I still have trouble with sound which doesn't work at all, and the image in fullscreen mode does not fit the screen and is stuck in the lower left corner... The project type chosen for XCode (Command line utility/Standard tool) does not produce an TUXR4.app but a normal executable file opening a shell at run time... I don't know how to build an app!I don't know either how to install the data directory that app...You see there still some work to do, but I probably won't have much time to do it!If you succeed in running TuxRacer using my file, if you have troubles, or if you solve the problems above, keep me informed, please!

Link to comment
Share on other sites

Hello,

 

Here it is : I've built an archive that you can find here : http://antoine.sautai.free.fr/TUXR6.tar.gz

You suggested using rapidshare... I don't know how it works. Feel free to put my archive file in rapidshare if you can :

my internet provider will not be OK if there are too many downloads from my user space!

So as soon as you've put it in an accessible location, tell me I will remove the archive from my user space.

 

The archive contains source, XCode project and tuxracer data.

It produces a TUXR6.app which should be a usable application containing data.

(In XCode you compile as Debug first, ignore the error in script, then compile in Release... there should be no more error)

 

There is still no sound... I think SDL is needed for sound.

Fullscreen mode is still too small and not centered.

 

I got no errors about varargs!

 

Please tell me if you can compile and if it runs on your computer!

Link to comment
Share on other sites

 Share

×
×
  • Create New...