Added the dependencies for gdk-pixbuf2 and gdk-pixbuf, and tested the build in clean arch install. Thanks alfplayer!
Search Criteria
Package Details: gnash-git 0.8.11.r22276.g939bcfb-1
Package Actions
| Package Base: | gnash-git |
|---|---|
| Description: | The GNU SWF Player based on GameSWF - git development version |
| Upstream URL: | http://www.gnu.org/software/gnash/ |
| Category: | multimedia |
| Licenses: | |
| Conflicts: | |
| Provides: | |
| Replaces: | |
| Submitter: | smoge |
| Maintainer: | tmtvl |
| Last Packager: | tmtvl |
| Votes: | 30 |
| First Submitted: | 2011-05-26 21:04 |
| Last Updated: | 2015-05-17 16:03 |
Dependencies (28)
- agg
- boost-libs
- cairo
- curl
- desktop-file-utils
- ffmpeg
- fontconfig
- gconf
- gdk-pixbuf
- gdk-pixbuf2
- giflib
- glu
- gtk2
- gtkglext
- hicolor-icon-theme
- jemalloc
- libgl
- libjpeg
- libldap
- libltdl
- libpng
- sdl
- speex
- boost (make)
- git (make)
- mesa (make)
- pkgconfig (make)
- xulrunner (make)
Required by (0)
Sources
Latest Comments
Comment by tmtvl
Comment by alfplayer
Missing gdk-pixbuf2 and gdk-pixbuf in makedepends. The first is in Arch repos. The second is in AUR and depends on aur/gtk which depends on aur/glib.
Comment by tmtvl
And upstream fixed the error, so I updated the PKGBUILD.
Comment by tmtvl
Quick little update, should work now.
Comment by jsteel
Merging gnash-trunk-git into gnash-git. Bother were orphans; feel free to adopt.
Comment by FredBezies
Just using html5 video and audio rendering on compatible sites.
Comment by taro-k
Oh, why? Any security problem?
Comment by FredBezies
Don't use it anymore. Orphaning it.
Comment by taro-k
@tmtvl
For current AUR version, gnash-trunk-git 0.8.11.r22195.g7349e86-1,
by gcc version 4.9.1 20140903 (prerelease) (GCC),
makepkg succeeded with your suggestion. thx.
Comment by taro-k
Hi, my system:
gnash-trunk-git pkgver=0.8.11.r22230.g21b977d
gcc version 4.9.1 20140903 (prerelease) (GCC)
and makepkg fails with/without your suggestion.
[code]
CXX libgnashbase_la-GnashImageGif.lo
GnashImageGif.cpp: In destructor 'virtual gnash::image::{anonymous}::GifInput::~GifInput()':
GnashImageGif.cpp:123:23: error: too few arguments to function 'int DGifCloseFile(GifFileType*, int*)'
DGifCloseFile(_gif);
^
In file included from GnashImageGif.cpp:27:0:
/usr/include/gif_lib.h:183:9: note: declared here
int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
^
Makefile:1257: recipe for target 'libgnashbase_la-GnashImageGif.lo' failed
make[2]: *** [libgnashbase_la-GnashImageGif.lo] Error 1
make[2]: Leaving directory '/mnt/tmp/aur/gnash-trunk-git/src/gnash/libbase'
Makefile:1145: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/tmp/aur/gnash-trunk-git/src/gnash'
Makefile:1052: recipe for target 'all' failed
make: *** [all] Error 2
[/code]
Comment by tmtvl
AS I said upstream, a possible workaround for the bug is to edit libcore/DragState.h:64:
bool hasBounds() const {
-return (_bounds);
+return (NULL != _bounds);
}
On my system it works, but on a system running gcc 4.8.2 it failed, so anyone who runs into the problem could let me know if it helps, that would be useful.
Comment by FredBezies
giflib bug is fixed, but another one appeared :
http://savannah.gnu.org/bugs/?43198
No update until this one is fixed.
Comment by FredBezies
@melkhatt : gnash doesn't build against last giflib. Will try with giflib-nox11, but as gnash is using x11 and any browser to work with it...
I try downgrading giflib, but it will conflict with another packages. Will have to wait until gnash code is updated.
Comment by melkhatt
we need to downgrade "giflib" to compile.
"giflib-nox11" from aur makes the deal
Comment by FredBezies
@taro : bug reported upstream. https://savannah.gnu.org/bugs/index.php?42574
We'll have to wait now.
Comment by taro-k
Hi, I got the following error while building the latest gnash. If any idea, please help!
CXX libgnashbase_la-GnashImageGif.lo
GnashImageGif.cpp: In destructor 'virtual gnash::image::{anonymous}::GifInput::~GifInput()':
GnashImageGif.cpp:123:23: error: too few arguments to function 'int DGifCloseFile(GifFileType*, int*)'
DGifCloseFile(_gif);
^
In file included from GnashImageGif.cpp:27:0:
/usr/include/gif_lib.h:183:9: note: declared here
int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
^
Makefile:1257: recipe for target 'libgnashbase_la-GnashImageGif.lo' failed
make[2]: *** [libgnashbase_la-GnashImageGif.lo] Error 1
make[2]: Leaving directory '/mnt/tmp/aur/gnash-trunk-git/src/gnash/libbase'
Makefile:1145: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/tmp/aur/gnash-trunk-git/src/gnash'
Makefile:1052: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Comment by oriba
@FredBezies: thanks, but as fas as I can see, base-devel was already installed.
pacman said, it would be a reinstallation. Nevertheless I needed to install autoconf, automake and some others...
Comment by FredBezies
@oriba : sudo pacman -S base-devel
You need this to use fully and quietly AUR packages.
Comment by oriba
No, I'm sorry, not cmake was mising, it was automake / autoconf... that is missing.
Comment by oriba
cmake is needed to install, so I think it must be mentioned in the makedepends-entry.
Comment by FredBezies
@snoxu : try these commands.
yaourt -G gnash-trunk-git
cd gnash-trunk-git
makepkg -s
After building : yaourt -U name of package.
Comment by snoxu
Getting some error about "Unable to read PKGBUILD":
/tmp/xxx/aur-gnash-trunk-git/./tmp.CKfbnV5UQN: line 17: syntax error near unexpected token `('
/tmp/xxxxaur-gnash-trunk-git/./tmp.CKfbnV5UQN: line 17: `makedepends=(libtool mesa xulrunner pkgconfig boost git)'
==> ERRO: pkgname não pode estar vazio.
==> ERRO: pkgrel não pode estar vazio.
==> ERRO: não está disponível para a arquitectura 'x86_64'.
Entenda que vários pacotes podem precisar de uma linha adicional ao seu PKGBUILD
assim como arch=('x86_64').
Unable to read PKGBUILD
Comment by FredBezies
Cleaned up PKGBUILD. agg is deactived for now.
Comment by taro-k
@FredBezies Ya. So, I think you mean Youtube used to work but the latest version doesn't. I just wornder it is my personal problem or general one. thx!
Comment by FredBezies
@taro : It used to work. But Gnash is far from being a fully working opened flash tool.
Comment by taro-k
Dear FredBezies, thx for your comment and contribution. I have tried the latest version but it still doesn't work, producing error "The SWF Player plugin has crashed. Reload the page to try again." on Iceweasel and just crash on Midori. Is it working at your place?
Comment by FredBezies
gnash-trunk-git 0.8.10.r21946.ga3180f2-2 => enable-ffmpeg is enabled.
Comment by FredBezies
Disable ffmpeg a few versions ago because of build problems. Will try to enable it back asap.
Comment by LaloHao
For playing HD videos on youtube i guess you would change PKGBUILD:39 to --enable-media=ffmpeg \
Comment by taro-k
Thx, Mr. FredBezies, the build is also in success here with xulrunner 28.0+, althought Youtube doesn't work still... ("An error occured in first visit. Then, the browser freezes when reloaded..") However, the website of gnash says it can work with youtube..
Comment by FredBezies
Gnash should be built without problem when using xulrunner 28.0+
Comment by FredBezies
Well, great news. But getting it fixed with xulrunner 27.0.x will be better.
And Gnash is sometimes very limited. Don't worry if you find not working sites.
Comment by taro-k
The bug seems to be fixed at the upstream, great.
By the way, I was already succeeded in install of this build
gnash-trunk-git 0.8.10.r21945.ga5c2e3b-1
with xulrunner 26.0 because of your comment at the upstream bbs
->Bug appeared when archlinux upgrade xulrunner to version 27.0
thanks for that!
However, flash doesn't work at every website I visit like
http://www.youtube.com
http://www.google.com/finance?q=INDEXDJX:.DJI
http://www.bloomberg.com/quote/SET:IND/chart
Do you have any idea if it is my environment problem or gnash problem?
Comment by FredBezies
Cannot get it to build, even with this make line : make CXXFLAGS="$CXXFLAGS -Wc++0x-compat" CFLAGS="$CFLAGS -fPIC"
Bug reported. Will have to wait for a fix.
https://savannah.gnu.org/bugs/index.php?41587
Comment by taro-k
Wow, great, thx. Mine is
community/xulrunner 27.0-1 [installed]
Comment by FredBezies
Looks like it is a bug related to xulrunner 27.0. Will try to see how to fix it.
Comment by taro-k
Thank you for your contribution. This is what I really want now!
Then, I am trying to makepkg, however, encountered the following error.
According to Stackoverflow, it may be fixed by a compiler argument,
but this error happens only for me?! If not, please update this package, Mr. FredBezies ?
http://stackoverflow.com/questions/10033373/c-error-nullptr-was-not-declared-in-this-scope-in-eclipse-ide
GnashNPVariant.h: In constructor 'gnash::GnashNPVariant::GnashNPVariant()':
/usr/include/xulrunner-27.0/npruntime.h:146:30: error: 'nullptr' was not declared in this scope
(_v).value.objectValue = nullptr; \
^
GnashNPVariant.h:120:9: note: in expansion of macro 'NULL_TO_NPVARIANT'
NULL_TO_NPVARIANT(_variant);
^
plugin.cpp: In member function 'bool gnash::nsPluginInstance::processPlayerRequest()':
/usr/include/xulrunner-27.0/npruntime.h:140:30: error: 'nullptr' was not declared in this scope
(_v).value.objectValue = nullptr; \
^
plugin.cpp:930:9: note: in expansion of macro 'VOID_TO_NPVARIANT'
VOID_TO_NPVARIANT(result);
^
Makefile:873: recipe for target 'libgnashplugin_la-plugin.lo' failed
make[4]: *** [libgnashplugin_la-plugin.lo] Error 1
make[4]: Leaving directory '/mnt/tmp/taro-tmp/aur/gnash-trunk-git/src/gnash/plugin/npapi'
Makefile:962: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/mnt/tmp/taro-tmp/aur/gnash-trunk-git/src/gnash/plugin/npapi'
Makefile:667: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/mnt/tmp/taro-tmp/aur/gnash-trunk-git/src/gnash/plugin'
Makefile:1143: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/mnt/tmp/taro-tmp/aur/gnash-trunk-git/src/gnash'
Makefile:1442: recipe for target 'install' failed
make: *** [install] Error 2
==> ERROR: A failure occurred in package().
Aborting...
Comment by FredBezies
Cleaned up again PKGBUILD. Making it looking like official PKGBUILD : removed vaapi for now.
Comment by goviedo
Thanks for this, BUT!!!!!!!!!!!!!. My english is poor, but here i go... The PKGBUILD file has a problem, it has 2 lines with --enable-device , one for vaapi and other for X11. Seeing the makepkg -s process, it seem that only X11 is working, it will not compile with vaapi for folks like me that have a Radeon graphics card. and need vaapi support. Tomorrow i will see if works because my APU E-300 CPU is very damn slow and compilation took an eternity...
Comment by FredBezies
Cleaned up PKGBUILD
Comment by FredBezies
Updated PKGBUILD and add gnash.install file.
Comment by FredBezies
What about removing this package ? Gnash-trunk-git is still alive and working ;)
Comment by FredBezies
Thanks. Done.
Comment by kode54
Also, --enable-hwaccel was changed to --enable-device.
Comment by kode54
The patch has already been applied upstream and is no longer required.
Comment by FredBezies
Added patch to get it build against libboost 1.5.0. Found it official package.
Comment by FredBezies
Cleaned up a little PKGBUILD and disabled ffmpeg support for now. It breaks build process.
Comment by Unia
You can disable gconf by adding --without-gconf to the PKGBUILD
Comment by Unia
Oops, just read I should use the other package instead.
Comment by Unia
Found it! To compile this without gconf, add this line:
--without-gconf \
Comment by Unia
gconf is, sadly, a dependency. I came here to tried this package since it didn't list it as dependency but it complains when compiling.
Is there any possible way to exclude gconf? I don't need that
Comment by Artefact2
You forgot to add extra/boost to the depedencies. Without it, the first call to CC failed with "DeviceGlue.h:27:34: fatal error: boost/shared_array.hpp: No such file or directory".
Comment by leo_rockway
I think gconf should be a makedepend and not a depend.
Comment by FredBezies
Added gconf as a depend.
Comment by step-2
yes gconf should be a dep
Comment by leo_rockway
I had to install gconf to build, which isn't in makedepends.
Comment by FredBezies
Modified it following your advices. I will try to make it cleaner asap.
Comment by kritztopf
I suggested making your package the new gnash-git, as -git packages should clone master/trunk by default and pkg-branch-git is only need if you want to checkout one specific branch.
Comment by kritztopf
Some remarks for the PKGBUILD:
1) Avoid package name references in pkgdesc - better: " The GNU SWF Player based on GameSWF - git development version"
2) Avoid replaces=(...), it causes unneccessary problems
3) Use "$srcdir" and "$pkgdir" instead of ${srcdir} and ${pkgdir}
4) Building starts automatically in "$srcdir", the first cd is unneccessary
5) Use the package() function to include every "make install" you do, that's what the function is for ;)
6) If you are the maintainer, declare yourself as such (maybe consider "foo at bar dot com" for email addresses)
7) Use namcap. It points out that you need desktop-file-utils and hicolor-icon-theme because gnash provides a .desktop file and icons. Because of this, you need a .install file to call update-desktop-database -q and gtk-update-icon-cache
This is everything I see for now. Have fun :)
Comment by kritztopf
Your package seems to be more advanced, so I will file a deletion request for gnash-git at aur-general. Let me give you some hints on your PKGBUILD, though. See your comments gnash-trunk-git. :)
Comment by FredBezies
Simple question. What is the interest of this, because of gnash-trunk-git is already there ?
https://aur.archlinux.org/packages.php?ID=39699
And with far less dependencies : agg boost-libs curl ffmpeg giflib gsm gstreamer0.10-base gtk2 libdca speex
Comment by FredBezies
Cleaned up a little again, remove obsolete configure options. It works better and better now ;)
Comment by FredBezies
Cleaned a little PKGBUILD. Add an option not ot build testsuite.
Comment by FredBezies
Don't try to build with a multilib system, it will crash.
Comment by jp-deplaix
There are a bug into your PKGBUILD...
Change:
'gstreamer0.10-base boost-libs' -> 'gstreamer0.10-base' 'boost-libs'
Comment by haagch
Indeed multilib. But gnash should be native 64 bit, right?
Thanks for fixing the git behaviour.
Comment by FredBezies
Cdh : multilib system ?
I will modify the bad "behaviour" in next update.
Comment by haagch
WTF
if [ -d ${_gitname} ]; then
rm -rf ${_gitname}
Why would you force a redownload when it is already downloaded?
Anyway, aborted for me with
...
/usr/bin/ld: skipping incompatible /usr/lib32/libpangocairo-1.0.so when searching for -lpangocairo-1.0
/usr/bin/ld: skipping incompatible /usr/lib32/libgdk_pixbuf-2.0.so when searching for -lgdk_pixbuf-2.0
/usr/lib32/libcairo.so: could not read symbols: File in wrong format
I have no idea what it wanted to do in /usr/lib32 anyway.
Comment by FredBezies
added xulrunner as depend for gnash. Needed for 0.8.10-dev version.
http://wiki.gnashdev.org/BuildBot
Comment by FredBezies
rafmav : cleaned up this PKGBUILD.
Here is the new namcap log :
namcap gnash-trunk-git-20110217-1-x86_64.pkg.tar.xz
gnash-trunk-git W: Referenced library 'libgnashbase-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashcore-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashrender-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashmedia-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashvaapi-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashsound-0.8.9dev.so' is an uninstalled dependency
Far better, don't you think so ?
Thanks for the comment !
Comment by rafmav
namcap tells several erros:
uninstalled dependencies, dependencies included but not needed, non-standard directories, not common-license...
gnash-trunk-git 20110217-1 (jeu. févr. 17 08:41:31 CET 2011)
==> Installer gnash-trunk-git ? [O/n]
==> [A]fficher le contenu du paquet [V]érifier avec namcap
==> ------------------------------------------------------
==> v
gnash-trunk-git W: Referenced library 'libgnashbase-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashcore-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashrender-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashmedia-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Referenced library 'libgnashsound-0.8.9dev.so' is an uninstalled dependency
gnash-trunk-git W: Dependency included and not needed ('atk')
gnash-trunk-git W: Dependency included but already satisfied ('libxml2')
gnash-trunk-git W: Dependency included and not needed ('ffmpeg')
gnash-trunk-git W: Dependency included and not needed ('boost')
gnash-trunk-git W: Dependency included and not needed ('pango')
gnash-trunk-git W: Dependency included and not needed ('libxi')
gnash-trunk-git W: Dependency included but already satisfied ('gstreamer0.10')
gnash-trunk-git W: Dependency included and not needed ('gstreamer0.10-ffmpeg')
gnash-trunk-git W: Dependency included and not needed ('gstreamer0.10-base-plugins')
gnash-trunk-git W: Dependency included and not needed ('gstreamer0.10-good-plugins')
gnash-trunk-git W: Dependency included and not needed ('gstreamer0.10-bad-plugins')
gnash-trunk-git W: Dependency included and not needed ('gstreamer0.10-ugly-plugins')
gnash-trunk-git W: File (usr/etc) exists in a non-standard directory.
gnash-trunk-git W: File (usr/etc/gnashrc) exists in a non-standard directory.
gnash-trunk-git W: File (usr/etc/gnashpluginrc) exists in a non-standard directory.
gnash-trunk-git W: File (usr/lib/gnash/libgnashmedia.la) is a libtool file
gnash-trunk-git W: File (usr/lib/gnash/libgnashcore.la) is a libtool file
gnash-trunk-git W: File (usr/lib/gnash/libgnashsound.la) is a libtool file
gnash-trunk-git W: File (usr/lib/gnash/libgnashrender.la) is a libtool file
gnash-trunk-git W: File (usr/lib/gnash/libgnashbase.la) is a libtool file
gnash-trunk-git E: GPLv3+ is not a common license (it's not in /usr/share/licenses/common/)
Comment by FredBezies
@Eothred : your PKGBUILD was nearly working. Just a typo to modify. And it works. Adopted and updated ;)
Comment by FredBezies
Will try your PKGBUILD asap.
Comment by Eothred
Ah, I'm sorry, forgot to modify the "time limit" on the pastebin I suppose. And I managed to delete the PKGBUILD :)
Anyway, here is a new one: http://aur.pastebin.com/dXjhhmdH
Note I changed the gitname variable since this new suggestion of mine delete the gitname folder... I think this works (I didn't go all the way to compilation, but configuration started and it looks OK).
Comment by FredBezies
As your pastebin was not more available, I tried this option, but it didn't work :
==> Connecting to GIT server...
Cloning into gnash...
remote: Counting objects: 2671, done.
remote: Compressing objects: 100% (1534/1534), done.
remote: Total 2671 (delta 1413), reused 1593 (delta 1048)
Receiving objects: 100% (2671/2671), 6.47 MiB | 1.11 MiB/s, done.
Resolving deltas: 100% (1413/1413), done.
==> GIT checkout done or server timeout.
Cloning into gnash-build...
fatal: attempt to fetch/clone from a shallow repository
fatal: The remote end hung up unexpectedly
Abandon...
Comment by FredBezies
I will look at it asap and adapt it from your PKGBUILD. Thanks for the tip.
Comment by Eothred
Good package, but could I propose to take advantage of the --depth option in git clone? It does take quite a while (and is quite an unnecessary load on the server) to clone the entire repo. See my suggested PKGBUILD here as an example: http://pastebin.ca/1924933