Re: Error compiling torcs 1.3.7 in ubuntu 18.04

João Aniceto <[email protected]> Tue, 11 Dec 2018 19:03:55 +0000
Newsgroups gmane.games.torcs.general
Message-ID <DB3PR02MB0537E74F6FA6035194AEDAECFBA60@DB3PR02MB0537.eurprd02.prod.outlook.com>
--===============7951938751392671993==
Content-Language: pt-PT
Content-Type: multipart/alternative;
	boundary="_000_DB3PR02MB0537E74F6FA6035194AEDAECFBA60DB3PR02MB0537eurp_"

--_000_DB3PR02MB0537E74F6FA6035194AEDAECFBA60DB3PR02MB0537eurp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Thanks that was very usefull.

Along with the following thread i was able to finish installing torcs.

https://sourceforge.net/p/torcs/mailman/message/35831161/


Bye, Joao Aniceto

________________________________
De: David Savinkoff <[email protected]>
Enviado: 11 de dezembro de 2018 03:57:08
Para: Jo=E3o Aniceto
Cc: [email protected]
Assunto: Re: [Torcs-users] Error compiling torcs 1.3.7 in ubuntu 18.04

----- On Dec 5, 2018, at 2:29 PM, Jo=E3o Aniceto wrote:
> Hi all
>
> Im having a problem in compiling TORCS 1.3.7, using a 64 bit ubuntu 18.04=
 .
>
> The error is the following :
>
> OpenALMusicPlayer.cpp: In member function =91virtual bool
> OpenALMusicPlayer::streamBuffer(ALuint)=92:
> OpenALMusicPlayer.cpp:164:22: error: invalid conversion from =91char=92 t=
o =91const
> char*=92 [-fpermissive]
> const char* error =3D '\0';
> ^~~~

The solution is to change '\0' to ""
in
torcs-1.3.7src/libs/musicplayer/OpenALMusicPlayer.cpp
then compile.
Hopefully the next version of torcs will have this fixed.

Don't install the torcs source code into /usr/src
Don't compile as root.
Don't install torcs binary into the system.
(no need for root privileges)
Do use your home directory eg. /home/user/torcs-1.3.7
Furthermore, you should install the application to your home directory,
that way you can develop, compile, install and execute torcs in your
home directory. See TorcsNotes.txt

I hope that some day OpenALMusicPlayer and its dependencies
could be avoided with a compile switch.

Sincerely, David

--_000_DB3PR02MB0537E74F6FA6035194AEDAECFBA60DB3PR02MB0537eurp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p style=3D"margin-top:0;margin-bottom:0">Thanks that was very usefull.</p>
<p style=3D"margin-top:0;margin-bottom:0">Along with the following thread i=
 was able to finish installing torcs.</p>
<p style=3D"margin-top:0;margin-bottom:0"><a href=3D"https://sourceforge.ne=
t/p/torcs/mailman/message/35831161/" class=3D"OWAAutoLink" id=3D"LPlnk37959=
0" previewremoved=3D"true">https://sourceforge.net/p/torcs/mailman/message/=
35831161/</a><br>
</p>
<p style=3D"margin-top:0;margin-bottom:0"><br>
</p>
<p style=3D"margin-top:0;margin-bottom:0">Bye, Joao Aniceto</p>
</div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>De:</b> David Savinkoff &lt;dsa=
[email protected]&gt;<br>
<b>Enviado:</b> 11 de dezembro de 2018 03:57:08<br>
<b>Para:</b> Jo=E3o Aniceto<br>
<b>Cc:</b> [email protected]<br>
<b>Assunto:</b> Re: [Torcs-users] Error compiling torcs 1.3.7 in ubuntu 18.=
04</font>
<div>&nbsp;</div>
</div>
<div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;=
">
<div class=3D"PlainText">----- On Dec 5, 2018, at 2:29 PM, Jo=E3o Aniceto w=
rote:<br>
&gt; Hi all<br>
&gt; <br>
&gt; Im having a problem in compiling TORCS 1.3.7, using a 64 bit ubuntu 18=
.04 .<br>
&gt; <br>
&gt; The error is the following :<br>
&gt; <br>
&gt; OpenALMusicPlayer.cpp: In member function =91virtual bool<br>
&gt; OpenALMusicPlayer::streamBuffer(ALuint)=92:<br>
&gt; OpenALMusicPlayer.cpp:164:22: error: invalid conversion from =91char=
=92 to =91const<br>
&gt; char*=92 [-fpermissive]<br>
&gt; const char* error =3D '\0';<br>
&gt; ^~~~<br>
<br>
The solution is to change '\0' to &quot;&quot;<br>
in<br>
torcs-1.3.7src/libs/musicplayer/OpenALMusicPlayer.cpp<br>
then compile.<br>
Hopefully the next version of torcs will have this fixed.<br>
<br>
Don't install the torcs source code into /usr/src<br>
Don't compile as root.<br>
Don't install torcs binary into the system.<br>
(no need for root privileges)<br>
Do use your home directory eg. /home/user/torcs-1.3.7<br>
Furthermore, you should install the application to your home directory,<br>
that way you can develop, compile, install and execute torcs in your<br>
home directory. See TorcsNotes.txt<br>
<br>
I hope that some day OpenALMusicPlayer and its dependencies<br>
could be avoided with a compile switch.<br>
<br>
Sincerely, David<br>
</div>
</span></font></div>
</body>
</html>

--_000_DB3PR02MB0537E74F6FA6035194AEDAECFBA60DB3PR02MB0537eurp_--


--===============7951938751392671993==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7951938751392671993==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============7951938751392671993==--