My knowledge in compiling things in C/C++ is quite limited but I've managed to write a makefile with all the flags needed to compile a C library for the raspberry pi camera. Link to the repository:
omxcamA little spam:
omxcam is a promising C library for controlling the raspberry pi camera. It communicates directly with OpenMAX and as far as I know it's the first library that does this because it's very hard to write OpenMAX code: there are a few examples on the internet and even the core maintainers (the people that write the camera driver) need to help you. I've spent over 3 months to understand how OpenMAX works and write a multithreaded C lib. I still need to do lots of things but now I want to write the bindings to the nodejs code for having a functional example that streams h264 video and jpeg images. Link to the nodejs repository: omxcam
nodejs + raspberrypi + omxcam, the perfect union of the 2 most popular technologies, but I need help. I'm struggling to write the gyp file but I'm not getting the desired result. The makefile is the following:
makefile. There first two variables let you configure the makefile:
APP: Name of the binary file
OMXCAM_HOME: Root directory of the library
Then, the most important thing is the last flag of the INCLUDES variable:
-I./$(OMXCAM_SRC_DIR)
It allows you to include the omxcam header without specifying a weird path relative from who-knows:
#include "omxcam.h"This is the gyp file:
gyp file. The omxcam source files are compiled without error but then when I include the omxcam.h file in the nodejs binding it says that the file doesn't exist, so presumably I'm doing something wrong. I appreciate any help.
I can upload the generated files if you need to see them.
Thanks