ugo-nama-kun / gym_torcs

MIT License
409 stars 163 forks source link

Problem with make in vtorcs #62

Open mekimvural opened 4 years ago

mekimvural commented 4 years ago

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 commented 3 years ago

I have same problem , do you solved it yet

muhsinkompas commented 1 year ago

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