sirjuddington / SLADE

It's a Doom editor
https://slade.mancubus.net
GNU General Public License v2.0
686 stars 104 forks source link

[Compilation Issue] CMake install step can't find slade.pk3 #1620

Closed wallabra closed 7 months ago

wallabra commented 7 months ago

SLADE Version: latest commi Operating System: Linux (CachyOS / Arch Linux derivative)

Issue Details: CMake fails to find slade.pk3 in order to put it in the install directory.

[100%] Built target slade
Install the project...
-- Install configuration: "Release"
-- Installing: /home/gustavo/.cache/paru/clone/slade-git/pkg/slade-git/usr/bin/slade
CMake Error at src/cmake_install.cmake:67 (file):
  file INSTALL cannot find
  "/home/gustavo/.cache/paru/clone/slade-git/src/slade/slade.pk3": No such
  file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:47 (include)

make: *** [Makefile:100: install] Error 1

These are the CMake options passed by the PKGBUILD:

build() {
    cd slade

    export CCACHE_SLOPPINESS=pch_defines,time_macros
    cmake -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DFMT_INSTALL=OFF \
          .
    make
}

package() {
    cd slade

    make install DESTDIR="$pkgdir"
}
kitchen-ace commented 7 months ago

Downstream issue, the package needs -DBUILD_PK3=ON \ added to the CMake options. I'll let you file the report on AUR since it looks like you're active there :) (I'm plums on DoomWorld)

wallabra commented 7 months ago

Thank you @kitchen-ace! I'll let them know. :)