Tobias Siems | 16 Feb 2012 12:49
Picon
Favicon

Fwd: Compiling torcs on mac lion

Hi, I'm on my way to make a build of torcs on mac lion x86_64. I ripped down plibsl to make a build without sound.

It should be a 64bit build.

Im running into problems now:

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

g++ -shared -o libconfscreens.so controlconfig.o graphconfig.o mouseconfig.o driverconfig.o joystickconfig.o simuconfig.o soundconfig.o openglconfig.o -L/Users/siems/trash/torcs-1.3.2/export/lib -L/opt/local/lib -lvorbisfile -L/usr/lib  -lplibjs 
Undefined symbols for architecture x86_64:
"GfuiMenuScreenCreate(char const*)", referenced from:
    GraphMenuInit(void*) in graphconfig.o
"GfuiGrButtonCreate(void*, char const*, char const*, char const*, char const*, int, int, int, int, void*, void (*)(void*), void*, void (*)(void*), void (*)(void*))", referenced from:
    GraphMenuInit(void*) in graphconfig.o
    TorcsDriverMenuInit(void*) in driverconfig.o
    SimuMenuInit(void*) in simuconfig.o
    SoundMenuInit(void*) in soundconfig.o
    OpenGLMenuInit(void*) in openglconfig.o
"GfuiLabelSetColor(void*, int, float*)", referenced from:
    GraphMenuInit(void*) in graphconfig.o
    TorcsDriverMenuInit(void*) in driverconfig.o
    SimuMenuInit(void*) in simuconfig.o
    SoundMenuInit(void*) in soundconfig.o
    OpenGLMenuInit(void*) in openglconfig.o
"GfParmReleaseHandle(void*)", referenced from:
    GraphMenuInit(void*) in graphconfig.o
    SaveGraphicOptions(void*)  in graphconfig.o
    GenCarsInfo()      in driverconfig.o
    GenDrvList()      in driverconfig.o
    SaveDrvList(void*)  in driverconfig.o
    ReadSimuCfg()      in simuconfig.o
    SaveSimuVersion(void*)  in simuconfig.o
    ...
"GfuiLabelSetText(void*, int, char const*)", referenced from:
    changeWheelDetailState(void*)  in graphconfig.o
    onActivate2(void*)  in mouseconfig.o
    Idle2()     in mouseconfig.o
    refreshEditVal()      in driverconfig.o

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I can find these Symbols in for example
src/libs/tgfclient/screen.cpp

but there is no lib compiled already, which i could link. executing make in src/libs ends with:

make: *** No targets.  Stop.

any ideas?

greets Tobias

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Torcs-devel mailing list
Torcs-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/torcs-devel
Bernhard Wymann | 16 Feb 2012 14:49
Picon
Favicon

Re: Fwd: Compiling torcs on mac lion

Hi Tobias

Hmm, no idea. But here some pointers:

- Did you run ./configure to set up everything (does this exist on Mac 
OS X)?
- With ./configure you can use --prefix=/home/you/torcs_bin to have 
everything "local" without polluting your system.
- Maybe the linker cannot find the libs during the build, does something 
like LD_LIBRARY_PATH exist on the mac, then you could try setting this 
according my description http://berniw.org/torcs/install/torcs-setup.html.

Somebody out there has set up an xcode project for 1.3.1, maybe you want 
try this:
https://github.com/camillol/MacTorcs

I am interested in updating/integrating this later into the standard 
package, so in case you got this working let me know about your experience.

Best regards

Bernhard

On 02/16/2012 12:49 PM, Tobias Siems wrote:
>> Hi, I'm on my way to make a build of torcs on mac lion x86_64. I
>> ripped down plibsl to make a build without sound.
>>
>> It should be a 64bit build.
>>
>> Im running into problems now:
>>
>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> g++ -shared -o libconfscreens.so controlconfig.o graphconfig.o
>> mouseconfig.o driverconfig.o joystickconfig.o simuconfig.o
>> soundconfig.o openglconfig.o
>> -L/Users/siems/trash/torcs-1.3.2/export/lib -L/opt/local/lib
>> -lvorbisfile -L/usr/lib -lplibjs
>> Undefined symbols for architecture x86_64:
>> "GfuiMenuScreenCreate(char const*)", referenced from:
>> GraphMenuInit(void*) in graphconfig.o
>> "GfuiGrButtonCreate(void*, char const*, char const*, char const*, char
>> const*, int, int, int, int, void*, void (*)(void*), void*, void
>> (*)(void*), void (*)(void*))", referenced from:
>> GraphMenuInit(void*) in graphconfig.o
>> TorcsDriverMenuInit(void*) in driverconfig.o
>> SimuMenuInit(void*) in simuconfig.o
>> SoundMenuInit(void*) in soundconfig.o
>> OpenGLMenuInit(void*) in openglconfig.o
>> "GfuiLabelSetColor(void*, int, float*)", referenced from:
>> GraphMenuInit(void*) in graphconfig.o
>> TorcsDriverMenuInit(void*) in driverconfig.o
>> SimuMenuInit(void*) in simuconfig.o
>> SoundMenuInit(void*) in soundconfig.o
>> OpenGLMenuInit(void*) in openglconfig.o
>> "GfParmReleaseHandle(void*)", referenced from:
>> GraphMenuInit(void*) in graphconfig.o
>> SaveGraphicOptions(void*) in graphconfig.o
>> GenCarsInfo() in driverconfig.o
>> GenDrvList() in driverconfig.o
>> SaveDrvList(void*) in driverconfig.o
>> ReadSimuCfg() in simuconfig.o
>> SaveSimuVersion(void*) in simuconfig.o
>> ...
>> "GfuiLabelSetText(void*, int, char const*)", referenced from:
>> changeWheelDetailState(void*) in graphconfig.o
>> onActivate2(void*) in mouseconfig.o
>> Idle2() in mouseconfig.o
>> refreshEditVal() in driverconfig.o
>>
>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> I can find these Symbols in for example
>> src/libs/tgfclient/screen.cpp
>>
>> but there is no lib compiled already, which i could link. executing
>> make in src/libs ends with:
>>
>> make: *** No targets. Stop.
>>
>> any ideas?
>
>> greets Tobias
>
>
>
> ------------------------------------------------------------------------------
> Virtualization&  Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>
>
>
> _______________________________________________
> Torcs-devel mailing list
> Torcs-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/torcs-devel

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Tobias Siems | 1 Mar 2012 12:02
Picon
Favicon

Re: Compiling torcs on mac lion

Hello, 
it seems that it is possible to compile torcs for lion. Well it doenst work with sound and i have to make some
changes inside the code. For example i need my own isnan function.

there is a problem with the makefiles, if i run configure and make the first problem is that
libconfscreen.so can't compile (at link stage) because there are some symbols missing. For example
GfuiScreenCreateEx, this symbol comes from libtgfclient.so. But it immediately tries to compile
libconfscreen and not libtgfclient before.

I was trieing to compile all the stuff step by step (tgf, tgfclient,… ) and to put the right libraries
inside the Makefiles but i made a mistake and my work is gone now…

any simple ideas for solving this? why does this work on my linux so well, but not on lion?

Greetz Tobias 

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Tobias Siems | 8 Mar 2012 13:18
Picon
Favicon

Re: Compiling torcs on mac lion

Hi, compiling torcs on a x86_64 Mac Lion is successfully done now. I opened a little Project on Sourceforge,
this helps compilling Torcs, its very simple. 
To get it write down 

git clone git://git.code.sf.net/p/torcsonmac/code torcsonmac

The scripts are commented and they can tell you the whole story of my work.

Anyway I'm running into problems with torcs now. I execute the program and i start a race then i get this error message:

./run.sh 
Visual Properties Report
------------------------
Compatibility mode, properties unknown.
WARNING: grscene:initBackground Failed to open shadow2.rgb for reading
WARNING:         no shadow mapping on cars for this track 
./torcs: line 53:  2390 Segmentation fault: 11  $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*

any ideas what this can mean?

greetz Tobias
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

Gmane