Page 1 of 1

Can't load ZoneMinder::Control::AxisV2

Posted: Wed Oct 14, 2015 11:05 pm
by sgharp
Hi,

I'm using ZoneMinder v1.28.2 from the iconnor PPA. When I try to control the camera (Axis P3364-LVE), I get an error logged, "Can't load ZoneMinder::Control::AxisV2", and a dialog box pops up with the message "Control response was status = undefined message = /usr/bin/zmcontrol.pl --step=8 --command=zoomRelTele --id=1=>". It doesn't matter which PTZ command I try to execute; I get a similar message and error posted.

Can anyone point me to a solution? The AxisV2.pm script was last updated in 2008. Is there a newer version of this script and, if so, where?

The only detailed example of creating a control script was for a Foscam camera. I'm not skilled at Perl and not sure how to apply this to Axis cameras. I've read the Axis API docs and the AxisV2.pm looks OK.

Thanks for any help.

Re: Can't load ZoneMinder::Control::AxisV2

Posted: Fri Oct 16, 2015 1:03 pm
by knight-of-ni
The latest source code can always be found on our github site.

Specifically, the script you are looking for is here:
https://github.com/ZoneMinder/ZoneMinde ... er/Control

One way to verify a zoneminder ptz control script does not contain any errors is to call it from the command line:

Code: Select all

sudo perl /path/to/your/ptz/control/script/AxisV2.pm
It will return nothing at all if the script has no errors and is compatible with the version of zoneminder you currently have.

Re: Can't load ZoneMinder::Control::AxisV2

Posted: Fri Oct 16, 2015 6:28 pm
by sgharp
knnniggett wrote:The latest source code can always be found on our github site.

Specifically, the script you are looking for is here:
https://github.com/ZoneMinder/ZoneMinde ... er/Control

One way to verify a zoneminder ptz control script does not contain any errors is to call it from the command line:

Code: Select all

sudo perl /path/to/your/ptz/control/script/AxisV2.pm
It will return nothing at all if the script has no errors and is compatible with the version of zoneminder you currently have.
Thanks for your response. It was very helpful. However, I don't understand how passing the script through the perl interpreter can tell me that the script will work with any particular version of zoneminder. It appears that this would only verify that the script was syntactically correct with respect to perl.

Re: Can't load ZoneMinder::Control::AxisV2

Posted: Fri Oct 16, 2015 7:01 pm
by knight-of-ni
sgharp wrote:Thanks for your response. It was very helpful. However, I don't understand how passing the script through the perl interpreter can tell me that the script will work with any particular version of zoneminder. It appears that this would only verify that the script was syntactically correct with respect to perl.
Because we've changed the way certain variables are handled, particularly Barewords.
If you run it through Perl, it will tell you exactly what needs to be updated.

Re: Can't load ZoneMinder::Control::AxisV2

Posted: Sun Oct 18, 2015 5:32 pm
by sgharp
knnniggett wrote:The latest source code can always be found on our github site.

Specifically, the script you are looking for is here:
https://github.com/ZoneMinder/ZoneMinde ... er/Control
This GitHub link provided a script that solved the problem. Thanks very much.