Jump to content

fluid | fixed

Building TuxRacer from source on Leopard


  • Please log in to reply
30 replies to this topic

#21
dou2

dou2

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
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...



#22
dou2

dou2

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
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!

#23
socal swimmer

socal swimmer

    socal swimmer

  • Members
  • PipPipPipPipPipPipPip
  • 914 posts
  • Gender:Male
  • Location:socal
  • Interests:swim, learning, computers
awesome!

1) can you post (somewhere, maybe rapidshare?) the xcode project?

2) did you ever get an error related to varargs?

#24
dou2

dou2

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
Hello,

Here it is : I've built an archive that you can find here :   http://antoine.sauta...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!

#25
socal swimmer

socal swimmer

    socal swimmer

  • Members
  • PipPipPipPipPipPipPip
  • 914 posts
  • Gender:Male
  • Location:socal
  • Interests:swim, learning, computers
hey when I clicked on that link I got a 404 document not found.

can you email it to me?

1plus2 equal3 [at] gmail [dot] com

#26
dou2

dou2

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
Ooops!

The file name is right, but the link is false!
here is the true link : http://antoine.sauta...fr/TUXR6.tar.gz

#27
socal swimmer

socal swimmer

    socal swimmer

  • Members
  • PipPipPipPipPipPipPip
  • 914 posts
  • Gender:Male
  • Location:socal
  • Interests:swim, learning, computers
hey dou2, what OS are you on?

it sounds like you are on tiger. if you are, what version of xcode do you have?

#28
dou2

dou2

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
Hello socal swimmer,

I do have Leopard! I think I use XCode 3.0, I'll check when back home...
why do you ask? Did you find references to Tiger in the XCode project?
I guess it's possible because I installed Leopard as an update on top of Tiger.

#29
socal swimmer

socal swimmer

    socal swimmer

  • Members
  • PipPipPipPipPipPipPip
  • 914 posts
  • Gender:Male
  • Location:socal
  • Interests:swim, learning, computers
ok. No, when looking through it it was definitely leopard oriented. Nothing relating to tiger.

I got it to compile, just like you said, and its great!

one thing, the camera is always facing forward. When you turn, the camera doesn't turn. I'm not sure why, but I will have to look through the code....


Also, I found out why you didn't get the varargs error. One of your source files was slightly different. Also, somehow you had different build options than the ones found in my project.

More to consider...

#30
mattrb

mattrb

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 318 posts
  • Location:Chicago, IL
On official Extreme Tux racer site is a new build of tuxracer

Universal Binary Available NOW:
http://www.mediafire.com/?amisonbxzyg

#31
socal swimmer

socal swimmer

    socal swimmer

  • Members
  • PipPipPipPipPipPipPip
  • 914 posts
  • Gender:Male
  • Location:socal
  • Interests:swim, learning, computers

View Postmattrb, on Feb 27 2008, 11:29 AM, said:

On official Extreme Tux racer site is a new build of tuxracer

Universal Binary Available NOW:
http://www.mediafire.com/?amisonbxzyg

YAY!!

thank you!

:P





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2013 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy