CytopiaTeam / Cytopia

:deciduous_tree::house_with_garden::office::evergreen_tree: A city building simulation game
https://www.cytopia.net
GNU General Public License v3.0
1.94k stars 101 forks source link

Building fails on Archlinux with error #1056

Closed Brensom closed 1 year ago

Brensom commented 1 year ago

Building fails to me on the current master version:

CMake Warning at cmake/DependenciesConfig.cmake:14 (find_package):
  By not providing "FindVorbis.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Vorbis", but
  CMake did not find one.

  Could not find a package configuration file provided by "Vorbis" with any
  of the following names:

    VorbisConfig.cmake
    vorbis-config.cmake

  Add the installation prefix of "Vorbis" to CMAKE_PREFIX_PATH or set
  "Vorbis_DIR" to a directory containing one of the above files.  If "Vorbis"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:60 (include)

-- Could NOT find Angelscript (missing: Angelscript_INCLUDE_DIRS Angelscript_LIBRARIES) 
-- Could NOT find microprofile (missing: microprofile_DIR)
-- Building Project:  Cytopia
-- Build configuration: Release
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- The following OPTIONAL packages have been found:

 * ZLIB
 * PNG
 * OpenAL

-- The following REQUIRED packages have been found:

 * Threads
 * SDL2_image, SDL_image is an image file loading library, <https://www.libsdl.org/projects/SDL_image/>
 * SDL2, low level access to audio, keyboard, mouse, joystick, and graphics hardware, <https://www.libsdl.org/>
 * SDL2_ttf, Support for TrueType (.ttf) font files with Simple Directmedia Layer, <https://www.libsdl.org/projects/SDL_ttf/>
 * LibNoise

-- The following OPTIONAL packages have not been found:

 * Vorbis
 * Angelscript
 * microprofile
 * Doxygen

-- Configuring done (0.1s)
CMake Error at src/CMakeLists.txt:165 (target_link_libraries):
  Target "Cytopia" links to:

    sdl_ttf::sdl_ttf
  but the target was not found.  Possible reasons include:
    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
  Target "Cytopia_Tests" links to:

    sdl_ttf::sdl_ttf

  but the target was not found.  Possible reasons include:
    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

my build system:

ldd (GNU libc) 2.37
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
[qwerty@qwerty-virtualbox cytopia-git]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.1.1 20230429 (GCC)