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: omxcam<https://github.com/gagle/raspberrypi-omxcam>
A 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<https://github.com/gagle/node-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<https://github.com/gagle/raspberrypi-omxcam/blob/master/examples/video/h264/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<https://github.com/gagle/node-omxcam/blob/master/binding.gyp>. 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 -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/0dbbda14-446b-4fba-8f3d-ce149433b376%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
