I was trying to cross-compile dlib for Raspberry Pi, using the arm-linux-gnueabihf compiler.
After successful runs of
make -j4, I ran
python setup.py bdist_wheel --repackage, which created the nencessary .so files which I later copied to my Pi's
Now when I run
import dlib in IDLE, I get the following error:
ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by dlib/dlib.so)
Here's the ouput of
strings /usr/lib/libstdc++.so.6 | grep GLIBCXX:
This means that the error is legitimate, but my libstdc++ is already at its newest version on the Pi. What can I do to get that 3.4.22 version installed on the Pi? Or maybe, if it's possible, to compile it again against 3.4.20? How can I set a compiler flag for that?