Compiling 1.24.2 on Mandriva

Forum for questions and support relating to the 1.24.x releases only.
Locked
abroz
Posts: 28
Joined: Wed Jan 24, 2007 6:38 pm

Compiling 1.24.2 on Mandriva

Post by abroz »

Hi!

Is searched and searched but haven't find any reference on this error.
When i "make install" I get follogin error:

g++ -frepo -g -O2 -L/usr/local/lib/lib64 -L/usr/lib64/mysql -o zmc zmc.o zm_box.o zm_buffer.o zm_camera.o zm_comms.o zm_config.o zm_coord.o zm.o zm_db.o zm_debug.o zm_event.o zm_exception.o zm_file_camera.o zm_ffmpeg_camera.o zm_image.o zm_jpeg.o zm_local_camera.o zm_monitor.o zm_ffmpeg.o zm_mpeg.o zm_poly.o zm_regexp.o zm_remote_camera.o zm_remote_camera_http.o zm_remote_camera_rtsp.o zm_rtp.o zm_rtp_ctrl.o zm_rtp_data.o zm_rtp_source.o zm_rtsp.o zm_sdp.o zm_signal.o zm_stream.o zm_thread.o zm_time.o zm_timer.o zm_user.o zm_utils.o zm_zone.o -lz -lswscale -lavformat -lavcodec -lavutil -lpcre -lgnutls-openssl -ldl -lpthread -ljpeg -lmysqlclient
zm_sdp.o: In function `SessionDescriptor::generateFormatContext() const':
/usr/src/ZoneMinder-1.24.2/src/zm_sdp.cpp:290: undefined reference to `avformat_alloc_context'
collect2: ld returned 1 exit status
make[1]: *** [zmc] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.24.2/src'
make: *** [install-recursive] Error 1


Any ideas? It was configured like this:
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/lib --with-libarch=lib64

Thanks for all the help!!!
abroz
Posts: 28
Joined: Wed Jan 24, 2007 6:38 pm

Post by abroz »

OK, I still haven't figured what is going on.

I'm using latest FFMPEG from www.ffmpeg.org compiled from soruce.

When searching the net/forum for possible answer on
zm_sdp.o: In function `SessionDescriptor::generateFormatContext() const'

or

zm_sdp.cpp:290: undefined reference to `avformat_alloc_context'

Nothing usable shows.
I was using 1.23.3 version earlier (and still use it since this one doesn't copile).

Tried make clean also couple of times, but...
abroz
Posts: 28
Joined: Wed Jan 24, 2007 6:38 pm

Post by abroz »

Back to 1.23.3 - don't fix when it ain't broken...
aipoint
Posts: 1
Joined: Sun Aug 02, 2009 6:10 pm

Me too

Post by aipoint »

I have the same problem:

zm_sdp.cpp: In member function ‘AVFormatContext* SessionDescriptor::generateFormatContext() const’:
zm_sdp.cpp:290: error: ‘avformat_alloc_context’ was not declared in this scope
zm_sdp.cpp:292: error: ‘strncpy’ was not declared in this scope

And I couldn't continue.

I also found other 2 errors before, but I found these solutions:
http://www.zoneminder.com/forums/viewto ... 55329d368d
http://www.zoneminder.com/forums/viewto ... 4bed92229d

My configure is:
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-libarch=lib64

Debian Lenny, 2.6.26-2-amd64, x86_64, ZM 1.24.2

1.23.3 is fine.
Locked