abhisheknaik96 / MultiAgentTORCS

The multi-agent version of TORCS for developing control algorithms for fully autonomous driving in the cluttered, multi-agent settings of everyday life.
141 stars 32 forks source link

Torcs compilation errors (with solution for Ubuntu 18.04) #7

Closed micmarty closed 5 years ago

micmarty commented 5 years ago
Ubuntu 18.04
gcc and g++ 7.3.0
Torcs 1.36

I think this may help others:

sudo apt-get install libplib-dev
sudo apt-get install libopenal-dev
sudo apt-get install libalut-dev
sudo apt-get install libvorbis-dev
sudo apt-get install libxxf86vm-dev
sudo apt-get install libxmu-dev
sudo apt-get install libxi-dev
sudo apt-get install libxrender-dev
sudo apt-get install libxrandr-dev

Then you will get 2 compilation errors:

# Modify src/drivers/olethros/geometry.cpp
isnan -> std::isnan
# Modify src/libs/musicplayer/OpenALMusicPlayer.cpp
const char* error = '\0' -> const char* error = nullptr (Modify )
abhisheknaik96 commented 5 years ago

Thanks @micmarty for your help!