Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Missing Makefile

The ADC-DAC Pi Zero is a 2 Channel ADC and 2 Channel DAC for the Raspberry Pi

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

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.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout