Novum / vkQuake

Vulkan Quake port based on QuakeSpasm
GNU General Public License v2.0
1.85k stars 225 forks source link

Starfive VisionFive 2 packages required on Debian Sid risv64 #627

Closed omac777 closed 1 year ago

omac777 commented 1 year ago

Not really a bug. Just a few notes to help build vkQuake on VF2 board.

sudo apt-get install git meson gcc glslang-tools spirv-tools libsdl2-dev libvulkan-dev libvorbis-dev libmad0-dev libx11-xcb-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.39.1-0.1).
gcc is already the newest version (4:12.2.0-3).
gcc set to manually installed.
The following additional packages will be installed:
  gir1.2-ibus-1.0 libasound2-dev libblkid-dev libdbus-1-dev libdecor-0-dev libdrm-dev libegl-dev libgbm-dev libgl-dev libgles-dev libgles1 libglib2.0-dev libglib2.0-dev-bin libglx-dev libibus-1.0-5 libibus-1.0-dev libice-dev libmad0
  libmount-dev libogg-dev libpciaccess-dev libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpthread-stubs0-dev libpulse-dev libsamplerate0-dev libselinux1-dev libsepol-dev libsm-dev libsndio-dev libudev-dev libwayland-bin
  libwayland-dev libx11-dev libxau-dev libxcb1-dev libxcursor-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxrender-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev ninja-build
  python3-distutils python3-lib2to3 python3-setuptools uuid-dev x11proto-dev xorg-sgml-doctools xtrans-dev zlib1g-dev
Suggested packages:
  libasound2-doc libgirepository1.0-dev libglib2.0-doc libxml2-utils libice-doc libsm-doc libwayland-doc libx11-doc libxcb-doc libxext-doc libxt-doc python-setuptools-doc
The following NEW packages will be installed:
  gir1.2-ibus-1.0 glslang-tools libasound2-dev libblkid-dev libdbus-1-dev libdecor-0-dev libdrm-dev libegl-dev libgbm-dev libgl-dev libgles-dev libgles1 libglib2.0-dev libglib2.0-dev-bin libglx-dev libibus-1.0-5 libibus-1.0-dev
  libice-dev libmad0 libmad0-dev libmount-dev libogg-dev libpciaccess-dev libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpthread-stubs0-dev libpulse-dev libsamplerate0-dev libsdl2-dev libselinux1-dev libsepol-dev libsm-dev
  libsndio-dev libudev-dev libvorbis-dev libvulkan-dev libwayland-bin libwayland-dev libx11-dev libx11-xcb-dev libxau-dev libxcb1-dev libxcursor-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbcommon-dev
  libxrandr-dev libxrender-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev meson ninja-build python3-distutils python3-lib2to3 python3-setuptools spirv-tools uuid-dev x11proto-dev xorg-sgml-doctools xtrans-dev zlib1g-dev
0 upgraded, 68 newly installed, 0 to remove and 39 not upgraded.

Discovered when running meson build:

sudo apt-get install cmake libflac-dev libopus-dev libopusfile-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  cmake-data libarchive13 libjsoncpp25 libopusfile0 librhash0
Suggested packages:
  cmake-doc cmake-format elpa-cmake-mode lrzip
The following NEW packages will be installed:
  cmake cmake-data libarchive13 libflac-dev libjsoncpp25 libopus-dev libopusfile-dev libopusfile0 librhash0

meson build passes now:

meson setup --reconfigure build
The Meson build system
Version: 1.0.0
Source dir: /home/davidm/vkQuake
Build dir: /home/davidm/vkQuake/build
Build type: native build
Project name: vkquake
Project version: undefined
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: riscv64
Host machine cpu: riscv64
Program glslangValidator found: YES (/usr/bin/glslangValidator)
Program spirv-opt found: YES (/usr/bin/spirv-opt)
Program spirv-remap found: YES (/usr/bin/spirv-remap)
Library m found: YES
Library dl found: YES
Dependency threads found: YES unknown (cached)
Dependency sdl2 found: YES 2.26.2 (cached)
Dependency vulkan found: YES 1.3.239 (cached)
Dependency mad found: YES 0.15.1b (cached)
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Run-time dependency flac found: YES 1.4.2
Dependency ogg found: YES 1.3.5 (cached)
Dependency vorbisfile found: YES 1.3.7 (cached)
Dependency vorbis found: YES 1.3.7 (cached)
Run-time dependency opus found: YES 1.3.1
Run-time dependency opusfile found: YES 0.12
Build targets in project: 33

Found ninja-1.11.1 at /usr/bin/ninja

meson setup --wipe build meson setup --reconfigure build

time ninja -C build real 1m11.146s user 4m6.225s sys 0m12.787s

Novum commented 1 year ago

That's a pretty obscure target, what exactly is the change you want?

Novum commented 1 year ago

All of this is already documented in the README from what I can tell? libflac-dev, libopus-dev and libopusfile-dev are optional.