Package Details: projectm-sdl2-git 111.c53e732-1

Git Clone URL: https://aur.archlinux.org/projectm-sdl2-git.git (read-only, click to copy)
Package Base: projectm-sdl2-git
Description: Music visualizer which uses 3D accelerated iterative image based rendering (git version)
Upstream URL: https://github.com/projectM-visualizer/projectm
Licenses: LGPL
Conflicts: projectm-sdl
Provides: projectm-sdl
Submitter: prg
Maintainer: prg
Last Packager: prg
Votes: 1
Popularity: 0.045445
First Submitted: 2022-04-06 03:53 (UTC)
Last Updated: 2024-05-08 17:53 (UTC)

Latest Comments

prg commented on 2024-05-08 17:53 (UTC)

Thanks @ArchMcGee! I've gone ahead and updated the PKGBUILD so that it clones the submodules

ArchMcGee commented on 2024-05-06 06:34 (UTC) (edited on 2024-05-06 06:49 (UTC) by ArchMcGee)

EDIT: Fixed PKGBUILD at bottom.

The source does not compile using this AUR package or from the GitHub repo directly.

I have raised the issue at GitHub and received a reply to run the following command before config and build:

git submodule init && git submodule update

Running the above command fixes the issue although I do not know how to incorporate this into the PKGBUILD file to test it so thought I'd mention it here so the maintainer can maybe fix it.

Below is the error from the GitHub build although the error is the same when trying from the AUR.

mkdir cmake-build          
cmake -S . -B cmake-build -DCMAKE_BUILD_TYPE=Release
cmake --build cmake-build --config Release
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.13.2")
-- SDL version: 2.30.3
-- Poco version: 1.12.5
-- projectM version: 4.1.0
-- Freetype version: 2.13.2
-- Configuring done (0.8s)
CMake Error at ImGui.cmake:2 (add_library):
  Cannot find source file:

    vendor/imgui/imgui.cpp
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)


CMake Error at ImGui.cmake:46 (add_executable):
  Cannot find source file:

    vendor/imgui/misc/fonts/binary_to_compressed_c.cpp
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)


CMake Error at ImGui.cmake:51 (add_executable):
  Cannot find source file:

    vendor/imgui/imgui_demo.cpp
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)


CMake Error at ImGui.cmake:2 (add_library):
  No SOURCES given to target: ImGui
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)


CMake Error at ImGui.cmake:46 (add_executable):
  No SOURCES given to target: ImGuiBinaryToCompressedC
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)


CMake Error at ImGui.cmake:51 (add_executable):
  No SOURCES given to target: ImGuiDemo
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)


CMake Generate step failed.  Build files cannot be regenerated correctly.
make: Makefile: No such file or directory
make: *** No rule to make target 'Makefile'.  Stop.
# Maintainer: prg <prg-archlinux@xannode.com>
# Contributor: prg <prg-archlinux@xannode.com>

_gitname=frontend-sdl2
pkgname=projectm-sdl2-git
pkgver=57.a5152b3
pkgrel=2
provides=('projectm-sdl')
conflicts=('projectm-sdl')
pkgdesc="Music visualizer which uses 3D accelerated iterative image based rendering (git version)"
arch=('x86_64' 'i686')
url='https://github.com/projectM-visualizer/projectm'
license=('LGPL')
depends=('projectm-git' 'sdl2' 'libxext' 'glm' 'poco')
makedepends=('cmake')
source=("git+https://github.com/projectM-visualizer/${_gitname}.git")
sha256sums=(SKIP)
options=('!buildflags')

pkgver() {
  cd "${_gitname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "${_gitname}"
  git submodule init
  git submodule update
  mkdir -p build
  cd build
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ../
  make
}

package() {
  cd "${_gitname}/build"
  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
  mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
  DESTDIR="$pkgdir" install -Dm755 "${srcdir}/${_gitname}/build/src/projectMSDL" "$pkgdir/usr/bin/"
  DESTDIR="$pkgdir" install -Dm644 "${srcdir}/${_gitname}/build/src/projectMSDL.properties" "$pkgdir/usr/share/doc/$pkgname/"
  DESTDIR="$pkgdir" install -Dm644 "${srcdir}/${_gitname}/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/"
}

acerix commented on 2024-01-13 01:04 (UTC)

And a few hints on getting this working...

Some hotkeys like F1 don't work, this has more info and the link mentions other hotkeys that do work:

https://github.com/projectM-visualizer/frontend-sdl2/issues/50#issuecomment-1679276936

Also, the user should make a config file (see https://github.com/projectM-visualizer/frontend-sdl2?tab=readme-ov-file#linux):

mkdir ~/.config/projectM
cp /usr/share/doc/projectm-sdl2-git/projectMSDL.properties ~/.config/projectM/

To get presets to load, replace ${application.dir} with /usr/share/projectM in the config file (~/.config/projectM/projectMSDL.properties).

acerix commented on 2024-01-13 00:13 (UTC)

There's currently an error building this:

CMake Error at /usr/lib/cmake/Poco/PocoConfig.cmake:29 (find_package):
  Found package configuration file:

    /usr/lib/cmake/Poco/PocoUtilConfig.cmake

  but it set PocoUtil_FOUND to FALSE so package "PocoUtil" is considered to
  be NOT FOUND.  Reason given by package:

  The following imported targets are referenced, but are missing: Poco::XML
  Poco::JSON

Call Stack (most recent call first):
  CMakeLists.txt:29 (find_package)

I found this patch which gets it to build:

https://gist.github.com/trinitronx/5f2d45e3f3f23e0ed905fff4d8a82f3e#file-poco-cmakelists-patch

Thanks for this package!