martahilmar / gnome-books

Google Summer of Code project for GNOME
Other
51 stars 13 forks source link

No package 'webkit2gtk-3.0' found #5

Open Vistaus opened 9 years ago

Vistaus commented 9 years ago

The package is installed and all other requirements as well but autogen still doesn't find the package :( I'm using GNOME Shell 3.14 on hAntergos (based on Arch Linux). Any idea how to solve this?

Vistaus commented 9 years ago

bump

martahilmar commented 9 years ago

Hi, Do you also have a development packages installed (libwebkit2gtk-3.0-dev, libgtk-3-dev)? You could try adjusting PKG_CONFIG_PATH environment variable.

Vistaus commented 9 years ago

The development files are automatically included in the main webkit2gtk and libgtk3 packages on Arch.

ghost commented 9 years ago

I managed to create a PKGBUILD that worked me in gnome 3.12. I proposed to Marta create the package in AUR, but to coincide with the upgrade to 3.14, has ceased to be compiled and the installation is interrupted.

I put the link to my AUR repo, if you want to resume the PKGBUILD and among all get to be usable again.

https://github.com/ValHue/AUR-PKGBUILDs/tree/master/gnome-books-git

Vistaus commented 9 years ago

Thank you so much @ValHue ! That PKGBUILD works fine on 3.14 on my Antergos. But it won't load my books though:

vistaus@heimenssp3:~/OtherApps/AUR-PKGBUILDs/gnome-books-git$ gnome-books

(gnome-books:21469): GLib-GObject-WARNING **: The property GSettings:schema is deprecated and shouldn't be used anymore. It will be removed in a future version.

(gnome-books:21469): Gtk-WARNING **: Theme directory 48x48/app of theme Numix-Square has no size field

webkit_load_started: 'book:' Path:
Failed to load book:! webkit_load_finished: ''

(gnome-books:21469): Gtk-CRITICAL **: gtk_tree_model_foreach: assertion 'GTK_IS_TREE_MODEL (model)' failed

(gnome-books:21469): Gtk-CRITICAL **: gtk_tree_model_foreach: assertion 'GTK_IS_TREE_MODEL (model)' failed ^C vistaus@heimenssp3:~/OtherApps/AUR-PKGBUILDs/gnome-books-git$

I did create a folder Books and put the EPUB in it.

martahilmar commented 9 years ago

Do you have any books in the folder $HOME/Books? As a first solution that was hard coded, be it's going to be more dynamic, and easier for the user in the future.

There are also some issues with the backend (epub library) in opening/reading some epub files. So a lot more is to be done, to make it stable and working solution.

Vistaus commented 9 years ago

Yes, like I said: I do have a book .epub in $HOME/Books.

ghost commented 9 years ago

To me the same thing happened.

Extracts the contents of epub file and renames the cover.jpg file by the same filename "book".epub file. Paste it with book.epub and removes the remaining contents. You'll have something like this:

XXXX.epub XXXX.jpg

You load it. But it throws a lot of mistakes and I can not read anything.

Webkit_load_started: 'book:' Path:
Failed to load book:! webkit_load_finished: ''

(gnome-books:23917): Gtk-CRITICAL **: gtk_tree_model_foreach: assertion 'GTK_IS_TREE_MODEL (model)' failed undefined:1:16: CONSOLE ERROR ReferenceError: Can't find variable: ePub undefined:1:32: CONSOLE ERROR TypeError: null is not an object (evaluating 'document.getElementById('area').innerHTML = ''') undefined:1:5: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'Book.getToc') undefined:1:16: CONSOLE ERROR ReferenceError: Can't find variable: ePub undefined:1:32: CONSOLE ERROR TypeError: null is not an object (evaluating 'document.getElementById('area').innerHTML = ''') undefined:1:5: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'Book.getToc')

(gnome-books:23917): Gtk-CRITICAL **: gtk_tree_model_foreach: assertion 'GTK_IS_TREE_MODEL (model)' failed undefined:1:16: CONSOLE ERROR ReferenceError: Can't find variable: ePub undefined:1:32: CONSOLE ERROR TypeError: null is not an object (evaluating 'document.getElementById('area').innerHTML = ''') undefined:1:5: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'Book.getToc') undefined:1:5: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'Book.ready') undefined:1:5: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'Book.ready') undefined:1:6: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'Book.pagination')

\ (gnome-books:23917): WARNING **: Error running javascript: An exception was raised in JavaScript


I have improved the PKGBUILD, as soon as you can read something, I will publish it in the AUR repository for users of Arch and its derivatives help me to improve it.

\ Sorry for my english, I'm Spanish and use google translator to avoid mistakes, but I think I do not understand. :(

almereyda commented 9 years ago

Building on Fedora 21, I also stumbled across the dependency on webkit2gtk-3, which is not supported in this GNOME based distribution anymore and seems to have been deprecated by webkitgtk4. Therefore I am also unable to compile.

cobalamin commented 9 years ago

Same here as @almereyda :(

martahilmar commented 9 years ago

Thanks for the reports. I will try to update it, so it can be run on Fedora too.

mcepl commented 6 years ago

@martamilakovic this seems to be fixed by https://github.com/martamilakovic/gnome-books/pull/12 (at least for me on RHEL-7 with Gnome 3.22). Could you merge it please?