Yeah...GYP is weird like that. I am actually working on a replacement for this 
thing x)


--
"Yo Dawg, I heard you like C++, so I  added C++ to your build system, so you 
have to compile before you compile." -StackOverflow, Matt Joiner ( 
http://stackoverflow.com/a/5025525/2423150 )

Am 12.05.2014 um 17:54 schrieb Gagle <[email protected]>:

> ok, fixed... gyp is very weird, I don't know why but I've put the directory 
> includes inside a direct_dependent_settings property and now it compiles.
> 
> El viernes, 9 de mayo de 2014 21:33:21 UTC+2, Gagle escribió:
> This is actually what I'm doing, but the path of the header files are not 
> resolved correctly.
> 
> El viernes, 9 de mayo de 2014 17:16:27 UTC+2, Kevin Ingwersen escribió:
> Hey!
> 
> In a target, you may also specify the key include_dirs. Its a list. So just 
> look at the example here: 
> https://github.com/Deskshell-Core/node-ph7/blob/master/src/binding.gyp
> Maybe it helps. :)
> 
> 
> --
> "Yo Dawg, I heard you like C++, so I  added C++ to your build system, so you 
> have to compile before you compile." -StackOverflow, Matt Joiner ( 
> http://stackoverflow.com/a/5025525/2423150 )
> 
> Am 09.05.2014 um 12:40 schrieb Gagle <[email protected]>:
> 
>> 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
>> 
>> 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
>> 
>> 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
>> 
>> -- 
>> 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.
> 

-- 
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/4338C21C-4F4E-4D18-9C0A-E71C2697D786%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to