|
From: David S. <dsa...@te...> - 2018-12-11 02:57:18
|
----- On Dec 5, 2018, at 2:29 PM, João 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 ‘virtual bool > OpenALMusicPlayer::streamBuffer(ALuint)’: > OpenALMusicPlayer.cpp:164:22: error: invalid conversion from ‘char’ to ‘const > char*’ [-fpermissive] > const char* error = '\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 |