Package Details: scopehal-apps-git 0.0.e0dd8c5a-1

Git Clone URL: https://aur.archlinux.org/scopehal-apps-git.git (read-only, click to copy)
Package Base: scopehal-apps-git
Description: glscopeclient and other client applications for libscopehal
Upstream URL: https://github.com/ngscopeclient/scopehal-apps
Licenses: BSD-3-Clause
Submitter: RigoLigo
Maintainer: RX14 (xorly)
Last Packager: xorly
Votes: 1
Popularity: 0.000123
First Submitted: 2021-12-15 14:22 (UTC)
Last Updated: 2024-12-29 13:55 (UTC)

Latest Comments

1 2 Next › Last »

ignilux commented on 2025-05-11 15:31 (UTC)

Figured it out. Passing -Wno-error=cpp in the build() function wasn't being honored by cmake. Had to add a line of sed to the PKGBUILD to modify "add_compile_options". I.e.:

prepare() {
  sed -i 's%url = \.\./%url = https://github.com/ngscopeclient/%' "$srcdir/scopehal-apps/.gitmodules"
  cd "$srcdir/scopehal-apps"
  git submodule update --init --recursive
  sed -i '65s/shadow/shadow -Wno-error=cpp/' CMakeLists.txt
}

Also had to recompile git dependencies due to libxml2 update. Should have done that first, but I didn't think of it. Hope this helps somebody.

ignilux commented on 2025-05-10 00:02 (UTC)

I seem to be unable to get past the -Werror failure caused by the deprecation message inside a vulcan_hpp include... Any ideas?

[ 13%] Building CXX object lib/scopehal/CMakeFiles/scopehal.dir/cmake_pch.hxx.gch
In file included from /usr/include/vulkan/vulkan_hpp_macros.hpp:35,
                 from /usr/include/vulkan/vulkan.hpp:11,
                 from /usr/include/vulkan/vulkan_raii.hpp:11,
                 from /var/tmp/makepkg/scopehal-apps-git/src/build/lib/scopehal/CMakeFiles/scopehal.dir/cmake_pch.hxx:6,
                 from <command-line>:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [lib/scopehal/CMakeFiles/scopehal.dir/build.make:80: lib/scopehal/CMakeFiles/scopehal.dir/cmake_pch.hxx.gch] Error 1
make[1]: *** [CMakeFiles/Makefile2:1428: lib/scopehal/CMakeFiles/scopehal.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'scopehal-apps-git-0.0.e0dd8c5a-1': 
error: packages failed to build: scopehal-apps-git-0.0.e0dd8c5a-1

Tried adding -Wno-error to the cmake call inside build() to bypass warning failures, but that seemed to make no difference. Similarly, trying to set -DCMAKE_CXX_STANDARD=20 to make vulcan_hpp pull in <version> instead of <ciso646> made no difference.

xorly commented on 2024-12-29 13:57 (UTC)

@ftk and others: PKGBUILD received an update. Thank you for suggestions!

xorly commented on 2024-12-19 17:06 (UTC)

Hi, can we get linux-gpib as optional dependency? (as seen in patches in previous comments)

Also, could you please update PKGBUILD so it follows template https://wiki.archlinux.org/title/CMake_package_guidelines#Template and it does not call make directly, as people like me, may have different cmake build system than GNU make (e.g. Ninja).

ftk commented on 2024-04-03 12:44 (UTC)

removes patches

diff --git a/PKGBUILD b/PKGBUILD
index 92639eb..4aa6966 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,17 @@

 pkgname=scopehal-apps-git
-pkgver=0.0.f18ad75
+pkgver=0.0.33c7cdd
 pkgrel=1
 pkgdesc="glscopeclient and other client applications for libscopehal"
 arch=('x86_64')
 url="https://github.com/glscopeclient/scopehal-apps"
 license=('BSD')
 groups=()
-depends=('gtkmm3' 'libsigc++' 'ffts' 'openmp' 'glfw' 'libvulkan.so' 'yaml-cpp' 'glew' 'catch2' 'spirv-tools' 'shaderc' 'liblxi' 'linux-gpib')
-makedepends=('cmake' 'git' 'vulkan-headers')
-source=("git+https://github.com/glscopeclient/scopehal-apps.git"
-        "modules.patch"
-        "target_link_libraries.patch")
-sha256sums=('SKIP'
-            'afcabed21ee30a3b08b86c452e09f964632f9ac2a2ce6d9eeea430c3060748af'
-            '39459c2f5b67968ca9b743e335026dc280e340ed6e3e4091ac26afd7d709f290')
+depends=('gtkmm3' 'libsigc++' 'ffts-git' 'openmp' 'glfw' 'yaml-cpp' 'glew')
+makedepends=('cmake' 'git' 'vulkan-headers' 'catch2')
+optdepends=('libvulkan.so'  'spirv-tools' 'shaderc' 'liblxi' 'linux-gpib' )
+source=("git+https://github.com/glscopeclient/scopehal-apps.git")
+sha256sums=('SKIP')

 pkgver() {
   cd "${srcdir}/scopehal-apps"
@@ -22,10 +19,9 @@ pkgver() {
 }

 prepare() {
-    patch "$srcdir/scopehal-apps/.gitmodules" modules.patch
-       cd "$srcdir/scopehal-apps"
-       git submodule update --init --recursive
-    patch -p1 < "$srcdir"/target_link_libraries.patch
+  sed -i 's%url = \.\./%url = https://github.com/glscopeclient/%' "$srcdir/scopehal-apps/.gitmodules"
+  cd "$srcdir/scopehal-apps"
+  git submodule update --init --recursive
 }

 build() {

XDjackieXD commented on 2023-06-27 09:15 (UTC)

Hi!

The modules.patch needs to be changed to:

diff --git a/.gitmodules b/.gitmodules
index 478f69b..8350711 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,18 +1,18 @@
 [submodule "lib"]
    path = lib
-   url = ../scopehal.git
+   url = https://github.com/glscopeclient/scopehal.git
 [submodule "doc"]
    path = doc
-   url = ../scopehal-docs.git
+   url = https://github.com/glscopeclient/scopehal-docs.git
 [submodule "src/imgui"]
    path = src/imgui
    url = https://github.com/ocornut/imgui
 [submodule "src/implot"]
    path = src/implot
-   url = ../implot.git
+   url = https://github.com/glscopeclient/implot.git
 [submodule "src/imgui-node-editor"]
    path = src/imgui-node-editor
-   url = ../imgui-node-editor.git
+   url = https://github.com/glscopeclient/imgui-node-editor.git
 [submodule "src/ImGuiFileDialog"]
    path = src/ImGuiFileDialog
    url = https://github.com/aiekick/ImGuiFileDialog

(set absolute path to implot)

RigoLigo commented on 2022-09-26 16:46 (UTC)

Uh, as the previous owner I'm sorry that I've not responded to the comments here. I've been on MacOS for a few months, and Arch on my old computer is being uninstalled, so I had to orphan this package for good. Hope someone who really needed this software can pick it up.

RX14 commented on 2022-09-23 14:28 (UTC)

The git URL needs to be updated to https://github.com/glscopeclient/scopehal-apps for this PKGBUILD to work

kbeckmann commented on 2022-08-28 12:01 (UTC)

The PKGBUILD file runs make -j6 directly. Could this be changed so that $MAKEFLAGS from /etc/makepkg.conf is used instead? I think it should be enough to just call make.

cdkitching commented on 2022-08-12 11:19 (UTC)

Missing dependency on yaml-cpp. Build fails unless you have it installed.