Skip to content

Instantly share code, notes, and snippets.

@ilius
Created December 15, 2020 17:18
Show Gist options
  • Save ilius/0fef65b0512e1f8fa7c2d258be98c515 to your computer and use it in GitHub Desktop.
Save ilius/0fef65b0512e1f8fa7c2d258be98c515 to your computer and use it in GitHub Desktop.
Build GoldenDict with Qt on Debian
#!/bin/bash
set -e
# Debian:
echo 'deb http://ppa.launchpad.net/rock-core/qt4/ubuntu focal main
deb-src http://ppa.launchpad.net/rock-core/qt4/ubuntu focal main' > /etc/apt/sources.list.d/qt4.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78CB407D3E3D8F94
sudo apt-get update
sudo apt-get install --yes libqt4-dev qt4-qtconfig qt4-qmake libqt4-dev libqtwebkit-dev git pkg-config build-essential libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev libxtst-dev liblzo2-dev libbz2-dev libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev
if [ ! -d ~/goldendict ] ; then
git clone https://github.com/goldendict/goldendict ~/goldendict
fi
cd ~/goldendict
/usr/lib/x86_64-linux-gnu/qt4/bin/qmake
make
@rezaqoli
Copy link

Can you guide me how can I build for Ubuntu 22.04 Jammy fish with this .sh file ? I built it without error but I couldn't run it.
thanks in Advance for your work with solving issue by compiling in different version of qt

@ilius
Copy link
Author

ilius commented Oct 10, 2023

This worked for me 3 years ago.
But I don't think you can use qt4 easily in any recent Linux distro releases.

@rezaqoli
Copy link

Thanks for the response .I found an alternative solution with qt6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment