Package Details: looking-glass-git 2:B6.r51.g53525847-1

Git Clone URL: https://aur.archlinux.org/looking-glass-git.git (read-only, click to copy)
Package Base: looking-glass-git
Description: A client application for accessing the LookingGlass IVSHMEM device of a VM
Upstream URL: https://looking-glass.io/
Licenses: GPL2
Conflicts: looking-glass
Provides: looking-glass
Submitter: Omar007
Maintainer: Omar007
Last Packager: Omar007
Votes: 14
Popularity: 0.84
First Submitted: 2017-12-14 09:38 (UTC)
Last Updated: 2023-05-08 10:14 (UTC)

Dependencies (36)

Required by (0)

Sources (7)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

rku commented on 2021-08-16 09:20 (UTC) (edited on 2021-08-16 09:20 (UTC) by rku)

Package fails to build. I was told by looking-glass maintainers that in-source builds are not supported and that may be a reason.

[ 49%] Built target displayservers
make  -f renderers/EGL/CMakeFiles/renderer_EGL.dir/build.make renderers/EGL/CMakeFiles/renderer_EGL.dir/depend
make[2]: Entering directory '/home/rk/.cache/yay/looking-glass-git/src/looking-glass/client'
make[2]: Circular renderers/EGL/shader/splash_logo.vert <- renderers/EGL/shader/splash_logo.vert dependency dropped.
make[2]: Circular renderers/EGL/shader/basic.vert <- renderers/EGL/shader/basic.vert dependency dropped.
make[2]: Circular renderers/EGL/shader/cursor.vert <- renderers/EGL/shader/cursor.vert dependency dropped.
make[2]: Circular renderers/EGL/shader/cursor_mono.frag <- renderers/EGL/shader/cursor_mono.frag dependency dropped.
make[2]: Circular renderers/EGL/shader/cursor_rgb.frag <- renderers/EGL/shader/cursor_rgb.frag dependency dropped.
make[2]: Circular renderers/EGL/shader/damage.frag <- renderers/EGL/shader/damage.frag dependency dropped.
make[2]: Circular renderers/EGL/shader/damage.vert <- renderers/EGL/shader/damage.vert dependency dropped.
make[2]: Circular renderers/EGL/shader/desktop.vert <- renderers/EGL/shader/desktop.vert dependency dropped.
make[2]: Circular renderers/EGL/shader/desktop_rgb.frag <- renderers/EGL/shader/desktop_rgb.frag dependency dropped.
[ 49%] Creating #defines from /home/rk/.cache/yay/looking-glass-git/src/looking-glass/client/renderers/EGL/shader/desktop_rgb.frag
cd /home/rk/.cache/yay/looking-glass-git/src/looking-glass/client/renderers/EGL && grep ^#define /home/rk/.cache/yay/looking-glass-git/src/looking-glass/client/renderers/EGL/shader/desktop_rgb.frag > /home/rk/.cache/yay/looking-glass-git/src/looking-glass/client/renderers/EGL/shader/desktop_rgb.def.h
make[2]: *** [renderers/EGL/CMakeFiles/renderer_EGL.dir/build.make:218: renderers/EGL/shader/desktop_rgb.def.h] Error 1
make[2]: *** Deleting file 'renderers/EGL/shader/desktop_rgb.def.h'
make[2]: Leaving directory '/home/rk/.cache/yay/looking-glass-git/src/looking-glass/client'
make[1]: *** [CMakeFiles/Makefile2:566: renderers/EGL/CMakeFiles/renderer_EGL.dir/all] Error 2
make[1]: Leaving directory '/home/rk/.cache/yay/looking-glass-git/src/looking-glass/client'
make: *** [Makefile:136: all] Error 2

Netboy3 commented on 2021-07-23 12:16 (UTC)

You are correct. My bad.

Omar007 commented on 2021-07-20 09:02 (UTC) (edited on 2021-07-20 09:05 (UTC) by Omar007)

@Netboy3; I'm not pulling/building against master submodules or otherwise diverting those definitions to commits not specified by upstream. Each git repo defines the submodule version/commit being used. That means (at the time of writing) for looking-glass it's using cimgui@83f729b (a.k.a. cimgui 1.82), which in turn uses imgui@64aab84 (1.82 + 2 extra). This isn't functioning any differently from the submodules it had already; PureSpice and LGMP.

Netboy3 commented on 2021-07-20 01:57 (UTC)

Thx for adding the new cimgui/imgui dependency. Only thing you should consider is that the devs are currently building against version 1.82 of cimgui/imgui and you are pulling cimgui master which seems to be quite active and might cause LG builds to break or be inconsistent with the way the LG devs use it.

svenstaro commented on 2021-07-18 23:09 (UTC)

Working patch:

diff --git a/PKGBUILD b/PKGBUILD
index 8cf7662..5876f77 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=("${_pkgname}-git"
          "${_pkgname}-host-git"
          "obs-plugin-${_pkgname}-git")
 epoch=2
-pkgver=B3.r236.g118d9a0
+pkgver=B4.r56.ge4e1451
 pkgrel=1
 pkgdesc="An extremely low latency KVMFR (KVM FrameRelay) implementation for guests with VGA PCI Passthrough"
 url="https://looking-glass.io/"
@@ -17,8 +17,10 @@ makedepends=('cmake' 'git' 'fontconfig' 'spice-protocol' 'wayland-protocols'
              'libgl' 'libegl' 'libxss' 'libxi' 'libxinerama' 'obs-studio')
 source=("${_pkgname}::git+https://github.com/gnif/LookingGlass.git"
         "LGMP::git+https://github.com/gnif/LGMP.git"
-        "PureSpice::git+https://github.com/gnif/PureSpice.git")
+        "PureSpice::git+https://github.com/gnif/PureSpice.git"
+        "cimgui::git+https://github.com/cimgui/cimgui.git")
 sha512sums=('SKIP'
+            'SKIP'
             'SKIP'
             'SKIP')
 install="${pkgbase}.install"
@@ -36,7 +38,8 @@ prepare() {
    git submodule init
    git config submodule.repos/LGMP.url "${srcdir}/LGMP"
    git config submodule.repos/PureSpice.url "${srcdir}/PureSpice"
-   git submodule update
+   git config submodule.repos/cimgui.url "${srcdir}/cimgui"
+   git submodule update --init --recursive
 }

 build() {

Ghosthree3 commented on 2021-07-18 05:49 (UTC) (edited on 2021-07-18 23:08 (UTC) by svenstaro)

Latest commit(s) break build.

CMake Error at renderers/EGL/CMakeLists.txt:44 (add_library):
  Cannot find source file:

    /home/user/src/looking-glass-git/src/looking-glass/repos/cimgui/imgui/backends/imgui_impl_opengl3.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at renderers/OpenGL/CMakeLists.txt:9 (add_library):
  Cannot find source file:

    /home/user/src/looking-glass-git/src/looking-glass/repos/cimgui/imgui/backends/imgui_impl_opengl2.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at renderers/EGL/CMakeLists.txt:44 (add_library):
  No SOURCES given to target: renderer_EGL


CMake Error at renderers/OpenGL/CMakeLists.txt:9 (add_library):
  No SOURCES given to target: renderer_OpenGL


CMake Generate step failed.  Build files cannot be regenerated correctly.
==> ERROR: A failure occurred in build().

Builds successfully from --recursive cloned source independently.

Netboy3 commented on 2021-02-20 15:38 (UTC)

Dependency on glu was removed. Please see commit: https://github.com/gnif/LookingGlass/commit/2973319bff80bf1531265bdbec6707bdda3f40eb

xiretza commented on 2021-01-20 09:59 (UTC)

Now requires makedepends=('libxss') and depends=('libxss') in package_looking-glass-git(): https://github.com/gnif/LookingGlass/commit/8cb0cbb91d21f501d0c3ac367ba98ece284bd8e3

xiretza commented on 2021-01-17 16:39 (UTC)

requires makedepends=('wayland-protocols').

Netboy3 commented on 2020-08-07 16:32 (UTC)

Hi @Omar007. Now that the MinGW cross-compiler toolchain mingw-w64-gcc and all it's dependencies are available in the community repo, you might want to consider adding building the looking-glass Windows host executable to this package.