Modify ADC Library
Add the compilation option '-fPIC' of ADC library to adapt to Ubuntu system
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user