rschroll / beru

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

can't install from ppa on Trusty #41

Closed axfelix closed 10 years ago

axfelix commented 10 years ago

cites missing libqt5core5 package; not available in other suggested SDK PPA. libqt5core5a is installed and apt seems to think it replaces libqt5core5.

rschroll commented 10 years ago

There's a new version in the PPA that should fix this.

It looks like trusty renamed libqt5core5 to libqt5core5a (and I think we can all agree that this is a significant improvement) sometime after I published the previous version. Therefore, it still had the old name. I've pushed a new version that's completely identical, but this time it was build against the new name, so it should install.

axfelix commented 10 years ago

Thanks! It installed now, but when trying to launch, I get:

qmlscene: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmlscene': No such file or directory

For the record, I didn't have qmlscene installed previously, and I tried installing it after this, but it gets put in /usr/bin and Beru doesn't seem to be able to find it there (if it fact it's a necessary dep).

rschroll commented 10 years ago

Hrm ... Do you have Qt4 installed, by chance? Apparently Qt makes the same binaries do double duty, instead of providing a qmlscene4 and qmlscene5. I'm guessing Qt4 is your default, so it's looking for that version of qmlscene.

Can you try editing /usr/share/beru/beru and prefix the last line with "QT_SELECT=5 "? That is, the whole file should be:

!/bin/bash

DIR="$( dirname $( readlink -f "${BASH_SOURCE[0]}" ) )" QT_SELECT=5 qmlscene -I "$DIR" "$DIR/ui/main.qml" --appargs="$*"

Please let me know if that works. If not, there's a few other things to try.

axfelix commented 10 years ago

That worked! I get the following output when running from terminal, but you're probably aware of it already:

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!

unity::action::ActionManager::ActionManager(QObject*): Could not determine application identifier. HUD will not work properly. Provide your application identifier in $APP_ID environment variable. file:///usr/share/beru/ui/BookPage.qml:46: TypeError: Cannot call method 'clear' of undefined

\ (qmlscene:19208): WARNING **: Unable to register app: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid application ID

rschroll commented 10 years ago

Good to hear! I'll try to push out a new version in a day or two with this and some other fixes that have piled up.

There are a lot of warning messages, I know. QML likes to spit out so many that are so vague that I've taken to ignoring them all. That's probably not a good idea in the end, but so far so good.