You are not logged in.

#1 2021-01-08 19:53:16

amaro
Member
From: 5.4.2-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 277

[SOLVED] apvlv fatal error webkit2/webkit2.h No such file or directory

Hello everybody,

I wanted to install 'apvlv' from AUR but got this

[  5%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvCmds.cc.o
In file included from /tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvView.h:33,
                 from /tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvCmds.cc:30:
/tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvDoc.h:37:10: fatal error: webkit2/webkit2.h: No such file or directory
   37 | #include <webkit2/webkit2.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/apvlv.dir/build.make:82: src/CMakeFiles/apvlv.dir/ApvlvCmds.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: src/CMakeFiles/apvlv.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build apvlv - makepkg exited with code: 4

Here is what the AUR page says about dependencies

webkit2gtk

So I checked the 'apvlv' page on 'GitHub' and it says

WebKit2GTK 4.0 or higher

4.0 or higher?

My system is updated and it says we only have version 2.30.4-3

# Qi webkit2gtk
Name            : webkit2gtk
Version         : 2.30.4-3
Description     : Web content engine for GTK
Architecture    : x86_64
URL             : https://webkitgtk.org

Any ideas are appreciated!

Thank you in advance!

Last edited by amaro (2021-01-09 09:44:22)

Offline

#2 2021-01-08 22:25:52

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,171

Re: [SOLVED] apvlv fatal error webkit2/webkit2.h No such file or directory

Builds fine here. Try to build using plain makepkg.

webkit2gtk 2.30.4-3 is fine.

Offline

#3 2021-01-08 23:17:41

amaro
Member
From: 5.4.2-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 277

Re: [SOLVED] apvlv fatal error webkit2/webkit2.h No such file or directory

Tried 'makepkg -si'. Similar result

-- Build files have been written to: /tmp/trizen-vb/apvlv/src/apvlv-0.2.0/build
[  5%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvCmds.cc.o
In file included from /tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvView.h:33,
                 from /tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvCmds.cc:30:
/tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvDoc.h:37:10: fatal error: webkit2/webkit2.h: No such file or directory
   37 | #include <webkit2/webkit2.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/apvlv.dir/build.make:82: src/CMakeFiles/apvlv.dir/ApvlvCmds.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: src/CMakeFiles/apvlv.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Downloaded the latest .tar.gz from the GitHub page.
Followed the instructions included in the archive. Similar output

# make
Scanning dependencies of target apvlv
[  5%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvCmds.cc.o
In file included from /home/vb/Downloads/e/apvlv-0.2.0/src/ApvlvView.h:33,
                 from /home/vb/Downloads/e/apvlv-0.2.0/src/ApvlvCmds.cc:30:
/home/vb/Downloads/e/apvlv-0.2.0/src/ApvlvDoc.h:37:10: fatal error: webkit2/webkit2.h: No such file or directory
   37 | #include <webkit2/webkit2.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/apvlv.dir/build.make:82: src/CMakeFiles/apvlv.dir/ApvlvCmds.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: src/CMakeFiles/apvlv.dir/all] Error 2
make: *** [Makefile:171: all] Error 2

Edit: Checked with 'locate'

locate webkit2.h
/usr/include/webkitgtk-1.0/webkit2/webkit2.h
/usr/include/webkitgtk-4.0/webkit2/webkit2.h

Last edited by amaro (2021-01-08 23:21:59)

Offline

#4 2021-01-08 23:47:54

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,171

Re: [SOLVED] apvlv fatal error webkit2/webkit2.h No such file or directory

Where does

/usr/include/webkitgtk-1.0/webkit2/webkit2.h

come from? i.e., what does

pacman -Qo /usr/include/webkitgtk-1.0/webkit2/webkit2.h

say?

I would guess you have some leftovers from an old installation, with a failed deinstallation involved.

Offline

#5 2021-01-08 23:51:44

amaro
Member
From: 5.4.2-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 277

Re: [SOLVED] apvlv fatal error webkit2/webkit2.h No such file or directory

pacman -Qo /usr/include/webkitgtk-1.0/webkit2/webkit2.h
/usr/include/webkitgtk-1.0/webkit2/webkit2.h is owned by webkitgtk2 3:2.4.11-17

It was required by rainlendar-lite

Qi webkitgtk2
Name            : webkitgtk2
Version         : 3:2.4.11-17
Description     : Legacy Web content engine for GTK+ 2
Architecture    : x86_64
URL             : https://webkitgtk.org/
Licenses        : custom
Groups          : None
Provides        : libwebkit=2.4.11
Depends On      : enchant>=2.2  geoclue2  gst-plugins-base-libs  gtk2  harfbuzz-icu  libgl  libsecret  libwebp  libxslt  libxt
Optional Deps   : gst-libav: nonfree media decoding [installed]
                  gst-plugins-base: free media decoding [installed]
                  gst-plugins-good: media decoding [installed]
Required By     : rainlendar-lite
Optional For    : None
Conflicts With  : libwebkit
Replaces        : libwebkit
Installed Size  : 42.11 MiB
Packager        : Unknown Packager
Build Date      : Mon 26 Aug 2019 12:59:31 PM EEST
Install Date    : Mon 26 Aug 2019 08:02:00 PM EEST
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None

Last edited by amaro (2021-01-08 23:54:00)

Offline

#6 2021-01-09 00:00:34

amaro
Member
From: 5.4.2-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 277

Re: [SOLVED] apvlv fatal error webkit2/webkit2.h No such file or directory

Uninstalled 'rainlendar-lite' and 'webkitgtk2'

Now there is only one version

locate webkit2.h
/usr/include/webkitgtk-4.0/webkit2/webkit2.h

Tried again 'makepkg -si'. Same output

In file included from /tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvView.h:33,
                 from /tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvCmds.cc:30:
/tmp/trizen-vb/apvlv/src/apvlv-0.2.0/src/ApvlvDoc.h:37:10: fatal error: webkit2/webkit2.h: No such file or directory
   37 | #include <webkit2/webkit2.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/apvlv.dir/build.make:82: src/CMakeFiles/apvlv.dir/ApvlvCmds.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: src/CMakeFiles/apvlv.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Offline

#7 2021-01-09 09:49:11

amaro
Member
From: 5.4.2-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 277

Re: [SOLVED] apvlv fatal error webkit2/webkit2.h No such file or directory

Decided to remove the old folder (that was downloaded from AUR prior the uninstallation of the old version of 'webkitgtk2'). Then gave it a new try. This time it worked.

Thank you, Stefan Husmann!

Last edited by amaro (2021-01-09 09:49:57)

Offline

Board footer

Powered by FluxBB