rschroll / beru

The Basic Epub Reader for Ubuntu
http://rschroll.github.io/beru/
GNU General Public License v3.0
25 stars 12 forks source link

Missing dependencies when installing on Ubuntu desktp[ 14.04 #67

Closed stuartlangridge closed 10 years ago

stuartlangridge commented 10 years ago

After sudo add-apt-repository ppa:rschroll/beru; sudo apt-get update; sudo apt-get install beru (yay!) I get:

$ beru
WARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release.
WARNING: The experimental API will change from version to version, or even be removed. You have been warned!
file:///usr/share/beru/ui/main.qml:54 Type BookPage unavailable
file:///usr/share/beru/ui/BookPage.qml:331 Type TitlelessDialog unavailable
file:///usr/share/beru/ui/components/TitlelessDialog.qml:18 module "Ubuntu.Components" version 1.1 is not installed

I suspect the problem is the last line there. Not sure what I need to install to make it work, and in particular since this is a deb, I shouldn't have to install anything else because the Beru deb should depend on whatever it is.

rschroll commented 10 years ago

What release are you running? Have you installed the SDK team PPA?

If you don't mind, try editing the TitlelessDialog.qml file to import Ubuntu.Components 1.0, or even 0.1. I don't think there's any reason it needs the more current versions; 1.1 was probably just the version I copied it from.

stuartlangridge commented 10 years ago

I'm running 14.04 (thought I'd said that, sorry!). I am... not sure whether I have the SDK team PPA.

TitlelessDialog already does use 0.1:

$ grep Ubuntu.Components /usr/share/beru/ui/BookPage.qml
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1
import Ubuntu.Components.Popups 0.1

...so I do not understand the error message complaining about 1.1...

randy-jr-olive commented 10 years ago

If you do the following:

grep Ubuntu.Components /usr/share/beru/ui/components/TitlelessDialog.qml

you get:

import Ubuntu.Components 1.1 <----
import Ubuntu.Components.Popups 1.0
    \inqmlmodule Ubuntu.Components.Popups 1.0
        import Ubuntu.Components 1.1  <----
        import Ubuntu.Components.Popups 1.0

components are being imported here as 1.1 version.

rschroll commented 10 years ago

Yeah, TitlelessDialog is a component we provide, to work around a bug in the default Dialog component. I made it by altering the Dialog.qml file provided by the SDK team PPA. But the only difference between it and the version provided by the default 14.04 is the version numbers of the imports. Switch them both to 0.1, and it should work.

stuartlangridge commented 10 years ago

Doh, I was grepping Bookpage instead because I'm dim. I can confirm that changing the imports for Ubuntu.Components and Ubuntu.Components.Popups to both be version 0.1 in TitlelessDialog.qml fixes the problem and Beru runs fine.

rschroll commented 10 years ago

Great! I think I've messed up the translations; I'll see about fixing that as well and getting another beta out.