https://blog.csdn.net/u010312436/article/details/52486811
Add the following line CMakeLists.txt: add_definitions (-fPIC)