LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-16-2007, 03:58 AM   #1
mkiler
LQ Newbie
 
Registered: Nov 2007
Posts: 22

Rep: Reputation: 15
problem with libjpeg.a - installation zoneminder


Hi
I have a linux pld (polish distribution).
When I try to install zoneminder 1.22.3 run ./configure and always have error:

checking for gcc... gcc
checking for C compiler default output file name... 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 for size_t... yes
checking return type of signal handlers... void
checking for siginfo_t... yes
checking for struct sigcontext... yes
checking for struct sigcontext.eip... yes
checking for ucontext_t... yes
checking how to run the C++ preprocessor... g++ -E
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
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 whether MD5 is declared... yes
checking whether backtrace is declared... yes
checking for jpeg_start_compress in -ljpeg... no
configure: error: zm requires libjpeg.a

I run ./configure with option:

./configure --with-webdir=/home/services/httpd/html/zone/ --with-cgidir=/home/services/httpd/cgi-bin


I have already installed packages:
libjpeg-6b-24
ibjpeg-devel-6b-24
ibjpeg-progs-6b-24
libjpeg-static-6b-24

File libjpeg.a is in /usr/lib/libjpeg.a
 
Old 11-16-2007, 05:44 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Run
Code:
ldconfig
as root and then run ./configure like this:
Code:
LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH ./configure --with-webdir=/home/services/httpd/html/zone/ --with-cgidir=/home/services/httpd/cgi-bin
to see if the error stops.
 
Old 11-17-2007, 07:14 AM   #3
mkiler
LQ Newbie
 
Registered: Nov 2007
Posts: 22

Original Poster
Rep: Reputation: 15
OK it's now ok.
I install compat-libg++ package and ./configure work.s fine
But now when I try to make install I have next error:

zm_mpeg.o(.text+0x9b8):/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:346: undefined reference to `av_init_packet(AVPacket*)'
zm_mpeg.o(.text+0x9e0):/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:351: undefined reference to `av_rescale_q(long long, AVRational, AVRational)'
zm_mpeg.o(.text+0xa1f):/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:359: undefined reference to `av_write_frame(AVFormatContext*, AVPacket*)'
zm_mpeg.o(.text+0xa6b):/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:325: undefined reference to `av_init_packet(AVPacket*)'
zm_mpeg.o(.text+0x385): In function `VideoStream::OpenStream()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:233: undefined reference to `av_write_header(AVFormatContext*)'
zm_mpeg.o(.text+0x774): In function `VideoStream::~VideoStream [not-in-charge]()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:284: undefined reference to `av_free(void*)'
zm_mpeg.o(.text+0x854): In function `VideoStream::~VideoStream [in-charge]()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:284: undefined reference to `av_free(void*)'
collect2: ld returned 1 exit status
make: *** [zmc] Błąd 1

ffmpeg* installed from package > zoneminder make install > error
ffmpeg download last source version > compile make install ok > zoneminder make install > the same error
 
Old 11-19-2007, 02:55 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
I think that you need to read this, to patch the zoneminder sources.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ZoneMinder installation angelushu Linux - Software 2 12-08-2011 11:14 PM
Where can find Zoneminder rpm for RedHat 9 jadewarrior Linux - Software 5 01-12-2007 09:41 PM
php4.4.0 installation can't find libjpeg anilnatha Linux - Software 1 10-28-2005 11:10 PM
Gtk+ problem (caused by libjpeg) wilu Linux - Software 9 04-29-2005 05:54 PM
libjpeg - 64 bit problem Dolamite777 Linux - Software 1 09-13-2004 10:20 AM


All times are GMT -5. The time now is 08:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration