From 721914fc8e9fb4aace2eae1bcbbf40df8463a2b3 Mon Sep 17 00:00:00 2001 From: Suhayl <838119509@qq.com> Date: Sat, 9 Oct 2021 14:53:45 +0800 Subject: [PATCH] Modify ADC Library Add the compilation option '-fPIC' of ADC library to adapt to Ubuntu system --- Libs/C-Libs/ADCDevice/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libs/C-Libs/ADCDevice/build.sh b/Libs/C-Libs/ADCDevice/build.sh index ff70966..e4fe3ef 100644 --- a/Libs/C-Libs/ADCDevice/build.sh +++ b/Libs/C-Libs/ADCDevice/build.sh @@ -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