Problems Compiling Zoneminder 1.28.1 on Ubuntu 14.10
Posted: Sat Apr 04, 2015 12:32 am
Instead of using a package install (the easy way), I am attempting to compile 1.28.1 on Ubuntu 14.10 64 bit but am getting link errors that start with:
g++ -D__STDC_CONSTANT_MACROS -g -O2 -Lno/lib -L/usr/lib/ -L/usr/local/lib/mysql -L/usr/lib/mariadb -o zmc ...... -lz -lbz2 -lswscale -lavformat -lavcodec -lavutil -lx264 -lz -lpcre -lcrypto -ldl -lpthread -ljpeg -lmysqlclient
/usr/local/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/var/source/ffmpeg-2.6.1/libavformat/matroskadec.c:1303: undefined reference to `BZ2_bzDecompressInit'
/usr/local/lib/libavcodec.a(libfdk-aacdec.o): In function `fdk_aac_decode_frame':
/var/source/ffmpeg-2.6.1/libavcodec/libfdk-aacdec.c:325: undefined reference to `aacDecoder_Fill'
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `mp3lame_encode_init':
/var/source/ffmpeg-2.6.1/libavcodec/libmp3lame.c:98: undefined reference to `lame_init'
ffmpeg seems to compile without error with:
./configure --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
I have also tried with '--disable-bzlib --disable-zlib' and other combinations. I have compiled bzip2 and tried all sorts of options in the zoneminder .configure to remove the errors but I cannot work this out. The last .configure was:
./configure --with-webdir=/usr/share/ --with-cgidir=/usr/local/lib/cgi-bin --with-webgroup=lighttpd --with-webuser=lighttpd ZM_DB_HOST=192.168.0.9 ZM_DB_NAME=zm_new ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --enable-debug=no --enable-mmap=yes --with-mysql=/usr/local --disable-debug --disable-crashtrace ZM_SSL_LIB=openssl --without-ffmpeg --without-mariadb
but even with '--without-ffmpeg' it is still generating errors that relate to ffmpeg.
From searching the web I can find suggestions of problems with the latest ffmpeg package that should have resolved with including '--disable-bzlib --disable-zlib' when compiling ffmpeg but no luck there. Any suggestions would be welcome. If I can get this to work I will add it to the wiki.
Thanks
g++ -D__STDC_CONSTANT_MACROS -g -O2 -Lno/lib -L/usr/lib/ -L/usr/local/lib/mysql -L/usr/lib/mariadb -o zmc ...... -lz -lbz2 -lswscale -lavformat -lavcodec -lavutil -lx264 -lz -lpcre -lcrypto -ldl -lpthread -ljpeg -lmysqlclient
/usr/local/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/var/source/ffmpeg-2.6.1/libavformat/matroskadec.c:1303: undefined reference to `BZ2_bzDecompressInit'
/usr/local/lib/libavcodec.a(libfdk-aacdec.o): In function `fdk_aac_decode_frame':
/var/source/ffmpeg-2.6.1/libavcodec/libfdk-aacdec.c:325: undefined reference to `aacDecoder_Fill'
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `mp3lame_encode_init':
/var/source/ffmpeg-2.6.1/libavcodec/libmp3lame.c:98: undefined reference to `lame_init'
ffmpeg seems to compile without error with:
./configure --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
I have also tried with '--disable-bzlib --disable-zlib' and other combinations. I have compiled bzip2 and tried all sorts of options in the zoneminder .configure to remove the errors but I cannot work this out. The last .configure was:
./configure --with-webdir=/usr/share/ --with-cgidir=/usr/local/lib/cgi-bin --with-webgroup=lighttpd --with-webuser=lighttpd ZM_DB_HOST=192.168.0.9 ZM_DB_NAME=zm_new ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --enable-debug=no --enable-mmap=yes --with-mysql=/usr/local --disable-debug --disable-crashtrace ZM_SSL_LIB=openssl --without-ffmpeg --without-mariadb
but even with '--without-ffmpeg' it is still generating errors that relate to ffmpeg.
From searching the web I can find suggestions of problems with the latest ffmpeg package that should have resolved with including '--disable-bzlib --disable-zlib' when compiling ffmpeg but no luck there. Any suggestions would be welcome. If I can get this to work I will add it to the wiki.
Thanks