Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to compile plip for ubuntu 64? #41

Open
afakharany93 opened this issue Oct 25, 2017 · 1 comment
Open

how to compile plip for ubuntu 64? #41

afakharany93 opened this issue Oct 25, 2017 · 1 comment

Comments

@afakharany93
Copy link

It says in the installation guid of vtorcs-color:
Requires plib 1.8.5, FreeGLUT or GLUT, be aware to compile plib with -fPIC on AMD64 if you run a 64 bit version of Linux. Be aware that maybe just 1.8.5 works.
I'm still new to this kind of stuff, so could you please tell how to do that?

@jinchenglee
Copy link

Copied from http://www.berniw.org/tutorials/robot/tutorial.html

Download and Unpack Plib

Download plib-1.8.3.tar.gz from here. TORCS has been tested against 1.8.3, for other versions we guarantee for nothing! Stay as root and do

cd /usr/src

mkdir torcs

cd torcs

tar xfvz /path_to_downloaded_files/plib-1.8.3.tar.gz

cd plib-1.8.3

Compiling and Installing Plib

You are still root and in /usr/src/torcs/plib-1.8.3, if you run a 64 bit version of Linux export the following variables:

export CFLAGS="-fPIC"

export CPPFLAGS=$CFLAGS

export CXXFLAGS=$CFLAGS

Now for all platforms run:

./configure

make

make install

Just to play safe clear the above defined variables:

export CFLAGS=

export CPPFLAGS=

export CXXFLAGS=

If something fails you need to resolve it. In case the configure script complained about something you can find some additional information in the file config.log. The cause for problems are usually missing header files or libraries, wrong versions or multiple versions installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants