xGUI-Pro icon indicating copy to clipboard operation
xGUI-Pro copied to clipboard

cmake build error on osx

Open evilbinary opened this issue 2 years ago • 3 comments

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!

evilbinary avatar Apr 30 '23 04:04 evilbinary

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.

VincentWei avatar May 04 '23 05:05 VincentWei

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
  1. 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.

evilbinary avatar May 04 '23 07:05 evilbinary

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

VincentWei avatar May 04 '23 07:05 VincentWei