complaining about libjpeg.a

Support and queries relating to all previous versions of ZoneMinder
Locked
aot2002
Posts: 73
Joined: Mon Apr 26, 2004 7:10 am

complaining about libjpeg.a

Post by aot2002 »

I have tried to install this on fedora core 3 system?
i have all g and c++ compilers that i know of on here, but it keeps insisting that its not installed.
Is there a better way to verify that these things are installed on fedora?




./configure --with-mysql=/usr/bin/mysql --with-ffmpeg --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-lame option.
This tells configure where to find the Lame library which can be used by the ffmpeg libraries
to generate IE compatible MPEG audio streams. This option is only necessary if you have built
the ffmpeg package itself with the --enable-mp3lame option and if the normal link cannot
find the library. Using mp3lame is not necessary or of any benefit to ZoneMinder per se.
e.g. --with-lame=/use/local/lib
configure: WARNING: You can call configure with the --with-webuser option.
This tells configure what the user name of the web user is if it is not the default of 'apache'.
e.g. --with-webuser=apache or --with-webuser=web
configure: WARNING: You can call configure with the --with-webgroup option.
This tells configure what the group name of the web group is if it is not the default of 'apache'.
e.g. --with-webgroup=apache or --with-webgroup=web
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking how to run the C++ preprocessor... g++ -E
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking for jpeg_start_compress in -ljpeg... no
configure: error: zm requires libjpeg.a
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

libjpeg.a is nothing to do with gcc or g++ but is a separate library that you must install as well, either from source or from an rpm. Try doing a 'yum install libjpeg' or a 'yum install libjpeg-devel' as I don't know if the former includes the required header files as well.

Phil
User avatar
amit
Posts: 44
Joined: Wed Nov 17, 2004 11:35 am
Location: New Delhi

Post by amit »

try locating libjpeg.a 'locate libjpeg.a'
and look out for the path..
may be path used by ZM configuration is different(eg .usr/lib instead of /lib)
________
vapir no2
Last edited by amit on Tue Feb 01, 2011 2:27 am, edited 1 time in total.
karlg
Posts: 23
Joined: Wed Mar 24, 2004 11:23 am

Post by karlg »

make sure you have libjpeg-devel rpm installed:
-rpm -q libjpeg-devel

then, try this instead:
./configure --with-mysql=/usr --with-ffmpeg --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin
User avatar
amit
Posts: 44
Joined: Wed Nov 17, 2004 11:35 am
Location: New Delhi

Post by amit »

although libjpeg-devel needs to be installed and it is the prerequiste for ZM installation...

--with-ffmpeg will search for additional libraries libavcodec and lib avformat and ffmpeg has different functionality ...

libjpeg will always be needed
libjpeg comes default with the linux installationat least in Fedora versions...
there can be problem with the path if libjpeg-devel is installed ..
________
M51
Locked