Changeset 95abdf87


Ignore:
Timestamp:
04/27/2023 01:53:28 PM (12 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
820262d8
Parents:
bc7af21
Message:

Separate gtk4 and gtk3 instructions in webkigtk

The present status with -DUSE_GTK4=[ON or OFF] cannot be
parsed meaningfully by jhalfs, and cmake does not fails
with this value of the parameter (!). So even for
people using copy-paste blindly, the failure occurs much later and has
no relation with the initial error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/webkitgtk.xml

    rbc7af21 r95abdf87  
    152152      <para>
    153153        This package allows building with either GTK-3 or GTK-4, but not both
    154         in the same build. To build the GTK-4 version for packages such as
    155         Epiphany, make sure to set -DUSE_GTK4=ON. For other packages, such as
    156         Balsa or Evolution, the GTK-3 version is required, so set
    157         -DUSE_GTK4=OFF if you want to build this package to use those
    158         applications. Both versions can be installed on the same system.
     154        in the same build. The GTK-4 version is needed for packages such as
     155        <xref linkend="epiphany"/>. Other packages, such as
     156        <xref linkend="balsa"/> or <xref linkend="evolution"/>, require the
     157        GTK-3 version. Both versions can be installed side by side on the
     158        same system. We give build instructions for both cases below, but
     159        the only difference is the setting of <command>-DUSE_GTK4</command>
    159160      </para>
    160161    </important>
    161162
    162163    <para>
    163       Install <application>WebKitGTK</application> by running the
    164       following commands:
     164      If you want to install the GTK+-3 version of
     165      <application>WebKitGTK</application>, run the following commands:
    165166    </para>
    166167
     
    178179      -DENABLE_DOCUMENTATION=OFF  \
    179180      -DUSE_WOFF2=OFF             \
    180       -DUSE_GTK4=[ON or OFF]      \
     181      -DUSE_GTK4=OFF              \
    181182      -DUSE_WPE_RENDERER=ON       \
    182183      -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
     
    197198      -DENABLE_DOCUMENTATION=OFF  \
    198199      -DUSE_WOFF2=OFF             \
    199       -DUSE_GTK4=[ON or OFF]      \
     200      -DUSE_GTK4=OFF              \
    200201      -DUSE_WPE_RENDERER=ON       \
    201202      -DENABLE_JOURNALD_LOG=OFF   \
     
    242243install -vm644  ../Documentation/webkit2gtk-web-extension-4.1/* \
    243244                /usr/share/gtk-doc/html/webkit2gtk-web-extension-4.1</userinput></screen>
     245
     246    <para>
     247      If you want to install the GTK4 version of
     248      <application>WebKitGTK</application>, run the following commands:
     249    </para>
     250
     251<screen revision="systemd"><userinput>rm -rf * .[^.]* &amp;&amp;
     252
     253cmake -DCMAKE_BUILD_TYPE=Release  \
     254      -DCMAKE_INSTALL_PREFIX=/usr \
     255      -DCMAKE_SKIP_RPATH=ON       \
     256      -DPORT=GTK                  \
     257      -DLIB_INSTALL_DIR=/usr/lib  \
     258      -DUSE_LIBHYPHEN=OFF         \
     259      -DENABLE_GAMEPAD=OFF        \
     260      -DENABLE_MINIBROWSER=ON     \
     261      -DENABLE_DOCUMENTATION=OFF  \
     262      -DUSE_WOFF2=OFF             \
     263      -DUSE_GTK4=ON               \
     264      -DUSE_WPE_RENDERER=ON       \
     265      -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
     266      -Wno-dev -G Ninja ..        &amp;&amp;
     267ninja</userinput></screen>
     268
     269<screen revision="sysv"><userinput>rm -rf * .[^.]* &amp;&amp;
     270
     271cmake -DCMAKE_BUILD_TYPE=Release  \
     272      -DCMAKE_INSTALL_PREFIX=/usr \
     273      -DCMAKE_SKIP_RPATH=ON       \
     274      -DPORT=GTK                  \
     275      -DLIB_INSTALL_DIR=/usr/lib  \
     276      -DUSE_LIBHYPHEN=OFF         \
     277      -DENABLE_GAMEPAD=OFF        \
     278      -DENABLE_MINIBROWSER=ON     \
     279      -DENABLE_DOCUMENTATION=OFF  \
     280      -DUSE_WOFF2=OFF             \
     281      -DUSE_GTK4=ON               \
     282      -DUSE_WPE_RENDERER=ON       \
     283      -DENABLE_JOURNALD_LOG=OFF   \
     284      -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
     285      -Wno-dev -G Ninja ..        &amp;&amp;
     286ninja</userinput></screen>
     287
     288    <para>
     289      Now, as the <systemitem class="username">root</systemitem> user:
     290    </para>
     291
     292<screen role="root"><userinput>ninja install</userinput></screen>
     293
    244294  </sect2>
    245295
Note: See TracChangeset for help on using the changeset viewer.