I know in the wiki is mentioned that i should copy it from an old image.
But that couldn't be the solution.
Which library provides -lpi?
/usr/bin/ld: cannot find -lpi
collect2: error: ld returned 1 exit status
make: *** [Makefile:40: pi_marlin] Error 1
Hi, sorry for replay late. the source for libpi.so is released here: https://gitee.com/markyue/libpi it depends on wiringPi, so you may need to change the wiringpi path in the driver_api.cpp.