simonredfern In file serialosc_example/serialosc_example/osckpack/ip/posix/NetworkingUtils.cpp: 'ip/NetworkingUtils.h' file not found column: 10, line: 37 -
that has two reasons: the file says:
which would normally semantically mean that there is an
ip/ folder included in the current folder which contains a file
NetworkingUtils.h (i.e.: in
serialosc_example/osckpack/ip/posix/ip/NetworkingUtils.h). However, the file is in
serialosc_example/osckpack/ip/NetworkingUtils.h, so it is not found. You could modify the path so that it goes back up one folder, i.e.:
#include "../NetworkingUtils.h"), or - better (because it addresses the same issue with other files (if any)) - adding proper include paths to the
Make parameters entry in the project settings :
HOWEVER, you won't be able to build this project through the IDE as it is because it will try to build all .cpp files in the project but the files in the
win32 folder include some Windows-specific header files, so you will at least need to delete that folder.
I can build
serialosc_example by placing in
serialosc_example/serialosc_example the following file called
CPPFLAGS = -Iosckpack -pthread -Wno-psabi
CC=$(CXX) # for the linker
then you can
cd into that directory (NOT via the Bela IDE) and type
make to build it and
./serialosc_example to run it. Play around with it a bit.
Now that you have the program building, what do you want to do it? How do you want to integrate it with a Bela program? To create a Bela program that will build through the IDE without need for extra
Make parameters, you should organise the files as follows:
note that running this project from the IDE you won't be able to interact with it via the keyboard because the console at the bottom is not interactive.
Anyhow, once this builds in the IDE, you can add a
render.cpp (or add its contents to
serialosc_example.cpp) and (IMPORTANT) rename the
main() function which is in that file at the moment to something else.