ldoce5viewer icon indicating copy to clipboard operation
ldoce5viewer copied to clipboard

need to run '$ make' in order for the program to work

Open hadisotudeh opened this issue 8 years ago • 7 comments

Hi,

I get the following error when I run ldoce5viewer in a terminal. "need to run '$ make' in order for the program to work" I run make, but nothing happens. Any idea?

hadisotudeh avatar Feb 17 '17 21:02 hadisotudeh

Same here. After updating my system which is a Linux Manjaro.

fhdhsni avatar Feb 18 '17 16:02 fhdhsni

This is my pacman.log for aforementioned update. I think qts are the culprit. I wish I knew which one so I can downgrade.

fhdhsni avatar Feb 18 '17 16:02 fhdhsni

Same problem here

amidmm avatar Mar 27 '17 12:03 amidmm

Same with Debian 9. Environment around Qt4 with python2 are changed from Debian8. No WebKit and Phonon module included in PyQt4. They are not available in package manager.

To avoid conflict with running system, I used virtualenv and built the whole PyQt4 there. There were no need to change the version of Python (2.7.13) from distro default.

My solution is:

  • install originally required distro packages (pyqt4-dev-tools, python-gst0.10, gstreamer0.10-plugins-good, gstreamer0.10-plugins-ugly)
  • Install additional development distro packages (system wide)
    In Debian, this is done by
    #apt-get build-dep libqtwebkit-dev libphonon-dev
  • create virtualenv
    $virtualenv <your directory>
  • install SIP (4.16.4) and Qt4 (4.12.1)
    Versions are matched with Debian oldstable (jessie).
    Download links are: https://sourceforge.net/projects/pyqt/files/PyQt4/ and https://sourceforge.net/projects/pyqt/files/sip/
    Maybe the latest version should work, but I didn't examine it. I followed this article and succeeded. How to install SIP and PyQt on a virtual environment?
  • install other prerequisites using pip in the virtual environment
    $pip install lxml whoosh==2.5.7

Then, make and install ldoce5viewer in the virtual environment. $make build
$make install
Note that you should not use root privilege. make install fails because copying .desktop file into hardcoded system directory. You can safely ignore it.

Then run ldoce5viewer in the environment, it worked fine.

mktndn avatar Jul 24 '17 10:07 mktndn

Same with ubuntu 18.04. And mktndn's solution does not work in ubuntu 18.04. Any other suggestion for ubuntu 18.04? Thank you.

mochechan avatar May 16 '18 01:05 mochechan

As a workaround you can use wine with the windows installer.

For Ubuntu:

sudo apt-get install wine-stable \
&& wget https://forward-backward.co.jp/ldoce5viewer/static/packages/ldoce5viewer-setup-2013.03.24.exe \
&& wine ldoce5viewer-setup-2013.03.24.exe

Then enjoy:

image

First page after install

mahab339 avatar Oct 24 '18 09:10 mahab339

Just go for a fork of this repo ported to PyQt5, which works like a charm with Debian 9 Stretch and possibly other newer distros as well:

https://github.com/purboo/ldoce5viewer-pyqt5

For that one you will need these:

# apt install pyqt5-dev-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly python3-pyqt5.qtmultimedia python3-pyqt5.qtwebkit libqt5multimedia5-plugins

and:

# pip3 install whoosh==2.5.7

then:

$ cd ldoce5viewer-pyqt5
$ make
$ python3 ./ldoce5viewer.py

mike4420 avatar Mar 31 '19 22:03 mike4420