Problems compiling ZoneMinder on Ubuntu 8.0 [solved]
Posted: Mon Mar 02, 2009 3:54 pm
Hello, first time poster, on and off user.
I've used the deb version of ZoneMinder on my Ubuntu serer for a while, and it works fine, but only recognises one of my 3 WebCams. Since one of them uses the uvc driver, I was hoping to compile 1.24.1 from source to make use of the uvc driver implementation.
I followed the instructions here, linked from the wiki:
http://www.zoneminder.com/forums/viewtopic.php?t=13140
But on sudo make install, I get the following errors:
collect: relinking
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
zm_mpeg.o: In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned int)':
/home/server/zm/src/zm_mpeg.cpp:362: undefined reference to `av_init_packet'
/home/server/zm/src/zm_mpeg.cpp:341: undefined reference to `av_init_packet'
zm_rtsp.o: In function `RtspThread':
/home/server/zm/src/zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'
/home/server/zm/src/zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'
collect2: ld returned 1 exit status
make[1]: *** [zmc] Error 1
make[1]: Leaving directory `/home/server/zm/src'
make: *** [install-recursive] Error 1
As the instructions said, I am using the latest ffmpeg from svn and the lastest version of zm from svn.
I head read a few other posts about errors similar to this, and they stated that ffmpeg has to be the latest version. Since I guess I have this, I am unsure how to proceed.
Funnily enough, I can still access the ZM console via web interface, but the interface says zm aint running and when I add cameras, there is no link to click on the cameras name, I guess this is all because ZM failed at make install.
Can someone give me pointers where I can go to fix this since I am only use to fixing dependency problems when I compile from source
On a side note, I see that the ZM web admin dude is from Bristol. So am I!! Kudos to the cool app. Brizzle seems like the business these days, what with Skins and that BBC 3 program about werewolves etc
I've used the deb version of ZoneMinder on my Ubuntu serer for a while, and it works fine, but only recognises one of my 3 WebCams. Since one of them uses the uvc driver, I was hoping to compile 1.24.1 from source to make use of the uvc driver implementation.
I followed the instructions here, linked from the wiki:
http://www.zoneminder.com/forums/viewtopic.php?t=13140
But on sudo make install, I get the following errors:
collect: relinking
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
zm_mpeg.o: In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned int)':
/home/server/zm/src/zm_mpeg.cpp:362: undefined reference to `av_init_packet'
/home/server/zm/src/zm_mpeg.cpp:341: undefined reference to `av_init_packet'
zm_rtsp.o: In function `RtspThread':
/home/server/zm/src/zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'
/home/server/zm/src/zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'
collect2: ld returned 1 exit status
make[1]: *** [zmc] Error 1
make[1]: Leaving directory `/home/server/zm/src'
make: *** [install-recursive] Error 1
As the instructions said, I am using the latest ffmpeg from svn and the lastest version of zm from svn.
I head read a few other posts about errors similar to this, and they stated that ffmpeg has to be the latest version. Since I guess I have this, I am unsure how to proceed.
Funnily enough, I can still access the ZM console via web interface, but the interface says zm aint running and when I add cameras, there is no link to click on the cameras name, I guess this is all because ZM failed at make install.
Can someone give me pointers where I can go to fix this since I am only use to fixing dependency problems when I compile from source
On a side note, I see that the ZM web admin dude is from Bristol. So am I!! Kudos to the cool app. Brizzle seems like the business these days, what with Skins and that BBC 3 program about werewolves etc