I didn’t try to install the required packages before trying to build the program itself, as the instructions are for Ubuntu.
I tried running qmake-qt4, the command was not found.
Then I tried running qmake, the output is that there is no g++ compiler.
I looked it up on the internet, the advice I found is to install essential development tools. For OpenSuse it seems to need sudo zypper in -t pattern devel_basis command. I run it and here is what I got:
Problem: pattern:devel_basis-20170319-lp150.2.6.x86_64 requires patterns-devel-base-devel_basis, but this requirement cannot be provided
not installable providers: patterns-devel-base-devel_basis-20170319-lp150.2.6.x86_64[repo-oss]
Solution 1: downgrade of libncurses6-6.1-lp150.4.3.1.x86_64 to libncurses6-6.1-lp150.3.14.x86_64
Solution 2: do not install pattern:devel_basis-20170319-lp150.2.6.x86_64
Solution 3: break pattern:devel_basis-20170319-lp150.2.6.x86_64 by ignoring some of its dependencies
How come there is no the package in the repos I have?
erlangen:~ # zypper in -t pattern devel_basis
Loading repository data...
Reading installed packages...
'pattern:devel_basis' is already installed.
No update candidate for 'pattern:devel_basis-20170319-8.4.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
erlangen:~ #
You may consider tidying up your list of repos and retry.
Ok I turned on some disabled repos and it worked! Now I was able to use qmake.
Although I am still not able to properly build Goldendict.
(base) aleksandr@aleksandr-pc:~/goldendict> qmake
Project MESSAGE: Install Prefix is: /usr/local
Project ERROR: vorbisfile development package not found
I started installing all the packages it requires to compile. Some of them were installed smoothly, for some of those I had to change vendor.
I got stuck on error Project ERROR: Unknown module(s) in QT: webkitwidgets. I list all the steps I’ve undergone below:
(base) aleksandr@aleksandr-pc:~> sudo zypper in libvorbis-devel
OK
(base) aleksandr@aleksandr-pc:~/goldendict> qmake
Project MESSAGE: Install Prefix is: /usr/local
Project ERROR: hunspell development package not found
(base) aleksandr@aleksandr-pc:~/goldendict> sudo zypper in hunspell-devel
OK
(base) aleksandr@aleksandr-pc:~/goldendict> qmake
Project MESSAGE: Install Prefix is: /usr/local
Project ERROR: ao development package not found
(base) aleksandr@aleksandr-pc:~/goldendict> sudo zypper in libao-devel
OK
(base) aleksandr@aleksandr-pc:~/goldendict> qmake
Project MESSAGE: Install Prefix is: /usr/local
Project ERROR: libavutil development package not found
(base) aleksandr@aleksandr-pc:~/goldendict> sudo zypper in libavutil-devel
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: libavutil-devel-3.4.2-lp150.2.1.x86_64 requires libavutil55 = 3.4.2-lp150.2.1, but this requirement cannot be provided
not installable providers: libavutil55-3.4.2-lp150.2.1.x86_64[repo-oss]
Solution 1: Following actions will be done:
downgrade of libavutil55-3.4.4-lp150.10.4.x86_64 to libavutil55-3.4.2-lp150.2.1.x86_64
install libavutil55-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
downgrade of libswscale4-3.4.4-lp150.10.4.x86_64 to libswscale4-3.4.2-lp150.2.1.x86_64
install libswscale4-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
downgrade of libswresample2-3.4.4-lp150.10.4.x86_64 to libswresample2-3.4.2-lp150.2.1.x86_64
install libswresample2-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
downgrade of libpostproc54-3.4.4-lp150.10.4.x86_64 to libpostproc54-3.4.2-lp150.2.1.x86_64
install libpostproc54-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
downgrade of libavresample3-3.4.4-lp150.10.4.x86_64 to libavresample3-3.4.2-lp150.2.1.x86_64
install libavresample3-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
downgrade of libavformat57-3.4.4-lp150.10.4.x86_64 to libavformat57-3.4.2-lp150.2.1.x86_64
install libavformat57-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
downgrade of libavfilter6-3.4.4-lp150.10.4.x86_64 to libavfilter6-3.4.2-lp150.2.1.x86_64
install libavfilter6-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
downgrade of libavdevice57-3.4.4-lp150.10.4.x86_64 to libavdevice57-3.4.2-lp150.2.1.x86_64
install libavdevice57-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
downgrade of libavcodec57-3.4.4-lp150.10.4.x86_64 to libavcodec57-3.4.2-lp150.2.1.x86_64
install libavcodec57-3.4.2-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
deinstallation of ffmpeg-3-3.4.4-lp150.10.4.x86_64
deinstallation of vlc-codecs-3.0.2-lp150.7.3.x86_64
downgrade of gstreamer-plugins-libav-1.12.5-lp150.3.7.x86_64 to gstreamer-plugins-libav-1.12.5-lp150.2.1.x86_64
install gstreamer-plugins-libav-1.12.5-lp150.2.1.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
Solution 2: do not install libavutil-devel-3.4.2-lp150.2.1.x86_64
Solution 3: break libavutil-devel-3.4.2-lp150.2.1.x86_64 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/3/c] (c): 1
Resolving dependencies...
Resolving package dependencies...
The following 2 NEW packages are going to be installed:
ffmpeg libavutil-devel
The following 2 packages are going to be REMOVED:
ffmpeg-3 vlc-codecs
The following 10 packages are going to be downgraded:
gstreamer-plugins-libav libavcodec57 libavdevice57 libavfilter6 libavformat57 libavresample3 libavutil55 libpostproc54 libswresample2 libswscale4
The following 10 packages are going to change vendor:
gstreamer-plugins-libav http://packman.links2linux.de -> openSUSE
libavcodec57 http://packman.links2linux.de -> openSUSE
libavdevice57 http://packman.links2linux.de -> openSUSE
libavfilter6 http://packman.links2linux.de -> openSUSE
libavformat57 http://packman.links2linux.de -> openSUSE
libavresample3 http://packman.links2linux.de -> openSUSE
libavutil55 http://packman.links2linux.de -> openSUSE
libpostproc54 http://packman.links2linux.de -> openSUSE
libswresample2 http://packman.links2linux.de -> openSUSE
libswscale4 http://packman.links2linux.de -> openSUSE
10 packages to downgrade, 2 new, 2 to remove, 10 to change vendor.
Overall download size: 5.5 MiB. Already cached: 0 B. After the operation, 6.4 MiB will be freed.
Continue? [y/n/...? shows all options] (y): y
OK
(base) aleksandr@aleksandr-pc:~/goldendict> qmake
Project MESSAGE: Install Prefix is: /usr/local
Project ERROR: libavformat development package not found
(base) aleksandr@aleksandr-pc:~/goldendict> sudo zypper in libavformat-devel
OK
(base) aleksandr@aleksandr-pc:~/goldendict> qmake
Project MESSAGE: Install Prefix is: /usr/local
Project ERROR: Unknown module(s) in QT: webkitwidgets
(base) aleksandr@aleksandr-pc:~/goldendict> sudo zypper in libQt5WebKitWidgets-devel
OK
(base) aleksandr@aleksandr-pc:~/goldendict> qmake
Project MESSAGE: Install Prefix is: /usr/local
Project ERROR: Unknown module(s) in QT: webkitwidgets
As I expected, my I couldn’t playback videos after switching the vendors for video packages, as I showed above. I returned my original ones from packman repository