zm 27.1 : ERROR: libjpeg-turbo is required for JPEG encoding

Forum for questions and support relating to the 1.27.x releases only.
Locked
mmgg
Posts: 25
Joined: Sun Feb 24, 2008 10:35 am

zm 27.1 : ERROR: libjpeg-turbo is required for JPEG encoding

Post by mmgg »

Dear,

I installed zm 1.27.1 on Debian Wheeze and libjpeg-turbo 1.1.3.
My systems works fine with IP cameras but when I try to use my BT848 based card I get the following messages :

zma_m3[4597]: INF [Garage: 4000 - Processing at 25.00 fps] shows the BT848 works fine
zms[4732]: ERR [libjpeg-turbo is required for JPEG encoding directly from BGR24 source]
zma_m2[3831]: ERR [libjpeg-turbo is required for JPEG encoding directly from BGR24 source]


I installed the libjpeg library (v1.1.3) in the follwoing way:
I had 1st to repalce lib by lib64
ln -s /opt/libjpeg-turbo/lib64/libjpeg.a /usr/lib/libjpeg.a && \
ln -s /opt/libjpeg-turbo/include/jconfig.h /usr/include/jconfig.h && \
ln -s /opt/libjpeg-turbo/include/jerror.h /usr/include/jerror.h && \
ln -s /opt/libjpeg-turbo/include/jmorecfg.h /usr/include/jmorecfg.h && \
ln -s /opt/libjpeg-turbo/include/jpeglib.h /usr/include/jpeglib.h

###########################
#Configurar rutas para Lib#
##########################

echo "/opt/libjpeg-turbo/lib64" > /etc/ld.so.conf.d/libjpeg-turbo.conf && \
echo "/usr/local/lib" > /etc/ld.so.conf.d/ffmpeg.conf && \
echo "LD_LIBRARY_PATH=/usr/local/lib:/opt/libjpeg-turbo/lib64:$LD_LIBRARY_PATH" >> /etc/bash.bashrc && \
echo "export LD_LIBRARY_PATH" >> /etc/bash.bashrc

ldconfig

When I do a ldd... I dont' see that zma/zmc require libjpeg-turbo
ldd /usr/bin/zma | grep jpeg
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f56d4d11000)
libopenjpeg.so.2 => /usr/lib/x86_64-linux-gnu/libopenjpeg.so.2 (0x00007f56d074d000)

Any idea where I should look first ... according to me the library is fine ... perehaps an idea: the libjpeg-turbo has been installed after the ZM.. could that be the root cause?

Thansk for your help
Marc
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: zm 27.1 : ERROR: libjpeg-turbo is required for JPEG enco

Post by linuxsense »

Hi Marc.

You installed ZM from a package or did you build it from source? ZoneMinder needs to be complied with the libs in place, I don't believe that adding turbo with suffice if you used a package. You might be able to get away with replacing the normal jpeg libs with links to the turbo libs but you might break other software on the system. It would be worth trying as long as you kept detailed notes of what you did so you could revert back if needed.
mmgg
Posts: 25
Joined: Sun Feb 24, 2008 10:35 am

Re: zm 27.1 : ERROR: libjpeg-turbo is required for JPEG enco

Post by mmgg »

Hi,
Thanks for your help,

I restarted from zero rebuilding it from http://memo-linux.com/installation-de-z ... an-wheezy/, meaning taking it from GIT and building a package
Same issue, toi starts ok (no error in the /var/log/syslog file)

but as soon as I go on the web to see the camera, I get the following:
ul 2 11:17:25 TartineF zms[18648]: ERR [libjpeg-turbo is required for JPEG encoding directly from BGR24 source]
Jul 2 11:17:25 TartineF zms[18648]: ERR [Unable to send stream frame: Success]
Jul 2 11:17:25 TartineF zms[18648]: ERR [libjpeg-turbo is required for JPEG encoding directly from BGR24 source]
Jul 2 11:17:25 TartineF zms[18648]: ERR [Terminating, last frame sent time 1404292645.451886 secs more than maximum of 10.000000]
Jul 2 11:17:26 TartineF zmc_dvideo1[18530]: INF [Entree: 7000 - Capturing at 25.00 fps]
Jul 2 11:17:27 TartineF zmc_dvideo0[18535]: INF [Cave: 7000 - Capturing at 25.00 fps]
Jul 2 11:17:27 TartineF zma_m2[18540]: INF [Cave: 7000 - Processing at 25.00 fps]

Im' lost... since I already tried to install libjpeg-turbo .. and it didn't fix it...
It works in balck & white whit small interlacing issue (confiugration to be found with BT848 based video card)

Any idea? Perhasp reisntall the libjpeg-turbo... but then how to do it differently?
Thansk for the help
Marc
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: zm 27.1 : ERROR: libjpeg-turbo is required for JPEG enco

Post by linuxsense »

Show me your configuration line for building ZM. Did you use cmake or ./configure? How did you install libjpeg-turbo?
mmgg
Posts: 25
Joined: Sun Feb 24, 2008 10:35 am

Re: zm 27.1 : ERROR: libjpeg-turbo is required for JPEG enco

Post by mmgg »

Hi,

Thnaks for helping me.... this last post since I go on vacation ... yoopie ;-)

The way I build zoneminder is:
git clone https://github.com/ZoneMinder/ZoneMinder.git zoneminder
cd zoneminder/
ln -s distros/debian
dpkg-checkbuilddeps
dpkg-buildpackage
cd ..
dpkg -i zoneminder_1.27xxx.deb

The way I install the libjpeg-turbo:
wget http://downloads.sourceforge.net/projec ... rror=voxel

mv libjpeg-turbo_1.1.1_amd64.deb?use_mirror=voxel libjpeg-turbo_1.1.1_amd64.deb && \
dpkg -i libjpeg-turbo_1.1.1_amd64.deb

ln -s /opt/libjpeg-turbo/lib64/libjpeg.a /usr/lib/libjpeg.a
ln -s /opt/libjpeg-turbo/include/jconfig.h /usr/include/jconfig.h && \
ln -s /opt/libjpeg-turbo/include/jerror.h /usr/include/jerror.h && \
ln -s /opt/libjpeg-turbo/include/jmorecfg.h /usr/include/jmorecfg.h && \
ln -s /opt/libjpeg-turbo/include/jpeglib.h /usr/include/jpeglib.h

echo "/opt/libjpeg-turbo/lib64" > /etc/ld.so.conf.d/libjpeg-turbo.conf && \
echo "/usr/local/lib" > /etc/ld.so.conf.d/ffmpeg.conf && \
echo "LD_LIBRARY_PATH=/usr/local/lib:/opt/libjpeg-turbo/lib64:$LD_LIBRARY_PATH" >> /etc/bash.bashrc && \
echo "export LD_LIBRARY_PATH" >> /etc/bash.bashrc

Thanks and CU within few weeks I hope

Marc
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: zm 27.1 : ERROR: libjpeg-turbo is required for JPEG enco

Post by linuxsense »

You need to install the turbo libs before you build the package.
mmgg
Posts: 25
Joined: Sun Feb 24, 2008 10:35 am

Re: zm 27.1 : ERROR: libjpeg-turbo is required for JPEG enco

Post by mmgg »

HI,

Im' back from vacation... ;-(
I tried to install libjpeg-turbo 1.1.1 and later 1.3.1 but each time I got an error at ZM compilation time saying I was using a wrong version of libjpeg-turbo. (Debian 7.5 stable).
I gave up with libjpeg-turbo.

I removed the libjpeg-turbo and compiled the zm 1.26.5. The comilation was successfull but I have exactly the same issue: working in 8 bit greysacle (with bt848 video card) and giving an error when using the 24/32 bits

The error concerns the libjpeg-turbo even if I didn't install it before compilation :

Jul 23 16:34:51 TartineF zms[14211]: ERR [libjpeg-turbo is required for JPEG encoding directly from BGR24 source]
Jul 23 16:34:51 TartineF zms[14211]: ERR [Unable to send stream frame: Success]
Jul 23 16:34:51 TartineF zms[14211]: ERR [libjpeg-turbo is required for JPEG encoding directly from BGR24 source]
Jul 23 16:34:51 TartineF zms[14211]: ERR [Terminating, last frame sent time 1406126091.000957 secs more than maximum of 10.000000]
Jul 23 16:34:57 TartineF web_php[4256]: ERR [socket_sendto( /tmp/zm/zms-417180s.sock ) failed: No such file or directory]


I'm totally lost...
What should I do?
Thanks for helping

Marc
Locked