Getting most basic C++ file working with Structure Core


#1

I am a newb at C++ and I have a Structure Core. I am trying to link it up to the most basic C++ file. How do I get the folder structure right so that #include <ST/CaptureSession.h> works? Thanks.


#2

Can anyone help? Seems like a very basic issue


#3

You can learn about c++ file structures and how to include header files correctly on a number of different sites online. Here are just a few that you might want to take a look at:


#4

So I had this doubt. Basically when I did “cmake … && make && sudo make install” there was no sign of prebuilt libStructure.so being put into any predefined places where C++ can search for. So you have to do it yourself what apt was doing it for you. So here are the steps I followed:

  • In your SDK you will find folder ST, which contains all the headers. Copy the whole folder and place it in “/usr/local/include”
  • In your SDK you will find libStructure.so . Copy and paste this in “/usr/local/lib”
  • Run these commands so that you rebuild you pkg config cache “sudo rm /etc/ld.so.cache && sudo ldconfig”

Now you can directly import the Structure libraries.