Meumeu / ZephyrusBling

A utility to display images on the LEDs on the back of the Zephyrus G14 laptop
69 stars 9 forks source link

Can't build on Arch Linux #15

Open N0tC opened 1 year ago

N0tC commented 1 year ago

My apologies if the formatting is a mess i don't know how to use markdown. This also happens when i try to build it using the instructions in the readme

1 aur/zephyrusbling-git r24.80956bf-1 (+0 0.00) 
    A utility to display images on the LEDs on the back of the Zephyrus G14 laptop
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  zephyrusbling-git-r24.80956bf-1

  1 zephyrusbling-git                (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
:: Deleting (1/1): /home/notc/.cache/yay/zephyrusbling-git
:: (1/1) Downloaded PKGBUILD: zephyrusbling-git
  1 zephyrusbling-git                (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: zephyrusbling-git
==> Making package: zephyrusbling-git r24.80956bf-1 (Fri 11 Nov 2022 12:57:10 PM AEDT)
==> Retrieving sources...
  -> Cloning zephyrusbling git repo...
Cloning into bare repository '/home/notc/.cache/yay/zephyrusbling-git/zephyrusbling'...
remote: Enumerating objects: 158, done.
remote: Counting objects: 100% (158/158), done.
remote: Compressing objects: 100% (83/83), done.
remote: Total 158 (delta 98), reused 132 (delta 74), pack-reused 0
Receiving objects: 100% (158/158), 2.17 MiB | 2.13 MiB/s, done.
Resolving deltas: 100% (98/98), done.
  -> Found zephyrusblingd.service
==> Validating source files with sha256sums...
    zephyrusbling ... Skipped
    zephyrusblingd.service ... Passed
==> Making package: zephyrusbling-git r24.80956bf-1 (Fri 11 Nov 2022 12:57:13 PM AEDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating zephyrusbling git repo...
  -> Found zephyrusblingd.service
==> Validating source files with sha256sums...
    zephyrusbling ... Skipped
    zephyrusblingd.service ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of zephyrusbling git repo...
Cloning into 'zephyrusbling'...
done.
==> Starting pkgver()...
==> Sources are ready.
==> Making package: zephyrusbling-git r24.80956bf-1 (Fri 11 Nov 2022 12:57:15 PM AEDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
-- The CXX compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Debug' as none was specified.
-- Found Boost: /usr/lib64/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0") found components: filesystem 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/notc/.cache/yay/zephyrusbling-git/src/zephyrusbling/build
[  6%] Building CXX object CMakeFiles/zephyrusbling_common.dir/Leds.cpp.o
[ 13%] Building CXX object CMakeFiles/zephyrusbling_common.dir/Image.cpp.o
[ 20%] Building CXX object CMakeFiles/zephyrusbling_common.dir/BlingDaemon.cpp.o
[ 26%] Building CXX object CMakeFiles/zephyrusbling_common.dir/Effects.cpp.o
[ 33%] Building CXX object CMakeFiles/zephyrusbling_common.dir/Bling.cpp.o
/home/notc/.cache/yay/zephyrusbling-git/src/zephyrusbling/BlingDaemon.cpp: In lambda function:
/home/notc/.cache/yay/zephyrusbling-git/src/zephyrusbling/BlingDaemon.cpp:58:43: error: converting to ‘const sdbus::Error’ from initializer list would use explicit constructor ‘sdbus::Error::Error(const std::string&, const char*)’
   58 |                         result.returnError({"org.meumeu.bling.CreateImageError", e.what()});
      |                         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/notc/.cache/yay/zephyrusbling-git/src/zephyrusbling/BlingDaemon.cpp: In lambda function:
/home/notc/.cache/yay/zephyrusbling-git/src/zephyrusbling/BlingDaemon.cpp:84:43: error: converting to ‘const sdbus::Error’ from initializer list would use explicit constructor ‘sdbus::Error::Error(const std::string&, const char*)’
   84 |                         result.returnError({"org.meumeu.bling.CreateTextError", e.what()});
      |                         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/zephyrusbling_common.dir/build.make:118: CMakeFiles/zephyrusbling_common.dir/BlingDaemon.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/zephyrusbling_common.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: zephyrusbling-git

any ideas? thanks

Meumeu commented 1 year ago

Apparently there's been a change on sdbus, it should be working now

N0tC commented 1 year ago

thanks, it builds now. However i can't get it to work, using" asusctl anime image" works, the sleep animations work and i'm running zephyrusblingd. It outputs "Bling /org/meumeu/blings/1 created" but nothing. any ideas?

Meumeu commented 1 year ago

thanks, it builds now. However i can't get it to work, using" asusctl anime image" works, the sleep animations work and i'm running zephyrusblingd. It outputs "Bling /org/meumeu/blings/1 created" but nothing. any ideas?

I didn't notice asusctl's dbus interface has changed, can you try again?