This package now builds with the latest ffmpeg (7.0).
Search Criteria
Package Details: goldendict 1:1.5.0-4
Package Actions
Git Clone URL: | https://aur.archlinux.org/goldendict.git (read-only, click to copy) |
---|---|
Package Base: | goldendict |
Description: | Feature-rich dictionary lookup program supporting multiple dictionary formats |
Upstream URL: | https://github.com/goldendict/goldendict |
Keywords: | dictionary |
Licenses: | GPL-3.0-or-later |
Submitter: | MikeWalrus |
Maintainer: | MikeWalrus |
Last Packager: | MikeWalrus |
Votes: | 3 |
Popularity: | 0.072043 |
First Submitted: | 2023-06-21 15:25 (UTC) |
Last Updated: | 2024-06-28 10:55 (UTC) |
Dependencies (22)
- bzip2 (bzip2-gitAUR)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-ffplayoutAUR, ffmpeg-amd-full-gitAUR, ffmpeg-cudaAUR, ffmpeg-full-gitAUR, ffmpeg-gitAUR, ffmpeg-libfdk_aacAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-headlessAUR, ffmpeg-obsAUR, ffmpeg-amd-fullAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- hunspell (hunspell-gitAUR)
- libao (libao-gitAUR)
- libebAUR
- libtiff (libtiff-gitAUR, libtiff-lercAUR)
- libvorbis (libvorbis-aotuvAUR, libvorbis-aotuv-lancerAUR, libvorbis-gitAUR)
- libx11 (libx11-gitAUR)
- libxtst
- lzo
- opencc
- qt5-base (qt5-base-gitAUR, qt5-base-headlessAUR)
- qt5-multimedia
- qt5-svg (qt5-svg-gitAUR)
- qt5-tools
- qt5-webkitAUR (qt5-webkit-gitAUR)
- qt5-x11extras
- xz (xz-gitAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- zstd (zstd-gitAUR, zstd-staticAUR)
Required by (7)
- goldendict-cc-cedict-content (optional)
- goldendict-enruen-content (optional)
- myip-git (optional)
- stardict-full-eng-rus (optional)
- stardict-full-rus-eng (optional)
- stardict-indic-update
- translater-git (optional)
Sources (2)
MikeWalrus commented on 2024-06-28 10:57 (UTC)
MikeWalrus commented on 2024-06-28 08:28 (UTC)
I'm working on a patch to build the master branch with ffmpeg 7.0. After that I'll backport that patch to this version.
nick-tropin commented on 2024-06-27 10:04 (UTC)
I had troubles compiling the package with ffmpeg v7.x. Yet there is ffmpeg4.4 that should be used during compilation. To use v4.4 instead of what defined in PKGBUILD I applied the following commands, just copy-paste them when you're in your goldendict build directory
1) Change dependencies in PKGBUILD and .SRCINFO
cat <<'EOF' | patch -p1
diff --git a/.SRCINFO b/.SRCINFO
index ce72b4a..e35d50f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,7 +8,7 @@ pkgbase = goldendict
arch = x86_64
license = GPL3
depends = bzip2
- depends = ffmpeg
+ depends = ffmpeg4.4
depends = gcc-libs
depends = glibc
depends = hunspell
diff --git a/PKGBUILD b/PKGBUILD
index 440a198..5d3fe11 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,7 @@ url="https://github.com/${pkgname}/${pkgname}"
license=('GPL3')
depends=(
'bzip2'
- 'ffmpeg'
+ 'ffmpeg4.4'
'gcc-libs'
'glibc'
'hunspell'
@@ -46,6 +46,7 @@ prepare() {
echo "QMAKE_CXXFLAGS_RELEASE = ${CFLAGS}" >> goldendict.pro
echo "QMAKE_CFLAGS_RELEASE = ${CXXFLAGS}" >> goldendict.pro
sed -i '/VERSION/ s/+git//' goldendict.pro
+ patch -p1 -i ${srcdir}/../ffmpeg.patch
}
build(){
EOF
2) Patch the project file to use older version of ffmpeg
cat >ffmpeg.patch <<'EOF'
diff --git a/ffmpegaudio.cc b/ffmpegaudio.cc
index a97d6dc..bb0729c 100644
--- a/ffmpegaudio.cc
+++ b/ffmpegaudio.cc
@@ -16,10 +16,10 @@
#include <ao/ao.h>
extern "C" {
-#include <libavcodec/avcodec.h>
-#include <libavformat/avformat.h>
-#include <libavutil/avutil.h>
-#include "libswresample/swresample.h"
+#include <ffmpeg4.4/libavcodec/avcodec.h>
+#include <ffmpeg4.4/libavformat/avformat.h>
+#include <ffmpeg4.4/libavutil/avutil.h>
+#include "ffmpeg4.4/libswresample/swresample.h"
}
#include <QString>
diff --git a/goldendict.pro b/goldendict.pro
index 00328d1..2b00618 100644
--- a/goldendict.pro
+++ b/goldendict.pro
@@ -28,6 +28,12 @@ CONFIG( release, debug|release ) {
# DEPENDPATH += . generators
INCLUDEPATH += .
+INCLUDEPATH += /usr/include/ffmpeg4.4
+
+LIBS += -L/usr/lib/ffmpeg4.4 \
+ -lavcodec -lavdevice -lavfilter -lavformat -lavutil \
+ -lswresample -lswscale -lpostproc
+
QT += core \
gui \
EOF
bergentroll commented on 2024-06-27 08:19 (UTC) (edited on 2024-06-27 08:20 (UTC) by bergentroll)
@TheExplorer, yes, build with ffmpeg4.4
seems OK. It requires also export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig/'
in beginning of the build()
.
Possibly a good idea to make ffmpeg4.4
an optional dependency since there is at least Qt Multimedia built-in player in settings. May be check [ ! -d '/usr/lib/ffmpeg4.4/pkgconfig/' ]
to set 'CONFIG+=no_ffmpeg_player'
.
TheExplorer commented on 2024-06-27 07:19 (UTC)
@bergentroll I guess you can substitute ffmpeg
with ffmpeg4.4
in 'depends' section without dropping built-in audio players. Can you try this please and let us know?
bergentroll commented on 2024-06-26 16:04 (UTC)
The package has build error with current ffmpeg
7.0.*
. It is possible to go forward dropping built-in audio players (which are depends on ffmpeg
). Just add 'CONFIG+=no_ffmpeg_player'
after 'CONFIG+=zim_support' \
.
Vitrum-cnkj34kr8 commented on 2023-12-25 17:11 (UTC) (edited on 2023-12-25 17:13 (UTC) by Vitrum-cnkj34kr8)
Pre-compiled files of goldendict
and qt5-webkit
can be downloaded here (from this comment)
sayonalion commented on 2023-12-22 06:30 (UTC)
@MikeWalrus @TheExplorer +1 vedgy's webengine branch seems to be working fine.
TheExplorer commented on 2023-12-21 15:40 (UTC) (edited on 2023-12-21 15:40 (UTC) by TheExplorer)
@MikeWalrus Thanks, man! Compiled and running already. Seems like everything is OK. Phew, you saved me from a real headache with qt5-webkit and constant icu lib updates.
Pinned Comments
MikeWalrus commented on 2023-12-21 14:24 (UTC)
@TheExplorer I recommend vedgy’s webengine branch if you don’t want to build qt5-webKit, before it’s merged at least.