Re: Torcs fails to load on Mac

Bernhard Wymann <[email protected]> Fri, 22 May 2015 17:59:29 +0200
Newsgroups gmane.games.torcs.general
Organization wytec
Message-ID <[email protected]>
Hi Michael

Which TORCS did you try to run, the 1.2.4? This one won't work anymore, 
because Rosetta emulation gots removed from Mac OS X.

I have no newer binary available, but if you want to build it from 
Source there is a patch for 1.3.1 available, review this post:
http://www.berniw.org/trb/forum/showthread.php?topicid=3968

"
Hi Andrew

In the README there are hints to build it with up to VS2012, so I guess 
it should be pretty easy to build with VS2013.

Mac OS X ist not yet patched into 1.3.6, but this way you can build it:
- Get 1.3.1 (all in one sources)
- Get 1.3.6 (all in one sources)
- Create a patch from 1.3.1 to 1.3.6
- apply http://github.com/camillol/MacTorcs to 1.3.1, build
- apply 1.3.1 to 1.3.6 patch, adjust, build.

I did not yet integrate the patch yet because it contains binaries which 
I would prefer to build by myself, but I have to make myself familiar 
first with private frameworks in XCode.

Kind regards

Bernhard
"

"
Gave it another go on MacOSX. Warning - quick & dirty hacks below...

Firstly the base sdk on all the targets was invalid - I went through and 
changed it to the latest which on my machine is 10.9. I kept the build 
architecture as intel i386. Then built the Apply Patch target ok, and 
went on to build the Torcs.app target, then hit a few errors.

It didn't like the isnan macro that was added for Mac (in isnan.h), so 
being in a lazy & tired mood I just commented it out, which was enough 
to get past that problem (I should really have checked where it was 
being called from and fixed it there).

Next it says the call to strndup in raceinit.cpp is ambiguous, so I 
defined -DHAVE_STRNDUP in the compiler settings, which strangely didn't 
work so I just commented the code out of portability.h.

After that, it compiled - and ran :) So next step, I applied the patch 
created from diffing 1.3.1 and 1.36 - and got half a dozen failures in 
various places in the sourcecode. I tried to build anyway, and got 
errors in tgfclient.h, where included files js.h and ul.h couldn't be 
found. These files were under src/windows/include/plib which I added to 
the include path.

Next, a stack of errors relating to NUM_JOY being undefined in 
tgfclient.h. I couldn't find any header file in the project that defined 
it, so I just added a #define NUM_JOY 1 to tgfclient.h - I warned you 
this was quick & dirty!

Next, if can't find a file called musicplayer/musicplayer.h, so I added 
that folder to the include path as well. After this I ran into errors 
from the failed patch application. For example, char buf[BUFSIZE] not 
patched into screen.cpp.

Got through those, and now everything compiles but I've got a bunch of 
link errors. I'll take a break now and come back to those when I have 
more time & energy. This is all pretty messy I'm afraid - pity the 
Windows compile didn't work :\

2nd attempt - this time I applied the MacTorcs Xcode project directly to 
torcs-1.3.6. There were a few issues, a number of things the MacTorcs 
patch failed with, which I went through and resolved manually.

Everything compiled, then I hit the same link errors as I had with the 
1.3.1 patched to 1.3.6 version:-

stopMenuMusic()
startMenuMusic()
RmCarSetupScreenInit()

For the first two I realized I needed to add the musicplayer code to the 
project, however when I did so it was running into compile errors which 
I quickly decided not to delve into - instead I just went through and 
commented out all the MenuMusic calls.

For the 3rd link error I just needed to add carsetupscreen.cpp to the 
Xcode project.

Next I had a spate of errors relating to the AL libs, which I worked 
around simply by copying TorcsSound.h from the 1.3.1 sourcecode.

Lastly, the install script failed with duplicate instructions on a file 
in the aalborg track plus no rule to make target '*.png' - and that's 
where I'm up to at the moment.
"

Kind regards

Bernhard

On 05/22/2015 03:46 AM, Michael McNamara wrote:
> Hi everyone
>
> This is my first time using the mailing list, so please bare with me. I
> have just discovered Torcs, and want to run it on my Apple MacBook Air.
> However, Torcs will not load at all. Nothing happens when I run it. If I
> have the "Force Quit" program open, I can see Torcs appear for a quick
> split of a second, and vanish.
>
> I followed the Readme file in the installation package, and did exactly
> as I was supposed to. I installed the OpenAL framework first, then
> dragged the Torcs file to a 'Games' folder under Applications.
>
> Originally, under Security & Privacy under Settings, I had the allowable
> apps option set to "Mac app store and identified developers". This is a
> security feature that only allows approved programs to run. However, it
> always offers a "Allow anyway" button. I used this in the first
> installation attempt of the framework, and the first running attempt of
> Torcs. On the second try I set the allowance feature to 'Anywhere',
> meaning any downloadable program can run. I installed the framework a
> second time, but to no avail. Same result. I do not know how to remove
> the framework, if that is possible.
>
> Other than the charger I had no devices hooked to my Mac while
> installing the Framework and attempting to run Torcs on both tries.
>
> Here are the basic settings of my Mac. I can provide a full system
> report if that helps, but I don't think that is necessary. Please let me
> know if any of you can help out. Torcs looks like a great game, and I
> would really appreciate any help you can offer. Thank you.
>
> Michael
>
> Model: Apple MacBook Air Laptop (13-inch, Early 2014)
> Operating System: OS X Yosemite Version 10.10.3
> Processor: 1.4 GHz Intel Core i5
> Memory: 4 GB 1600 MHz DDR3
> Graphics: Intel HD Graphics 5000 1536 MB
> Storage: 70.52 GB free out of 120.14 GB
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
>
>
> _______________________________________________
> Torcs-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/torcs-users
>


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y