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

Problem with make in vtorcs #62

Open
mekimvural opened this issue Mar 22, 2020 · 2 comments
Open

Problem with make in vtorcs #62

mekimvural opened this issue Mar 22, 2020 · 2 comments

Comments

@mekimvural
Copy link

I was able to install gym-torcs without any problems first time I tried but I had to format my computer and now I get this following error after I enter make command in vtorcs-RL-color. I tried fixes on other issues but they don't seem to be working.

warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
g++ -shared -o libclient.so entry.o mainmenu.o splash.o exitmenu.o optionmenu.o -L/home/ekim/gym_torcs/vtorcs-RL-color/export/lib -lalut -L/usr/lib -lplibssg -lplibsg -lplibul
/usr/bin/ld: /usr/lib/libplibssg.a(ssgBase.o): relocation R_X86_64_PC32 against symbol `_ZTV7ssgBase' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

(I attached the entire log)

error.txt

@JialiLing
Copy link

I have same problem , do you solved it yet

@muhsinkompas
Copy link

you have to compile with those flags.
export CFLAGS="-fPIC"
export CPPFLAGS=$CFLAGS
export CXXFLAGS=$CFLAGS

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

3 participants