[ 
https://issues.apache.org/jira/browse/CB-4954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801034#comment-13801034
 ] 

Josh Soref commented on CB-4954:
--------------------------------

1. You happened to declare functions with similar names to functions in your 
header, but you didn't actually mark them as being part of the class.
2. When you do implement a static class function, the implementation doesn't 
take a `static` declarator, that's only at the definition.

> BBB10 Plugin, use of static callbacks required for camera_take_burst cause 
> entire plugin to fail
> ------------------------------------------------------------------------------------------------
>
>                 Key: CB-4954
>                 URL: https://issues.apache.org/jira/browse/CB-4954
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: BlackBerry, Plugin Camera
>    Affects Versions: 3.0.0
>         Environment: Windows 7 64-bit, BB OS 10.1, Z10
>            Reporter: Ryan Sweny
>
> Adding new methods to my BlackBerry plugin has gone well until I needed to 
> include camera functionality. Adding a function like this:
> static void still_callback(camera_handle_t handle, camera_buffer_t* buf, 
> void* arg)
> resulted the entire plugin failing on startup. The error given on the 
> BlackBerry is:
> [JavaScript Alert]
> Require Error Can'[t find 
> /usr/lib/webplatform/plugins/jnext/libDiscreteCamera.so Library cannot be 
> found
> Are static methods allowed in BlackBerry plugins?



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to