Hello,
I try to use libaviplay in a shared library but I can't get it working. If I compile the main program with the library, everything works fine. I can open and play avi files. If I make plugins for the main program, which are shared libraries, I can open successfully an avi file, but as soon as I start the video stream I get: <reader> : Initialized video stream (chunk tblsz: 246705, fmtsz: 40) width: 352, height 240 <codec keeper> : /usr/lib/avifile0.7/divx4.so: A/V 0/3 <codec keeper> : /usr/lib/avifile0.7/mpeg_audiodec.so: A/V 1/0 <codec keeper> : /usr/lib/avifile0.7/vorbis_audio.so: A/V 1/0 <codec keeper> : /usr/lib/avifile0.7/mjpeg.so: A/V 0/1 <codec keeper> : /usr/lib/avifile0.7/win32.so: A/V 10/48 <LDT keeper> : Installed fs segment: 0x40346000 <codec keeper> : /usr/lib/avifile0.7/mad_audiodec.so: A/V 1/0 <codec keeper> : /usr/lib/avifile0.7/mp3lamebin_audioenc.so: A/V 1/0 <codec keeper> : /usr/lib/avifile0.7/ffmpeg.so: A/V 2/10 <codec keeper> : /usr/lib/avifile0.7/audiodec.so: A/V 6/0 <codec keeper> : /usr/lib/avifile0.7/ac3pass.so: A/V 1/0 <codec keeper> : WARNING: plugin /usr/lib/avifile0.7/divx4.so could not be opened: lib divxdecore.so.0: cannot open shared object file: No such file or directory <codec keeper> : WARNING: plugin /usr/lib/avifile0.7/win32.so could not be opened: /us r/lib/avifile0.7/win32.so: undefined symbol: GetCodecInfo__CQ23avm13IAudioDecoder [...] <codec keeper> : WARNING: plugin /usr/lib/avifile0.7/win32.so could not be opened: /us r/lib/avifile0.7/win32.so: undefined symbol: GetCodecInfo__CQ23avm13IAudioDecoder <codec keeper> : WARNING: plugin /usr/lib/avifile0.7/ffmpeg.so could not be opened: /u sr/lib/avifile0.7/ffmpeg.so: undefined symbol: PluginGetAttrInt__3avmRCQ23avm9CodecInf oPCcPi <codec keeper> : CreateVideoDecoder(): Unknown codec 0x33564944 = "DIV3" So if the libaviplay is linked in an other shared library, it can't load some plugins somehow... my plugin consists of: video.cpp, open.cpp, videothread.cpp they are compiled with: c++ -DPACKAGE=\"cybrain-0.7\" -DVERSION=\"0.7\" -DHAVE_DLFCN_H=1 -I. -I. -I/usr/local/ lib/wx/include/gtk-2.3 -I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTR ANT -fno-rtti -fno-exceptions -Wall -I../../include -I../../../include -Icybrain -g -O 2 -Wp,-MD,.deps/video.pp -c video.cpp -fPIC -DPIC -o video.lo (same for open.cpp, videothread.cpp) the plugin is linked with: gcc -shared video.lo open.lo videothread.lo -L/usr/X11R6/lib -L/usr/lib /usr/lib/lib aviplay.so -lstdc++ -Wl,-soname -Wl,libvideo.so -o .libs/libvideo.so creating libvideo.la I use libtool and automake. Can anyone help me with this ? Is it a compiler option ? I've installed libavifile0.7 from debian. Thanks Andre Roth _______________________________________________ Avifile mailing list [EMAIL PROTECTED] http://prak.org/mailman/listinfo/avifile
