bugGnash - The GNU Flash player - Bugs: bug #20002, Linking gnash against current...

 
 

bug #20002: Linking gnash against current ffmpeg SVN fails (needs -lswfscale)

Submitted by:  Tomas Groth <tgc>
Submitted on:  Tue 29 May 2007 01:25:55 PM UTC  
 
Category: buildSeverity: 5 - Blocker
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Rob Savoye <rsavoye>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 04 Oct 2007 04:13:06 PM UTC, comment #39:

I applied patch by alsroot. thanks.

Sandro Santilli <strk>
Project Member
Mon 30 Jul 2007 07:14:33 PM UTC, comment #38:

I wanted to mention that gnash did build and install as it is now-not playing- even with the error I posted in #37

Brian <ubuntubrian>
Sun 29 Jul 2007 05:36:02 PM UTC, comment #37:

I searched the install and found the following. the reference to libgnashgui.so is at the end and there is an error. I don't know how to handle it though:

Making install in gui
make[1]: Entering directory `/home/brianokeefe/gnash/gui'
WARNING: Install QT's moc tool! Linking to default MOC file
make install-am
make[2]: Entering directory `/home/brianokeefe/gnash/gui'
make[3]: Entering directory `/home/brianokeefe/gnash/gui'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'libgnashgui.la' '/usr/local/lib/libgnashgui.la'
libtool: install: warning: relinking `libgnashgui.la'
(cd /home/brianokeefe/gnash/gui; /bin/sh ../libtool --tag=CXX --mode=relink g++ -g -O2 -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -lglib-2.0 -lltdl -L/usr/local/lib -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -ldts -lvorbisenc -lvorbis -lm -logg -L/usr/local/lib -lavformat -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -L/usr/local/lib -lavutil -ltheora -logg -lgsm -ldc1394_control -L/usr/lib -lcurl -lxml2 -lz -lm -lboost_date_time -lboost_thread -lpthread -L/usr/local/lib -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -ldts -lvorbisenc -lvorbis -lm -logg -L/usr/local/lib -lavformat -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -L/usr/local/lib -lavutil -ltheora -logg -lgsm -ldc1394_control -Wl,--as-needed -o libgnashgui.la -rpath /usr/local/lib -release cvs -lglib-2.0 -lltdl -L/usr/local/lib -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -ldts -lvorbisenc -lvorbis -lm -logg -L/usr/local/lib -lavformat -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -L/usr/local/lib -lavutil -ltheora -logg -lgsm -ldc1394_control -L/usr/lib -lcurl -lxml2 -lz -lm -lboost_date_time -lboost_thread -lpthread -L/usr/local/lib -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -ldts -lvorbisenc -lvorbis -lm -logg -L/usr/local/lib -lavformat -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -L/usr/local/lib -lavutil -ltheora -logg -lgsm -ldc1394_control libgnashgui_la-gui.lo libgnashgui_la-NullGui.lo libgnashgui_la-gui_gtk.lo libgnashgui_la-gui_kde.lo libgnashgui_la-gui_sdl.lo libgnashgui_la-gui_fb.lo libgnashgui_la-gui_fltk.lo libgnashgui_la-gui_aqua.lo libgnashgui_la-gui_riscos.lo ../server/libgnashserver.la ../backend/libgnashbackend.la ../libamf/libgnashamf.la libgnashgtk_ogl.la -lrt -lX11 -lXi -lm )
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libxml2.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libfreetype.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libxml2.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libfreetype.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libjpeg.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libSDL.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libpangox-1.0.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libpango-1.0.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libatk-1.0.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libgobject-2.0.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libgmodule-2.0.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libglib-2.0.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//liba52.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libmp3lame.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libvorbisenc.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libvorbis.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libtheora.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libogg.la' seems to be moved
g++ -shared -nostdlib /usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../../lib/crti.o /usr/lib/gcc/powerpc-linux-gnu/4.0.3/crtbeginS.o .libs/libgnashgui_la-gui.o .libs/libgnashgui_la-NullGui.o .libs/libgnashgui_la-gui_gtk.o .libs/libgnashgui_la-gui_kde.o .libs/libgnashgui_la-gui_sdl.o .libs/libgnashgui_la-gui_fb.o .libs/libgnashgui_la-gui_fltk.o .libs/libgnashgui_la-gui_aqua.o .libs/libgnashgui_la-gui_riscos.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib/gnash/plugins -L/home/brianokeefe/gnash/server/.libs -L/home/brianokeefe/gnash/libamf/.libs -L/usr/local/lib -L/usr/lib -lglib-2.0 -lltdl -lcurl -lxml2 -lboost_date_time -lboost_thread -lpthread -ldts -lavformat -lavcodec -lz -la52 -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lXext -lvorbisenc -lvorbis -lavutil -ltheora -logg -lgsm -ldc1394_control -lgnashserver -L/home/brianokeefe/gnash/libgeometry/.libs -L/home/brianokeefe/gnash/libbase/.libs -L/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../ -lgnashbackend -L/usr/share/qt3/lib -lgnashamf -L/usr/local/lib/gnash/plugins -lgnashgtk_ogl -lrt -lX11 -lXi -L/usr/lib/gcc/powerpc-linux-gnu/4.0.3 -L/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../../lib -L/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../.. -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/powerpc-linux-gnu/4.0.3/crtsavres.o /usr/lib/gcc/powerpc-linux-gnu/4.0.3/crtendS.o /usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../../../lib/crtn.o -pthread -Wl,--as-needed -Wl,-soname -Wl,libgnashgui-cvs.so -o .libs/libgnashgui-cvs.so
/usr/bin/ld: cannot find -lgnashgtk_ogl
collect2: ld returned 1 exit status
libtool: install: error: relink `libgnashgui.la' with the above command before installing it

Brian <ubuntubrian>
Sun 29 Jul 2007 05:28:25 PM UTC, comment #36:

For a minute I thought that maybe I didn't but her's the command:
sudo make install
Password:
Making install in libbase

Seems weird to me...

Brian <ubuntubrian>
Sun 29 Jul 2007 05:06:06 PM UTC, comment #35:

Noooo... You are doing a 'make install' as root after ./configure: make, are you?

The libraries should be installed, that file you have found is still in gnash build directory.

Nick

Nick Warne <nickw>
Sun 29 Jul 2007 04:58:24 PM UTC, comment #34:

I did run ldcofig as root.
I found libgnashgui-cvs.so here:
~$ sudo find -name libgnashgui-cvs.so
Password:
./gnash/gui/.libs/libgnashgui-cvs.so

Should I copy it to /usr/local/lib where all the other gnash libraries are and edit ld.so.conf to include this path?

Thanks

Brian <ubuntubrian>
Sun 29 Jul 2007 04:15:33 PM UTC, comment #33:

It could also be default install /usr/local is not in /etc/ld.so.conf

Brian, open /etc/ld.so.conf in a text editor and add the path to where libgnashgui-cvs.so (et al) was installed - so if it was /usr/local/:

/usr/local/lib

the run ldconfig as root again.

Nick

Nick Warne <nickw>
Sun 29 Jul 2007 03:59:37 PM UTC, comment #32:

Brian, did you run 'ldconfig' as root as I suggested in comment #29 ?

Sandro Santilli <strk>
Project Member
Sun 29 Jul 2007 03:58:17 PM UTC, comment #31:

great on the ffmpeg work!
I ran ldconfig and still no luck-same error:
~$ gnash 'http://www.youtube.com/watch?v=4p9wKiZdfnU' gnash: error while loading shared libraries: libgnashgui-cvs.so: cannot open shared object file: No such file or directory

Brian <ubuntubrian>
Sun 29 Jul 2007 04:41:55 AM UTC, comment #30:

I added a test for libswscale. If ffmpeg is configured with --enable-gpl --enable-swscale, the library gets built, otherwise it doesn't. So now it's added to the lis of libraries if it exists.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Sun 29 Jul 2007 01:39:30 AM UTC, comment #29:

Run ldconfig as root.

Sandro Santilli <strk>
Project Member
Sun 29 Jul 2007 01:10:45 AM UTC, comment #28:

Is this a new bug? I give up otherwise! I built ffmpeg as below #23 and after mucking with synaptic and such I got a good build and went on to the latest gnash-cvs. It configured (see make dumpconfig below), make ran (!!!) and make install ran and the package built! But it won't play anything either in Firefox (the pluginis there in about:plugins)or stand alone. Thanksfor any help....
Stand alone:
~$ gnash "/home/brianokeefe/Desktop/C-Walkin__at_Manila_-_BeatOfTheHeat.flv "
gnash: error while loading shared libraries: libgnashgui-cvs.so: cannot open shared object file: No such file or directory

Here's the end of the build and an attempt to check "gnash --version": (why is the install rm libgnashplugin here?)

rm -f /home/brianokeefe/.mozilla/plugins/libgnashplugin.a /home/brianokeefe/.mozilla/plugins/libgnashplugin.so.0 /home/brianokeefe/.mozilla/plugins/libgnashplugin..T
make[3]: Leaving directory `/home/brianokeefe/gnash/plugin'
make[2]: Leaving directory `/home/brianokeefe/gnash/plugin'
make[1]: Leaving directory `/home/brianokeefe/gnash/plugin'
Making install in extensions
make[1]: Entering directory `/home/brianokeefe/gnash/extensions'
make[2]: Entering directory `/home/brianokeefe/gnash/extensions'
make[3]: Entering directory `/home/brianokeefe/gnash/extensions'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/brianokeefe/gnash/extensions'
make[2]: Leaving directory `/home/brianokeefe/gnash/extensions'
make[1]: Leaving directory `/home/brianokeefe/gnash/extensions'
make[1]: Entering directory `/home/brianokeefe/gnash'
make[2]: Entering directory `/home/brianokeefe/gnash'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"
/usr/bin/install -c -m 644 './doc/gnash.1' '/usr/local/man/man1/gnash.1'
make[2]: Leaving directory `/home/brianokeefe/gnash'
make[1]: Leaving directory `/home/brianokeefe/gnash'
brianokeefe@ubuntu:~/gnash$ gash --version
bash: gash: command not found
brianokeefe@ubuntu:~/gnash$ gnash --version
gnash: error while loading shared libraries: libgnashgui-cvs.so: cannot open shared object file: No such file or directory
brianokeefe@ubuntu:~/gnash$ cd
brianokeefe@ubuntu:~$ gnash --version
gnash: error while loading shared libraries: libgnashgui-cvs.so: cannot open shared object file: No such file or directory
brianokeefe@ubuntu:~$ which gnash
/usr/local/bin/gnash
brianokeefe@ubuntu:~$ cd gnash
brianokeefe@ubuntu:~/gnash$ make dumpconfig

Building in directories: libbase libgeometry libamf server backend utilities gui testsuite po plugin extensions
Some directories may be excluded from the build
Linux ubuntu 2.6.15-28-powerpc #1 Thu May 10 09:50:21 UTC 2007 ppc GNU/Linux
g++ -v
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-softfloat --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32 --disable-werror --enable-checking=release powerpc-linux-gnu
Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
CXXFLAGS: -g -O2 -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type

Image decoding support...
JPEG_CFLAGS is
JPEG_LIBS is -ljpeg
PNG_CFLAGS is
PNG_LIBS is
Audio decoding support...
FFMPEG_CFLAGS is -I/usr/local/include -I/usr/local/include
FFMPEG_LIBS is -L/usr/local/lib -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -ldts -lvorbisenc -lvorbis -lm -logg -L/usr/local/lib -lavformat -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -L/usr/local/lib -lavutil -ltheora -logg -lgsm -ldc1394_control
OGG_CFLAGS is
OGG_LIBS is
GUI Toolkit decoding support...
SDL_CFLAGS is -I/usr/include/SDL
SDL_LIBS is -lSDL
GTK2_CFLAGS is -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
GTK2_LIBS is -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
PANGO_CFLAGS is -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
PANGO_LIBS is -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
ATK_CFLAGS is -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
ATK_LIBS is -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
X11_CFLAGS is -I/usr/include
X11_LIBS is -lX11 -lXinerama -lXext -lSM -lICE
Support libraries...
INCLTDL
LIBLTDL -lltdl
GLIB_CFLAGS is -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
GLIB_LIBS is -lglib-2.0
Z_CFLAGS is
Z_LIBS is -lz
LIBXML_CFLAGS is -I/usr/include/libxml2
LIBXML_LIBS is -lxml2 -lz -lm
FREETYPE2_CFLAGS is -I/usr/include/freetype2
FREETYPE2_LIBS is -lfreetype -lz
FONTCONFIG_CFLAGS is
FONTCONFIG_LIBS is -lfontconfig
PTHREAD_CFLAGS is -pthread
PTHREAD_LIBS is -lpthread
CURL_CFLAGS is
CURL_LIBS is -L/usr/lib -lcurl
BOOST_CFLAGS is -I/usr/include
BOOST_LIBS is -lboost_date_time -lboost_thread
Graphics support...
CAIRO_CFLAGS is
CAIRO_LIBS is
GLEXT_CFLAGS is -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0
GLEXT_LIBS is -Wl,--export-dynamic -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
OPENGL_CFLAGS is
OPENGL_LIBS is -lGL -lGLU
A blank value for CFLAGS means the header is installed in the
default system header location. All the LIBS should have a
legit value

Configurable options are:
Media handler: ffmpeg
Renderer engine: ogl
Supported GUI: gtk ( default gtk )

Brian <ubuntubrian>
Sat 28 Jul 2007 09:55:18 PM UTC, comment #27:

The easiest way to debug configure problems is to set CONFIG_SHELL in your environment to "sh -x", and then run configure using like "sh -x ./configure [options]". In there is the fine details on what
the configure script is doing. You can either add the output file here, or search yourself for instance of "swfscale" in the output file.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Sat 28 Jul 2007 07:56:16 PM UTC, comment #26:

Bug #20500 says that this was fixed so I've come full circle but still no build.
I think the swscale thing is perhaps Ubuntu specific and the fix for it seems to work. Just wish Gnash would build.

Brian <ubuntubrian>
Sat 28 Jul 2007 07:44:58 PM UTC, comment #25:

And here it is-failed build but only 1 error so it seems the linked info in #23 below works for swscale. Now avcodec sticks. I had to --disable-vhook to get ffmpeg to build but now I get:

../server/.libs/libgnashserver.so: undefined reference to `avcodec_decode_audio2'
collect2: ld returned 1 exit status
make[2]: *** [gparser] Error 1
make[2]: Leaving directory `/home/brianokeefe/gnash-cvs/utilities'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brianokeefe/gnash-cvs'
make: *** [all] Error 2

Here's dumpconfig:
:~/gnash-cvs$ make dumpconfig

Building in directories: libbase libgeometry libamf server backend utilities gui testsuite po plugin extensions
Some directories may be excluded from the build
Linux ubuntu 2.6.15-28-powerpc #1 Thu May 10 09:50:21 UTC 2007 ppc GNU/Linux
g++ -v
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-softfloat --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32 --disable-werror --enable-checking=release powerpc-linux-gnu
Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
CXXFLAGS: -g -O2 -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type

Image decoding support...
JPEG_CFLAGS is
JPEG_LIBS is -ljpeg
PNG_CFLAGS is
PNG_LIBS is
Audio decoding support...
FFMPEG_CFLAGS is -I/usr/local/include -I/usr/local/include
FFMPEG_LIBS is -L/usr/local/lib -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -ldts -lvorbisenc -lvorbis -lm -logg -L/usr/local/lib -lavformat -lavcodec -lz -la52 -lgsm -lmp3lame -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -L/usr/local/lib -lavutil -ltheora -logg -lgsm -ldc1394_control
OGG_CFLAGS is
OGG_LIBS is
GUI Toolkit decoding support...
SDL_CFLAGS is -I/usr/include/SDL
SDL_LIBS is -lSDL
GTK2_CFLAGS is -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
GTK2_LIBS is -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
PANGO_CFLAGS is -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
PANGO_LIBS is -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
ATK_CFLAGS is -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
ATK_LIBS is -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
X11_CFLAGS is -I/usr/include
X11_LIBS is -lX11 -lXinerama -lXext -lSM -lICE
Support libraries...
INCLTDL
LIBLTDL -lltdl
GLIB_CFLAGS is -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
GLIB_LIBS is -lglib-2.0
Z_CFLAGS is
Z_LIBS is -lz
LIBXML_CFLAGS is -I/usr/include/libxml2
LIBXML_LIBS is -lxml2 -lz -lm
FREETYPE2_CFLAGS is -I/usr/include/freetype2
FREETYPE2_LIBS is -lfreetype -lz
FONTCONFIG_CFLAGS is
FONTCONFIG_LIBS is -lfontconfig
PTHREAD_CFLAGS is -pthread
PTHREAD_LIBS is -lpthread
CURL_CFLAGS is
CURL_LIBS is -L/usr/lib -lcurl
BOOST_CFLAGS is -I/usr/include
BOOST_LIBS is -lboost_date_time -lboost_thread
Graphics support...
CAIRO_CFLAGS is
CAIRO_LIBS is
GLEXT_CFLAGS is -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0
GLEXT_LIBS is -Wl,--export-dynamic -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
OPENGL_CFLAGS is
OPENGL_LIBS is -lGL -lGLU
A blank value for CFLAGS means the header is installed in the
default system header location. All the LIBS should have a
legit value

Configurable options are:
Media handler: ffmpeg
Renderer engine: ogl
Supported GUI: gtk ( default gtk )

Brian <ubuntubrian>
Sat 28 Jul 2007 07:43:23 PM UTC, comment #24:

Adding -lswscale to FFMPEG_LIBS is ffmpeg.m4 responsibility. Patches welcome.

Sandro Santilli <strk>
Project Member
Sat 28 Jul 2007 07:29:36 PM UTC, comment #23:

Hmmm Beer
I tried with --enable-swscale also. Trying to get the ffmpeg build to work via: http://ubuntuforums.org/showthread.php?p=3095574#post3095574

which may correct the swscale problem-I hope. I'm running make on HEAD right now and will post.

Brian <ubuntubrian>
Sat 28 Jul 2007 06:39:14 PM UTC, comment #22:

OK, I could replicate the sws_scale (et al) linkers errors.

After a few hours, lots of beer...

-lswscale

Doh!

A simple linker flag.

I just appended it to the libbase/Makefile at the end of the ffmpeg libs:

FFMPEG_LIBS = -L/usr/local/lib -lavcodec -lvorbisenc -lvorbis -lm -logg -lavformat -lavutil -ltheora -lswscale

I don't know if that is right, nor do I know how to put into the build.

Nick

Nick Warne <nickw>
Sat 28 Jul 2007 05:46:58 PM UTC, comment #21:

Here's the config I used for the ffmpeg build. I also tried building the July 25 2007 cvs snapshot of gnash. Still no good with same errors as #13 below.

~/ffmpeg$ ./configure --enable-libmp3lame --enable-liba52 --enable-libfaad --enable-libxvid --enable-liba52bin --enable-libfaac --enable-libtheora --enable-libogg --enable-gpl --enable-pp --enable-x11grab --enable-libvorbis --enable-libfaac --enable-libgsm --enable-pthreads

Brian <ubuntubrian>
Sat 28 Jul 2007 05:39:13 PM UTC, comment #20:

Dependency hell! I think that my Dapper version won't work with the newer debs. I could uninstall ffmpeg and try installing these again. I hope this is not bad form to post this here:
Selecting previously deselected package libswscale1d.
(Reading database ... 255113 files and directories currently installed.)
Unpacking libswscale1d (from .../libswscale1d_0.cvs20070307-6_powerpc.deb) ...
Selecting previously deselected package libavutil-dev.
Unpacking libavutil-dev (from .../libavutil-dev_0.cvs20070307-6_powerpc.deb) ...
dpkg: error processing /home/brianokeefe/Desktop/libavutil-dev_0.cvs20070307-6_powerpc.deb (--install):
trying to overwrite `/usr/bin/ffmpeg-config', which is also in package libavcodec-dev
Preparing to replace libswscale-dev 0.cvs20070307-6 (using .../libswscale-dev_0.cvs20070307-6_powerpc.deb) ...
Unpacking replacement libswscale-dev ...
dpkg: dependency problems prevent configuration of libswscale1d:
libswscale1d depends on libavutil1d (>= 0.cvs20070307); however:
Package libavutil1d is not installed.
libswscale1d depends on libc6 (>= 2.5-5); however:
Version of libc6 on system is 2.3.6-0ubuntu20.5.
dpkg: error processing libswscale1d (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libswscale-dev:
libswscale-dev depends on libswscale1d (= 0.cvs20070307-6); however:
Package libswscale1d is not configured yet.
libswscale-dev depends on libavutil-dev (= 0.cvs20070307-6); however:
Package libavutil-dev is not installed.
dpkg: error processing libswscale-dev (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
/home/brianokeefe/Desktop/libavutil-dev_0.cvs20070307-6_powerpc.deb
libswscale1d
libswscale-dev
brianokeefe@ubuntu:~/ffmpeg$ sudo dpkg -i /home/brianokeefe/Desktop/libswscale1d_0.cvs20070307-6_powerpc.deb
(Reading database ... 255124 files and directories currently installed.)
Preparing to replace libswscale1d 0.cvs20070307-6 (using .../libswscale1d_0.cvs20070307-6_powerpc.deb) ...
Unpacking replacement libswscale1d ...
dpkg: dependency problems prevent configuration of libswscale1d:
libswscale1d depends on libavutil1d (>= 0.cvs20070307); however:
Package libavutil1d is not installed.
libswscale1d depends on libc6 (>= 2.5-5); however:
Version of libc6 on system is 2.3.6-0ubuntu20.5.
dpkg: error processing libswscale1d (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libswscale1d
brianokeefe@ubuntu:~/ffmpeg$ sudo dpkg -i /home/brianokeefe/Desktop/libavutil-dev_0.cvs20070307-6_powerpc.deb
(Reading database ... 255124 files and directories currently installed.)
Unpacking libavutil-dev (from .../libavutil-dev_0.cvs20070307-6_powerpc.deb) ...
dpkg: error processing /home/brianokeefe/Desktop/libavutil-dev_0.cvs20070307-6_powerpc.deb (--install):
trying to overwrite `/usr/bin/ffmpeg-config', which is also in package libavcodec-dev
Errors were encountered while processing:
/home/brianokeefe/Desktop/libavutil-dev_0.cvs20070307-6_powerpc.deb

Brian <ubuntubrian>
Sat 28 Jul 2007 04:47:47 PM UTC, comment #19:

Please let us know if that's the problem, as we'll likely need to add linkage for it too

Sandro Santilli <strk>
Project Member
Sat 28 Jul 2007 04:34:50 PM UTC, comment #18:

I think I get it. I need to install libswscale-dev. Now I just need to find a source version for a deb for Dapper ppc

Brian <ubuntubrian>
Sat 28 Jul 2007 04:27:35 PM UTC, comment #17:

Can you post ffmpeg ./configure line please - I can't replicate this at all.

BTW, gnash snapshot 20070611 is old, and will not have the fmpeg linker fix. Try to use cvs HEAD.

Nick

Nick Warne <nickw>
Sat 28 Jul 2007 02:52:56 PM UTC, comment #16:

Just finished another build attempt with gnash snapshot 20070611 as it was posted as building against ffmpeg new version-even more errors:

../server/.libs/libgnashserver.so: undefined reference to `av_alloc_format_context()'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_close(AVCodecContext*)'
../server/.libs/libgnashserver.so: undefined reference to `av_close_input_file(AVFormatContext*)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_init()'
../server/.libs/libgnashserver.so: undefined reference to `audio_resample(ReSampleContext, short, short*, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_decode_video(AVCodecContext, AVFrame, int, unsigned char, int)'
../server/.libs/libgnashserver.so: undefined reference to `init_put_byte(ByteIOContext, unsigned char, int, int, void, int ()(void, unsigned char, int), int ()(void, unsigned char, int), long long ()(void*, long long, int))'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_decode_audio2(AVCodecContext, short, int, unsigned char, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_find_decoder(CodecID)'
../server/.libs/libgnashserver.so: undefined reference to `av_register_all()'
../libbase/.libs/libgnashbase.so: undefined reference to `avpicture_get_size(int, int, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_alloc_frame()'
../server/.libs/libgnashserver.so: undefined reference to `audio_resample_init(int, int, int, int)'
../libbase/.libs/libgnashbase.so: undefined reference to `sws_getContext(int, int, int, int, int, int, int, SwsFilter, SwsFilter, double*)'
../libbase/.libs/libgnashbase.so: undefined reference to `sws_scale(SwsContext, unsigned char, int, int, int, unsigned char*, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_open(AVCodecContext, AVCodec)'
../server/.libs/libgnashserver.so: undefined reference to `av_probe_input_format(AVProbeData*, int)'
../libbase/.libs/libgnashbase.so: undefined reference to `avpicture_fill(AVPicture, unsigned char, int, int, int)'
../server/.libs/libgnashserver.so: undefined reference to `av_seek_frame(AVFormatContext*, int, long long, int)'
../server/.libs/libgnashserver.so: undefined reference to `av_open_input_stream(AVFormatContext*, ByteIOContext, char const, AVInputFormat, AVFormatParameters*)'
../server/.libs/libgnashserver.so: undefined reference to `av_free(void*)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_register_all()'
../server/.libs/libgnashserver.so: undefined reference to `audio_resample_close(ReSampleContext*)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_alloc_context()'
../server/.libs/libgnashserver.so: undefined reference to `av_init_packet(AVPacket*)'
../server/.libs/libgnashserver.so: undefined reference to `av_read_frame(AVFormatContext, AVPacket)'
../server/.libs/libgnashserver.so: undefined reference to `av_find_stream_info(AVFormatContext*)'
collect2: ld returned 1 exit status
make[2]: *** [gparser] Error 1
make[2]: Leaving directory `/home/brianokeefe/gnash/utilities'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brianokeefe/gnash'
make: *** [all] Error 2

Brian <ubuntubrian>
Sat 28 Jul 2007 02:49:57 PM UTC, comment #15:

I'm not following you here. What do I need to do? Build Ffmpeg without enable-swscale? That's what I had trouble with in the beginning when I tried building 0.8.0 against my ffmpeg install. I rebuilt ffmpeg with swscale and still get the errors.
Not being a developer I am working as best as I can but the references are sometimes too short on explanation for my small mind! :)

Brian <ubuntubrian>
Sat 28 Jul 2007 05:53:02 AM UTC, comment #14:

Ubuntu is Debian based, right? I guess you need:

https://savannah.gnu.org/bugs/index.php?20019

Nick

Nick Warne <nickw>
Sat 28 Jul 2007 03:13:56 AM UTC, comment #13:

I have built and rebuilt both gnash and ffmpeg at least 10 times each, trying to track down the no linking to ffmpeg issue. I enabled every option in ffmpeg that I needed, "swfscaler", "a52", and all others, I still get the same errors:

../server/.libs/libgnashserver.so: undefined reference to `av_init_packet'
../libbase/.libs/libgnashbase.so: undefined reference to `sws_scale'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_decode_audio2'
../libbase/.libs/libgnashbase.so: undefined reference to `sws_getContext'
collect2: ld returned 1 exit status
make[2]: *** [gparser] Error 1
make[2]: Leaving directory `/home/brianokeefe/gnash-cvs/utilities'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brianokeefe/gnash-cvs'
make: *** [all] Error 2

New errors were added with a fresh svn version of ffmpeg,specifically the avcodec and av_init_packet undefined references. I guess ffmpeg is mucking up the works here.

I decided to try the debian source link as provided by Martin below and am trying a clean install of an old ffmpeg.

Brian <ubuntubrian>
Wed 18 Jul 2007 12:26:09 AM UTC, comment #12:

Works for me with a snapshot of 2007-06-01

Sandro Santilli <strk>
Project Member
Tue 17 Jul 2007 11:07:20 PM UTC, comment #11:

It seems the patch has been committed. Thanks.
You should get a clean snapshot with 'cvs update -C'
The '-C' switch should forget any local change.
Not sure about conflicts though (it might keep conflicting files around, in which case you should be able to tell by grepping a '<<<' substring.

Sandro Santilli <strk>
Project Member
Tue 17 Jul 2007 08:01:39 PM UTC, comment #10:

I have attached a patch - I found that hard work, I couldn't get my work directory clean (how can you do that?)

Hope it applies OK.

Nick

Nick Warne <nickw>
Tue 17 Jul 2007 07:14:48 PM UTC, comment #9:

Nick, could you provide a patch so others can easily verify if it works for all ?

Sandro Santilli <strk>
Project Member
Tue 17 Jul 2007 05:25:06 PM UTC, comment #8:

I can confirm my reports from 20500 - wrapping the ffmpeg #includes in:

extern "C" {
}

fixes the linker errors with ffmpeg. Nice new shiny build tonight :-)

Files:

./backend/sound_handler_sdl.h:30:#include <ffmpeg/avcodec.h>
./libbase/embedVideoDecoderFfmpeg.h:32:#include <ffmpeg/avcodec.h>
./server/asobj/NetStreamFfmpeg.h:43:#include <ffmpeg/avformat.h>
./server/asobj/SoundFfmpeg.h:36:#include <ffmpeg/avformat.h>
./gui/gnash.cpp:31:# include "ffmpeg/avcodec.h"
./libbase/embedVideoDecoderFfmpeg.cpp:30:#include <ffmpeg/swscale.h>

Nick

Nick Warne <nickw>
Tue 17 Jul 2007 04:30:08 PM UTC, comment #7:

See also bug #20500 for other suggestions.

Sandro Santilli <strk>
Project Member
Thu 12 Jul 2007 10:16:15 AM UTC, comment #6:

Workaround for people who need to install from source:
grab the Debian source tarball at
http://ftp.debian.org/debian/pool/main/f/ffmpeg/ffmpeg_0.cvs20060823.orig.tar.gz
which is recent enough to work, tho it doesn't include VP6 video.

Martin Guy <martinwguy>
Fri 01 Jun 2007 04:50:48 PM UTC, comment #5:

The problem is that there is no recent ffmpeg stable release so distributions just make snapshots from svn every other month or so and use that.

Hussam Al-Tayeb <hussam>
Fri 01 Jun 2007 04:03:18 PM UTC, comment #4:

This is not a blocker anymore. We can't pretend to track ffmpeg development so closely. We should actually find some releasing party to follow ... :/

Sandro Santilli <strk>
Project Member
Thu 31 May 2007 03:12:44 PM UTC, comment #3:

I'm splitting the img_convert/swscale aspect of this off into a separate bug https://savannah.gnu.org/bugs/index.php?20019

Martin Guy <martinwguy>
Thu 31 May 2007 09:43:16 AM UTC, comment #2:

Using libswscale in gnash doesn't help. The linking still fails with the same errors.

Tomas Groth <tgc>
Wed 30 May 2007 12:46:16 PM UTC, comment #1:

Those functions were already deprecated with 20070409 SVN:

/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2463: warning: attribute ignored in declaration of 'struct ImgReSampleContext'
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2463: warning: attribute for 'struct ImgReSampleContext' must follow the 'struct' keyword
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2468: warning: 'ImgReSampleContext' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2465)
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2475: warning: 'ImgReSampleContext' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2465)
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2479: warning: 'ImgReSampleContext' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2465)
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2481: warning: 'ImgReSampleContext' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2465)
/extra/ffmpeg-20070409/include/ffmpeg/avformat.h:285: warning: 'AVFrac' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avformat.h:118)
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2463: warning: attribute ignored in declaration of 'struct ImgReSampleContext'
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2463: warning: attribute for 'struct ImgReSampleContext' must follow the 'struct' keyword
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2468: warning: 'ImgReSampleContext' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2465)
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2475: warning: 'ImgReSampleContext' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2465)
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2479: warning: 'ImgReSampleContext' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2465)
/extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2481: warning: 'ImgReSampleContext' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2465)
/extra/ffmpeg-20070409/include/ffmpeg/avformat.h:285: warning: 'AVFrac' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avformat.h:118)
/home/strk/src/gnash/gnash-head/server/asobj/NetStreamFfmpeg.cpp: In member function 'bool gnash::NetStreamFfmpeg::decodeVideo(AVPacket*)':
/home/strk/src/gnash/gnash-head/server/asobj/NetStreamFfmpeg.cpp:894: warning: 'img_convert' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2606)
/home/strk/src/gnash/gnash-head/server/asobj/NetStreamFfmpeg.cpp:894: warning: 'img_convert' is deprecated (declared at /extra/ffmpeg-20070409/include/ffmpeg/avcodec.h:2606)

Sandro Santilli <strk>
Project Member
Tue 29 May 2007 01:25:55 PM UTC, original submission:

Linking against ffmpeg SVN revision 9147 (20070529) gives this error:

/usr/lib/ccache/bin/g++ -g -fstack-protector-all -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wl,--as-needed -o .libs/gparser parser.o -Wl,--export-dynamic ../server/.libs/libgnashserver.so -L/usr/lib64 -L/usr/lib /home/tomas/gnash/build/gtk-gl-ffmpeg/libamf/.libs/libgnashamf.so /home/tomas/gnash/build/gtk-gl-ffmpeg/libgeometry/.libs/libgnashgeo.so -lxml2 ../libbase/.libs/libgnashbase.so ../libamf/.libs/libgnashamf.so /home/tomas/gnash/build/gtk-gl-ffmpeg/libbase/.libs/libgnashbase.so -ljpeg -lcurl -lGL -lGLU -lltdl -lboost_date_time-mt -lboost_thread-mt -lpthread -ldts -lavformat -lavcodec -lz -la52 -lmp3lame -lxvidcore -lfaac -lfaad -lvorbisenc -lvorbis -lavutil -ltheora -logg -lglib-2.0 -lrt -lX11 -lXi -lm
../server/.libs/libgnashserver.so: undefined reference to `av_alloc_format_context()'
../server/.libs/libgnashserver.so: undefined reference to `img_convert(AVPicture, int, AVPicture const, int, int, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_close(AVCodecContext*)'
../server/.libs/libgnashserver.so: undefined reference to `av_close_input_file(AVFormatContext*)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_init()'
../server/.libs/libgnashserver.so: undefined reference to `audio_resample(ReSampleContext, short, short*, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_decode_video(AVCodecContext, AVFrame, int, unsigned char, int)'
../server/.libs/libgnashserver.so: undefined reference to `av_seek_frame(AVFormatContext*, int, long, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_decode_audio2(AVCodecContext, short, int, unsigned char, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_find_decoder(CodecID)'
../server/.libs/libgnashserver.so: undefined reference to `av_register_all()'
../server/.libs/libgnashserver.so: undefined reference to `avpicture_get_size(int, int, int)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_alloc_frame()'
../server/.libs/libgnashserver.so: undefined reference to `audio_resample_init(int, int, int, int)'
../server/.libs/libgnashserver.so: undefined reference to `init_put_byte(ByteIOContext, unsigned char, int, int, void, int ()(void, unsigned char, int), int ()(void, unsigned char, int), long ()(void*, long, int))'
../server/.libs/libgnashserver.so: undefined reference to `av_destruct_packet_nofree(AVPacket*)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_open(AVCodecContext, AVCodec)'
../server/.libs/libgnashserver.so: undefined reference to `av_probe_input_format(AVProbeData*, int)'
../server/.libs/libgnashserver.so: undefined reference to `avpicture_fill(AVPicture, unsigned char, int, int, int)'
../server/.libs/libgnashserver.so: undefined reference to `av_open_input_stream(AVFormatContext*, ByteIOContext, char const, AVInputFormat, AVFormatParameters*)'
../server/.libs/libgnashserver.so: undefined reference to `av_free(void*)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_register_all()'
../server/.libs/libgnashserver.so: undefined reference to `audio_resample_close(ReSampleContext*)'
../server/.libs/libgnashserver.so: undefined reference to `avcodec_alloc_context()'
../server/.libs/libgnashserver.so: undefined reference to `av_read_frame(AVFormatContext, AVPacket)'
../server/.libs/libgnashserver.so: undefined reference to `av_find_stream_info(AVFormatContext*)'
collect2: ld returned 1 exit status

Tomas Groth <tgc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #14082:  patch added by alsroot (308B - application/octet-stream - please apply this patch to fix new ffmpeg includes)
file #13377:  ffmpeg_linker.patch added by nickw (3KiB - text/x-diff - Attempted patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by alsroot (Updated the item)
  • -unavailable- added by rsavoye (Posted a comment)
  • -unavailable- added by ubuntubrian (Posted a comment)
  • -unavailable- added by nickw (Posted a comment)
  • -unavailable- added by hussam (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by tgc (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 15 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 04 Oct 2007 03:30:16 PM UTCalsrootAttached File-=>Added patch, #14082
    Mon 30 Jul 2007 09:41:30 PM UTCstrkStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 29 Jul 2007 04:41:55 AM UTCrsavoyeStatusNone=>Ready For Test
    Sat 28 Jul 2007 07:43:23 PM UTCstrkSeverity4 - Important=>5 - Blocker
      StatusFixed=>None
      Assigned toNone=>rsavoye
      Open/ClosedClosed=>Open
      SummaryLinking gnash against current ffmpeg SVN fails=>Linking gnash against current ffmpeg SVN fails (needs -lswfscale)
    Wed 18 Jul 2007 01:29:41 AM UTCstrkStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Tue 17 Jul 2007 11:07:20 PM UTCstrkStatusNone=>Ready For Test
    Tue 17 Jul 2007 08:00:14 PM UTCnickwAttached File-=>Added ffmpeg_linker.patch, #13377
    Fri 01 Jun 2007 04:03:18 PM UTCstrkSeverity5 - Blocker=>4 - Important
    Tue 29 May 2007 07:39:12 PM UTChussamCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1