HVML / xGUI-Pro

xGUI (the X Graphics User Interface) Pro is a modern, cross-platform, and advanced HVML renderer which is based on tailored WebKit.
GNU General Public License v3.0
54 stars 10 forks source link

cmake build error on osx #10

Open evilbinary opened 1 year ago

evilbinary commented 1 year ago
cmake -DCMAKE_BUILD_TYPE=Debug -DPORT=GTK -B build && cmake --build build

-- Check size of socklen_t - failed
-- Check size of mode_t
-- Check size of mode_t - done
-- Check size of int
-- Check size of int - done
-- Found GLIB: /usr/local/Cellar/glib/2.76.2/include/glib-2.0;/usr/local/Cellar/glib/2.76.2/lib/glib-2.0/include (found suitable version "2.76.2", minimum required is "2.44.0") 
-- Found PurC: /usr/local/lib/libpurc.dylib (found suitable version "0.9.10", minimum required is "0.9.10") 
-- Found DOMRuler: /usr/local/lib/libDOMRuler.dylib (Required is at least version "0.9.10") 
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR) 
-- Checking for module 'gtk+-3.0'
--   Found gtk+-3.0, version 3.24.37
-- Checking for module 'gtk+-unix-print-3.0'
--   Found gtk+-unix-print-3.0, version 3.24.37
-- Found GTK: 3.24.37 (Required is at least version "3.22.0") 
-- Could NOT find LibSoup: (Required is at least version "2.54.0") (found /usr/local/include/libsoup-3.0/libsoup)
CMake Error at source/cmake/OptionsGTK.cmake:71 (message):
  libsoup is required.
Call Stack (most recent call first):
  source/cmake/GlobalCommon.cmake:57 (include)
  CMakeLists.txt:135 (include)

-- Configuring incomplete, errors occurred!
VincentWei commented 1 year ago

As it prompted, LibSoup 2.0 (not 3.0) needed. There is a large gap between LibSoup 2 and LibSoup 3, that is, we can not use LibSoup 3 to substitute the LibSoup 2 in the source compliant way.

evilbinary commented 1 year ago

i also have libsoup 2.0 ,but still have problem and the document says

1) When using Gtk3 and Soup2 (Ubuntu 20.04):

$ mkdir -p WebKitBuild/Release && cd WebKitBuild/Release
$ cmake ../.. -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_GAMEPAD=OFF -DENABLE_INTROSPECTION=OFF -DUSE_SOUP2=ON -DUSE_WPE_RENDERER=OFF -DUSE_LCMS=OFF -GNinja
$ ninja -j2
$ sudo ninja install

2) When using Gtk4 and Soup3 (Ubuntu 22.04):

$ mkdir -p WebKitBuild/Release && cd WebKitBuild/Release
$ cmake ../.. -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_GAMEPAD=OFF -DENABLE_INTROSPECTION=OFF -DUSE_SOUP3=ON -DUSE_WPE_RENDERER=OFF -DUSE_LCMS=OFF -GNinja
$ ninja -j2
$ sudo ninja install

meaning that it can support libsoup3 also.

VincentWei commented 1 year ago

We use LibSoup 3 with Gtk 4. However, it is not tested.