Modify ADC Library

Add the compilation option '-fPIC' of ADC library to adapt to Ubuntu
system
This commit is contained in:
Suhayl
2021-10-09 14:53:45 +08:00
parent 0dbd9e8765
commit 721914fc8e
+1 -1
View File
@@ -3,7 +3,7 @@
current_file=$0
cd "$(dirname "$current_file")"
g++ -c ADCDevice.cpp
g++ -fPIC -c ADCDevice.cpp
g++ -shared -fPIC -o libADCDevice.so ADCDevice.o
sudo cp ADCDevice.hpp /usr/include/
sudo cp libADCDevice.so /usr/lib