Re: torcs compilation error

Joseph Giancarlo <[email protected]> Tue, 4 Oct 2016 21:08:30 -0400
Newsgroups gmane.games.torcs.general
Message-ID <CAGXNKEB6ns7e02eJtw3OOzjG-dg6VD4Z0G8C0LUkatAj8==fsg@mail.gmail.com>
Does that mean that there is an updated robotgen script I should use
instead? or just copy the example files?  Sorry for my ignorance.

On Sun, Oct 2, 2016 at 6:09 PM, Bernhard Wymann <[email protected]> wrote:

> Hi Joseph
>
> Yes, there was an API-Change, use strdup, example from bt.cpp in TORCS:
> extern "C" int bt(tModInfo *modInfo)
> {
>     ...
>     modInfo[i].name = strdup(botname[i]);
>     modInfo[i].desc    = strdup(botdesc[i]);
>
> Btw. if somebody wants to bring the tutorial to the current date, let me
> know (I plan to update it and integrate it into the TORCS documentation
> when the 1.3.x series will get to pure mantainance mode, so this can take
> another year or so).
>
> Kind regards
>
> Bernhard
>
> On 02.10.2016 03:12, Joseph Giancarlo wrote:
>
>> I (semi) successfully compiled 1.3.7! and am now trying to make a
>> driver. I followed the steps in the tutorial and everything seemed ok
>> until I run make on the new bot and I get this warning:
>> _________________________________________________________
>> jbt.cpp: In function ‘int jbt(tModInfo*)’:
>> jbt.cpp:52:22: warning: deprecated conversion from string constant to
>> ‘char*’ [-Wwrite-strings]
>>      modInfo->name    = "jbt";  /* name of the module (short) */
>>                       ^
>> jbt.cpp:53:22: warning: deprecated conversion from string constant to
>> ‘char*’ [-Wwrite-strings]
>>      modInfo->desc    = "test"; /* description of the module (can be
>> long) */
>>                       ^
>> g++ -shared -o jbt.so jbt.o -L/usr/src/torcs/torcs-1.3.7/export/lib
>> -lopenal -lalut -lvorbisfile -L/usr/lib
>>  Exporting jbt.so to /usr/src/torcs/torcs-1.3.7/export/drivers/jbt/jbt.so
>>
>> ____________________________________________________________
>>
>>
>> Then if i run torcs and start a race with the bot it closes
>>
>> Any advice would be appreciated.  Thanks!
>>
>> On Sun, Sep 25, 2016 at 6:48 PM, David Savinkoff <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>     ----- Joseph Giancarlo wrote:
>>     > Hello all,
>>     >
>>     > I finally got around to reinstalling ubuntu and am now trying to
>>     get torcs
>>     > going and hopefully race next season. I ran into some errors
>>     configuring
>>     > torcs and would appreciate someone helping me through the error
>> log. I
>>     > could not figure out where it breaks.
>>     >
>>     > thanks,
>>     > --
>>     > Joe
>>
>>     You are compiling torcs-1.2.4 and 'configure' cannot find libm because
>>     much has changed since torcs-1.2.4
>>
>>     torcs-1.3.7 is the current version, it should compile.
>>
>>
>>
>>
>> --
>> Joseph Giancarlo
>> Michigan Technological University
>> Civil Engineering 2016
>> 248-763-9592
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> Torcs-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/torcs-users
>>
>>
>


-- 
Joseph Giancarlo
Michigan Technological University
Civil Engineering 2016
248-763-9592

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Torcs-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/torcs-users