torcs-1.3.7 icon indicating copy to clipboard operation
torcs-1.3.7 copied to clipboard

Can't rebuild torcs after installing OpenCV for screenpipe because of libpng

Open martonur opened this issue 6 years ago • 1 comments

To build torcs 1.3.7 I used libpng16, but for the screenpipe tool OpenCV is needed, which depends on libpng12 so if I install OpenCV I can't rebuild TORCS.

Error: make[4]: Entering directory '/torcs/torcs-1.3.7/src/libs/tgf' make[4]: Nothing to be done for 'compil'. make[4]: Leaving directory '/torcs/torcs-1.3.7/src/libs/tgf' make[4]: *** No rule to make target '/usr/include/pnglibconf.h', needed by 'img.o'. Stop. make[4]: Entering directory '/torcs/torcs-1.3.7/src/libs/tgfclient' make[4]: Leaving directory '/torcs/torcs-1.3.7/src/libs/tgfclient' make[3]: *** [subdirs] Error 1 make[2]: *** [subdirs] Error 1 /torcs/torcs-1.3.7/Make-default.mk:679: recipe for target 'subdirs' failed make[3]: Leaving directory '/torcs/torcs-1.3.7/src/libs' /torcs/torcs-1.3.7/Make-default.mk:679: recipe for target 'subdirs' failed make[2]: Leaving directory '/torcs/torcs-1.3.7/src' /torcs/torcs-1.3.7/Make-default.mk:679: recipe for target 'subdirs' failed make[1]: Leaving directory '/torcs/torcs-1.3.7' make[1]: *** [subdirs] Error 1 make: *** [restart] Error 2 Makefile:30: recipe for target 'restart' failed

martonur avatar Oct 16 '18 15:10 martonur

Have you tried running it with sudo? Sometimes it does the trick for me.

VictorySpecificationII avatar Oct 21 '19 20:10 VictorySpecificationII