Problem with include files for libps3000a

Post any questions related to the new PicoScope 7 software
Post Reply
alowell
Newbie
Posts: 0
Joined: Mon Sep 02, 2019 8:46 pm

Problem with include files for libps3000a

Post by alowell »

I have the latest picoscope and drivers package installed on Ubuntu 20.04, I attached a screenshot showing the output of "apt".

I have a custom application that calls into libps3000a. It is failing to compile because /opt/picoscope/include/libps3000a/ps3000aApi.h tries to include "PicoCallback.h", which is not included in the same directory as ps3000aApi.h. I have an older version of the driver libraries that my app successfully compiles against, and the older version of ps3000aApi.h does NOT try to include "PicoCallback.h". Attached are some screenshots showing the .h files in /opt/picoscope/include/libps3000a/ as well as the first few lines of ps3000aApi.h.
Attachments
pico1.png
pico2.png

AndrewA
PICO STAFF
PICO STAFF
Posts: 409
Joined: Tue Oct 21, 2014 3:07 pm

Re: Problem with include files for libps3000a

Post by AndrewA »

Hi,
Just looked on a Ubuntu box with PicoScope 7 installed, the the header files are in folders for each API for example-
/opt/picoscope/include/libps3000a/

Which does not contain have all the addition header files.
I would copy the missing files from say the /libps6000a/ folder to the /libps3000a/ folder.

I am not sure why its structured like this, I don't know if there's difference between the files for example the PicoDeviceStructs.h is in multiple folders.

The SDK package installed on Windows installs all the API header files into one folder-
C:\Program Files\Pico Technology\SDK\inc
Regards Andrew
Technical Specialist

Post Reply