Skip to content

Instantly share code, notes, and snippets.

@Jayman2000
Created July 4, 2024 16:57
Show Gist options
  • Save Jayman2000/2415b96c48d69314ab072d88e2f5857a to your computer and use it in GitHub Desktop.
Save Jayman2000/2415b96c48d69314ab072d88e2f5857a to your computer and use it in GitHub Desktop.
A log that will help me report a problem with a Descent 3 pull request: <https://github.com/DescentDevelopers/Descent3/pull/469>
jayman@fedora:~$ # Install the prerequisite build tools.
jayman@fedora:~$ sudo dnf update --refresh
[sudo] password for jayman:
Fedora 40 - x86_64 122 kB/s | 29 kB 00:00
Fedora 40 openh264 (From Cisco) - x86_64 8.3 kB/s | 989 B 00:00
Fedora 40 - x86_64 - Updates 87 kB/s | 28 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
jayman@fedora:~$ sudo dnf install -y git ninja-build cmake gcc-c++
Last metadata expiration check: 0:00:04 ago on Thu 04 Jul 2024 12:52:54 PM EDT.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
cmake x86_64 3.28.2-1.fc40 fedora 9.7 M
gcc-c++ x86_64 14.1.1-7.fc40 updates 14 M
git x86_64 2.45.2-2.fc40 updates 53 k
ninja-build x86_64 1.12.1-1.fc40 updates 179 k
Installing dependencies:
cmake-data noarch 3.28.2-1.fc40 fedora 2.3 M
cmake-filesystem x86_64 3.28.2-1.fc40 fedora 18 k
gc x86_64 8.2.2-6.fc40 fedora 110 k
gcc x86_64 14.1.1-7.fc40 updates 37 M
git-core x86_64 2.45.2-2.fc40 updates 4.7 M
git-core-doc noarch 2.45.2-2.fc40 updates 2.9 M
glibc-devel x86_64 2.39-15.fc40 updates 113 k
glibc-headers-x86 noarch 2.39-15.fc40 updates 607 k
guile30 x86_64 3.0.7-12.fc40 fedora 8.1 M
jsoncpp x86_64 1.9.5-7.fc40 fedora 99 k
libstdc++-devel x86_64 14.1.1-7.fc40 updates 2.7 M
libxcrypt-devel x86_64 4.4.36-5.fc40 fedora 29 k
make x86_64 1:4.4.1-6.fc40 fedora 588 k
perl-Error noarch 1:0.17029-15.fc40 fedora 40 k
perl-File-Find noarch 1.43-506.fc40 fedora 26 k
perl-Git noarch 2.45.2-2.fc40 updates 40 k
perl-TermReadKey x86_64 2.38-21.fc40 fedora 35 k
perl-lib x86_64 0.65-506.fc40 fedora 15 k
rhash x86_64 1.4.3-4.fc40 fedora 194 k
vim-filesystem noarch 2:9.1.452-1.fc40 updates 17 k
Transaction Summary
================================================================================
Install 24 Packages
Total download size: 84 M
Installed size: 293 M
Downloading Packages:
(1/24): cmake-filesystem-3.28.2-1.fc40.x86_64.r 73 kB/s | 18 kB 00:00
(2/24): gc-8.2.2-6.fc40.x86_64.rpm 618 kB/s | 110 kB 00:00
(3/24): cmake-data-3.28.2-1.fc40.noarch.rpm 3.8 MB/s | 2.3 MB 00:00
(4/24): cmake-3.28.2-1.fc40.x86_64.rpm 8.4 MB/s | 9.7 MB 00:01
(5/24): jsoncpp-1.9.5-7.fc40.x86_64.rpm 175 kB/s | 99 kB 00:00
(6/24): guile30-3.0.7-12.fc40.x86_64.rpm 9.5 MB/s | 8.1 MB 00:00
(7/24): libxcrypt-devel-4.4.36-5.fc40.x86_64.rp 181 kB/s | 29 kB 00:00
(8/24): make-4.4.1-6.fc40.x86_64.rpm 3.4 MB/s | 588 kB 00:00
(9/24): perl-Error-0.17029-15.fc40.noarch.rpm 514 kB/s | 40 kB 00:00
(10/24): perl-File-Find-1.43-506.fc40.noarch.rp 338 kB/s | 26 kB 00:00
(11/24): perl-TermReadKey-2.38-21.fc40.x86_64.r 456 kB/s | 35 kB 00:00
(12/24): perl-lib-0.65-506.fc40.x86_64.rpm 210 kB/s | 15 kB 00:00
(13/24): rhash-1.4.3-4.fc40.x86_64.rpm 2.5 MB/s | 194 kB 00:00
(14/24): git-2.45.2-2.fc40.x86_64.rpm 94 kB/s | 53 kB 00:00
(15/24): git-core-2.45.2-2.fc40.x86_64.rpm 841 kB/s | 4.7 MB 00:05
(16/24): git-core-doc-2.45.2-2.fc40.noarch.rpm 834 kB/s | 2.9 MB 00:03
(17/24): glibc-devel-2.39-15.fc40.x86_64.rpm 589 kB/s | 113 kB 00:00
(18/24): glibc-headers-x86-2.39-15.fc40.noarch. 791 kB/s | 607 kB 00:00
(19/24): libstdc++-devel-14.1.1-7.fc40.x86_64.r 828 kB/s | 2.7 MB 00:03
(20/24): ninja-build-1.12.1-1.fc40.x86_64.rpm 658 kB/s | 179 kB 00:00
(21/24): perl-Git-2.45.2-2.fc40.noarch.rpm 394 kB/s | 40 kB 00:00
(22/24): vim-filesystem-9.1.452-1.fc40.noarch.r 173 kB/s | 17 kB 00:00
(23/24): gcc-c++-14.1.1-7.fc40.x86_64.rpm 819 kB/s | 14 MB 00:17
(24/24): gcc-14.1.1-7.fc40.x86_64.rpm 840 kB/s | 37 MB 00:45
--------------------------------------------------------------------------------
Total 1.8 MB/s | 84 MB 00:47
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : vim-filesystem-2:9.1.452-1.fc40.noarch 1/24
Installing : git-core-2.45.2-2.fc40.x86_64 2/24
Installing : cmake-filesystem-3.28.2-1.fc40.x86_64 3/24
Installing : git-core-doc-2.45.2-2.fc40.noarch 4/24
Installing : libstdc++-devel-14.1.1-7.fc40.x86_64 5/24
Installing : glibc-headers-x86-2.39-15.fc40.noarch 6/24
Installing : glibc-devel-2.39-15.fc40.x86_64 7/24
Installing : libxcrypt-devel-4.4.36-5.fc40.x86_64 8/24
Installing : rhash-1.4.3-4.fc40.x86_64 9/24
Installing : perl-lib-0.65-506.fc40.x86_64 10/24
Installing : perl-TermReadKey-2.38-21.fc40.x86_64 11/24
Installing : perl-File-Find-1.43-506.fc40.noarch 12/24
Installing : perl-Error-1:0.17029-15.fc40.noarch 13/24
Installing : git-2.45.2-2.fc40.x86_64 14/24
Installing : perl-Git-2.45.2-2.fc40.noarch 15/24
Installing : jsoncpp-1.9.5-7.fc40.x86_64 16/24
Installing : gc-8.2.2-6.fc40.x86_64 17/24
Installing : guile30-3.0.7-12.fc40.x86_64 18/24
Installing : make-1:4.4.1-6.fc40.x86_64 19/24
Installing : cmake-data-3.28.2-1.fc40.noarch 20/24
Installing : cmake-3.28.2-1.fc40.x86_64 21/24
Installing : gcc-14.1.1-7.fc40.x86_64 22/24
Installing : gcc-c++-14.1.1-7.fc40.x86_64 23/24
Installing : ninja-build-1.12.1-1.fc40.x86_64 24/24
Running scriptlet: ninja-build-1.12.1-1.fc40.x86_64 24/24
Installed:
cmake-3.28.2-1.fc40.x86_64 cmake-data-3.28.2-1.fc40.noarch
cmake-filesystem-3.28.2-1.fc40.x86_64 gc-8.2.2-6.fc40.x86_64
gcc-14.1.1-7.fc40.x86_64 gcc-c++-14.1.1-7.fc40.x86_64
git-2.45.2-2.fc40.x86_64 git-core-2.45.2-2.fc40.x86_64
git-core-doc-2.45.2-2.fc40.noarch glibc-devel-2.39-15.fc40.x86_64
glibc-headers-x86-2.39-15.fc40.noarch guile30-3.0.7-12.fc40.x86_64
jsoncpp-1.9.5-7.fc40.x86_64 libstdc++-devel-14.1.1-7.fc40.x86_64
libxcrypt-devel-4.4.36-5.fc40.x86_64 make-1:4.4.1-6.fc40.x86_64
ninja-build-1.12.1-1.fc40.x86_64 perl-Error-1:0.17029-15.fc40.noarch
perl-File-Find-1.43-506.fc40.noarch perl-Git-2.45.2-2.fc40.noarch
perl-TermReadKey-2.38-21.fc40.x86_64 perl-lib-0.65-506.fc40.x86_64
rhash-1.4.3-4.fc40.x86_64 vim-filesystem-2:9.1.452-1.fc40.noarch
Complete!
jayman@fedora:~$ # Clone the Descent3 source code.
jayman@fedora:~$ git clone https://github.com/DescentDevelopers/Descent3
Cloning into 'Descent3'...
remote: Enumerating objects: 15199, done.
remote: Counting objects: 100% (15199/15199), done.
remote: Compressing objects: 100% (4115/4115), done.
remote: Total 15199 (delta 11251), reused 14250 (delta 11050), pack-reused 0
Receiving objects: 100% (15199/15199), 29.42 MiB | 27.59 MiB/s, done.
Resolving deltas: 100% (11251/11251), done.
jayman@fedora:~$ # Acquire the library dependencies.
jayman@fedora:~$ git clone https://github.com/microsoft/vcpkg
Cloning into 'vcpkg'...
remote: Enumerating objects: 239763, done.
remote: Counting objects: 100% (279/279), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 239763 (delta 133), reused 176 (delta 66), pack-reused 239484
Receiving objects: 100% (239763/239763), 71.12 MiB | 22.26 MiB/s, done.
Resolving deltas: 100% (159757/159757), done.
jayman@fedora:~$ cd vcpkg
jayman@fedora:~/vcpkg$ export VCPKG_ROOT=$(pwd)
jayman@fedora:~/vcpkg$ cd ..
jayman@fedora:~$ # Build Descent3.
jayman@fedora:~$ cd Descent3
jayman@fedora:~/Descent3$ cmake --preset linux
-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.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
CMake Error at CMakeLists.txt:98 (find_package):
By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "SDL2", but
CMake did not find one.
Could not find a package configuration file provided by "SDL2" with any of
the following names:
SDL2Config.cmake
sdl2-config.cmake
Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set
"SDL2_DIR" to a directory containing one of the above files. If "SDL2"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
jayman@fedora:~/Descent3$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment