Have cpp (v3.3) and libjpeg.a but ./configure says I don't

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
peterthevicar
Posts: 42
Joined: Tue Jan 06, 2004 11:07 pm

Have cpp (v3.3) and libjpeg.a but ./configure says I don't

Post by peterthevicar »

Hi, my ./configure fails saying there's no libjpeg.a but there is (in /usr/lib). I tried using --libdir/usr/lib but got the same result.
Any clues?
TIA, Peter

Here's the output from ./configure and the listing of /usr/lib/libjpeg*

./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --libdir=/usr/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
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++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
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 whether round is declared... no
checking whether strsignal is declared... no
checking for jpeg_start_compress in -ljpeg... no
configure: error: zm requires libjpeg.a

$ find /usr/lib -name libjpeg* | xargs ls -l
-rw-r--r-- 1 root root 158168 Oct 6 15:21 /usr/lib/libjpeg.a
-rw-r--r-- 1 root root 802 Oct 6 15:21 /usr/lib/libjpeg.la
lrwxrwxrwx 1 root root 17 Mar 9 22:55 /usr/lib/libjpeg.so -> libjpeg.so.62.0.0
lrwxrwxrwx 1 root root 17 Mar 8 18:21 /usr/lib/libjpeg.so.62 -> libjpeg.so.62.0.0
-rw-r--r-- 1 root root 120952 Oct 6 15:21 /usr/lib/libjpeg.so.62.0.0
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Re: Have cpp (v3.3) and libjpeg.a but ./configure says I don

Post by fernando »

User avatar
peterthevicar
Posts: 42
Joined: Tue Jan 06, 2004 11:07 pm

Re: Have cpp (v3.3) and libjpeg.a but ./configure says I don

Post by peterthevicar »

Thanks for the speedy reply Fernando. I did check the FAQ before I posted but it says:
1) make sure youhave a valid c++ compiler (I do) and
2) make sure you have libjpeg.a (I do) so I'm still stuck I'm afraid :-(

Peter
User avatar
peterthevicar
Posts: 42
Joined: Tue Jan 06, 2004 11:07 pm

Re: Have cpp (v3.3) and libjpeg.a but ./configure says I don

Post by peterthevicar »

OK, I've found out what the problem was. Debian installed g++ as /usr/bin/g++-3.3 so I've symlinked it using:
ln -s /usr/bin/g++-3.3 /usr/bin/g++
And the configure is now working.
Thanks for making me look again Fernando
Peter
Locked