Can't load ZoneMinder::Control::AxisV2

Forum for questions and support relating to the 1.28.x releases only.
Locked
sgharp
Posts: 55
Joined: Mon Oct 10, 2011 12:10 am

Can't load ZoneMinder::Control::AxisV2

Post 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.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

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

Post 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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
sgharp
Posts: 55
Joined: Mon Oct 10, 2011 12:10 am

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

Post 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.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

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

Post 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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
sgharp
Posts: 55
Joined: Mon Oct 10, 2011 12:10 am

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

Post 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.
Locked