Quantcast
Channel: arm - openFrameworks
Viewing all articles
Browse latest Browse all 147

How add the PiCamera module MMAL code to an OF project?

$
0
0

george.profenza wrote:

I'm trying to add code from a non OF c++ project to an OF project and I'm trying to use the MMAL interface to control the Pi Camera.

I've created a blank project which compiles fine on it's own, then copied the interface folder in the OF project's src folder.The problem is I'm getting quite a lot of errors:

In file included from /usr/include/stdlib.h:43:0,
                 from ./src/interface/vcos/pthreads/vcos_platform.h:59,
                 from /opt/vc/include/interface/vcos/vcos.h:116,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/bcm_host.h:46,
                 from ../../../libs/openFrameworks/utils/ofConstants.h:160,
                 from ../../../libs/openFrameworks/ofMain.h:5,
                 from src/testApp.h:3,
                 from src/testApp.cpp:1:
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:80:27: error: declaration of \u2018unsigned int wait::<anonymous struct>::__w_retcode\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:75:27: error: conflicts with previous declaration \u2018unsigned int wait::<anonymous struct>::__w_retcode\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:81:28: error: declaration of \u2018unsigned int wait::<anonymous struct>::__w_coredump\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:74:28: error: conflicts with previous declaration \u2018unsigned int wait::<anonymous struct>::__w_coredump\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:82:27: error: declaration of \u2018unsigned int wait::<anonymous struct>::__w_termsig\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:73:27: error: conflicts with previous declaration \u2018unsigned int wait::<anonymous struct>::__w_termsig\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:94:27: error: declaration of \u2018unsigned int wait::<anonymous struct>::__w_stopsig\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:89:27: error: conflicts with previous declaration \u2018unsigned int wait::<anonymous struct>::__w_stopsig\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:95:27: error: declaration of \u2018unsigned int wait::<anonymous struct>::__w_stopval\u2019
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:88:27: error: conflicts with previous declaration \u2018unsigned int wait::<anonymous struct>::__w_stopval\u2019

I would like to include the headers from the userland repository to an OF project. What's the best way to do that ?

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 147

Trending Articles