Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Missing Makefile

1228 Views - Created 03/05/2019

03/05/2019

Posted by:
topquark22

topquark22 Avatar

I am trying to build the ABElectronics_CPP_Libraries on my Raspberry Pi. I downloaded the source code from Git, but I have no idea how to build the .so library. There is no Makefile provided. Could you please either provide a Makefile in Git itself, or advise me how to proceed?

Thank you, -TQ

04/05/2019

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

Hello

At the moment we do not have a make file for building a .so library.

The easiest way to use the ADC DAC Pi library in your project is to copy the ADCDACPi/ABE_ADCDACPi.cpp and ADCDACPi/ABE_ADCDACPi.h into your project folder and add the following code to the top of your program.


#include "ABE_ADCDACPi.h"

using namespace ABElectronics_CPP_Libraries;


When you compile your program include the ABE_ADCDACPi.cpp file in your list of code files. For example with our demo-adcread program you would compile it using g++ with the following command:


g++ demo-adcread.cpp ABE_ADCDACPi.cpp  -o demo-adcread


I will look at making our C++ library into a shared library with a makefile.

Sign in to post your reply

Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.