How to compile with libjpeg-turbo?

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

How to compile with libjpeg-turbo?

Post by mmgg »

Dear,

I try to compile ZM 1.27.1 on Debian Wheezy using lbpeg-turbo 1.2.1
I always get the JPEG_LIB_VERSION error below indendently of the ZM and libjpeg-turbo version.

x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -D__STDC_CONSTANT_MACROS -Wall -finline-functions -fomit-frame-pointer -I/usr/include -D__STDC_CONSTANT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_CONSTANT_MACROS -DHAVE_LIBCRYPTO -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
mv -f .deps/zm_ffmpeg_camera.Tpo .deps/zm_ffmpeg_camera.Po
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -D__STDC_CONSTANT_MACROS -Wall -finline-functions -fomit-frame-pointer -I/usr/include -D__STDC_CONSTANT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_CONSTANT_MACROS -DHAVE_LIBCRYPTO -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp
zm_image.cpp: In member function ‘bool Image::ReadJpeg(const char*, unsigned int, unsigned int)’:
zm_image.cpp:645:3: error: JPEG_LIB_VERSION was not declared in this scope
zm_image.cpp: In member function ‘bool Image::WriteJpeg(const char*, int) const’:
zm_image.cpp:791:3: error: ‘JPEG_LIB_VERSION’ was not declared in this scope
zm_image.cpp: In member function ‘bool Image::DecodeJpeg(const JOCTET*, int, unsigned int, unsigned int)’:
zm_image.cpp:898:3: error: ‘JPEG_LIB_VERSION’ was not declared in this scope
zm_image.cpp: In member function ‘bool Image::EncodeJpeg(JOCTET*, int*, int) const’:
zm_image.cpp:1032:3: error: ‘JPEG_LIB_VERSION’ was not declared in this scope
make[3]: *** [zm_image.o] Erreur 1
make[3]: quittant le répertoire « /home/zm/MaGe/ZoneMinder-1.27.0/src »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/zm/MaGe/ZoneMinder-1.27.0 »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /home/zm/MaGe/ZoneMinder-1.27.0 »
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Erreur 2
dpkg-buildpackage: erreur: debian/rules build a produit une erreur de sortie de type 2


Since there is no package for debian, I installed libjpeg turbo with the follwing way:
dpkg -i libjpeg-turbo_1.2.1_amd64.deb
ln -s /opt/libjpeg-turbo/lib64/libjpeg.a /usr/lib/x86_64-linux-gnu/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


Any idea what I should do and how to corectly install libjpeg-turbo on debian wheezy?

Thanks for your help
Locked