Checkinstall on Ubuntu gives undefined references

Support and queries relating to all previous versions of ZoneMinder
Locked
Harmonitron
Posts: 5
Joined: Tue Jul 05, 2005 9:27 am

Checkinstall on Ubuntu gives undefined references

Post by Harmonitron »

I nearly have ZM working on Ubuntu! I'm moving this thread from http://ubuntuforums.org/showthread.php?t=133506 as the problem may as much be ZM related as Ubuntu.

Ubuntu's Synaptic Package Manager does a super job of installing apps from Ubuntu's repository and some others. However ZM isn't in there so we have to do things the old way (but I'm new!). I've based this on the ZM Debian install notes and whatever help I could find. If I can ever get this to work I'll do a full Howto.

Here's how I got this far:
Install EasyUbuntu (http://easyubuntu.freecontrib.org/) and on the web tab enable the additional repositories and hit OK.

Using Synaptic install auto-apt. Auto-apt will usually fetch and install any packages that are required, by ZM, for example, but I also had to manually install gawk, libavcoded-dev and ffmpeg.

Auto-apt automatically gets all the required Perl modules (lots of them) and for each one pops up a list box with an Install / Cancel button at the bottom. Some of the boxes are too big for a 1024x768 screen and there is no way to get to the Install with the mouse. The solution is to hit Shift-Tab twice on each dialog to get the focus on the install button before pressing Enter. Try this on some of the smaller dialogs before you reach the big ones.

Ramses de Norre suggests running the ZM install like this. These steps seem to work OK with my addition of the webdir and cgidir. (Skip the "apt-get install auto-apt" if you've already installed it from Synaptic.)

Code: Select all

sudo -s
apt-get install auto-apt
auto-apt update
auto-apt updatedb
auto-apt update-local
auto-apt run ./configure --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin
./configure --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin
apt-get install checkinstall
checkinstall -D make install
The result is that I have success at all steps except the last. Here's what happens:

Code: Select all

# checkinstall -D make install

checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.



Installing with "make install"...

========================= Installation results ===========================

Copying documentation directory...
Making install in src
make[1]: Entering directory `/home/donncha/Desktop/ZoneMinder-1.22.1/src'
g++  -g -O2  -L/usr/lib -L/usr/lib/mysql   -o zmc  zmc.o zm.o zm_db.o zm_config.o zm_coord.o zm_box.o zm_poly.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_file_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_signal.o zm_buffer.o zm_debug.o  -lavformat -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_create_handle'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_get_camera_nodes'
.
.                [many more undefined references]
.
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_decode_frame':
: undefined reference to `gsm_decode'
collect2: ld returned 1 exit status
make[1]: *** [zmc] Error 1
make[1]: Leaving directory `/home/donncha/Desktop/ZoneMinder-1.22.1/src'
make: *** [install-recursive] Error 1

****  Installation failed. Aborting package creation.

Restoring overwritten files from backup...OK

Cleaning up...OK

Bye.
Does anyone know how to fix this?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This is an ffmpeg problem. As I don't know whether you had to manually run configure or not I can't say whether it is because ffmpeg is missing or maybe just that you have a problem with the version. You will usually need to make sure you have ffmpeg cvs if installing from source or ffmpeg-devel if installing from a package.
Phil
Locked