shadps4-emu / shadPS4

PS4 emulator for Windows,Linux,MacOS
https://shadps4.net/
GNU General Public License v2.0
10.61k stars 646 forks source link

[Linux] Not actual building from sources documentation #445

Closed GermanAizek closed 4 weeks ago

GermanAizek commented 2 months ago

After installing packages using docs. I have in CMake configuring stage:

CMake Warning at CMakeLists.txt:68 (find_package):
  Could not find a configuration file for package "Boost" that is compatible                                                                                          
  with requested version "1.84.0".                                                                                                                                    

  The following configuration files were considered but not accepted:                                                                                                 

    /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake, version: 1.83.0                                                                                   
    /lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake, version: 1.83.0                                                                                       

-- Could NOT find cryptopp: (Required is at least version "8.9.0") (found )
-- Could NOT find fmt (missing: fmt_DIR)
-- Could NOT find glslang (missing: glslang_DIR)
-- Could NOT find magic_enum (missing: magic_enum_DIR)
-- Could NOT find SDL3 (missing: SDL3_DIR)
-- Could NOT find toml11 (missing: toml11_DIR)
-- Could NOT find tsl-robin-map (missing: tsl-robin-map_DIR)
CMake Warning at CMakeLists.txt:76 (find_package):
  Could not find a configuration file for package "VulkanHeaders" that is                                                                                             
  compatible with requested version "1.3.289".                                                                                                                        

  The following configuration files were considered but not accepted:                                                                                                 

    /usr/share/cmake/VulkanHeaders/VulkanHeadersConfig.cmake, version: 1.3.283                                                                                        

-- Could NOT find VulkanMemoryAllocator (missing: VulkanMemoryAllocator_DIR)
-- Could NOT find xbyak (missing: xbyak_DIR)
-- Could NOT find xxHash: (Required is at least version "0.8.2") (found )
-- Could NOT find zlib-ng: (Required is at least version "2.2.0") (found )
-- Could NOT find Zydis (missing: Zydis_DIR)
CMake Warning at CMakeLists.txt:82 (find_package):
  No "FindRenderDoc.cmake" found in CMAKE_MODULE_PATH.                                                                                                                

CMake Warning (dev) at CMakeLists.txt:82 (find_package):
  FindRenderDoc.cmake must either be part of this project itself, in this                                                                                             
  case adjust CMAKE_MODULE_PATH so that it points to the correct location                                                                                             
  inside its source tree.                                                                                                                                             

  Or it must be installed by a package which has already been found via                                                                                               
  find_package().  In this case make sure that package has indeed been found                                                                                          
  and adjust CMAKE_MODULE_PATH to contain the location where that package has                                                                                         
  installed FindRenderDoc.cmake.  This must be a location provided by that                                                                                            
  package.  This error in general means that the buildsystem of this project                                                                                          
  is relying on a Find-module without ensuring that it is actually available.                                                                                         

This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                 
GermanAizek commented 2 months ago

@georgemoralis Add please packages for Debian/Ubuntu:

sudo apt install glslang-tools glslang-dev libcrypto++-dev libvulkan-memory-allocator-dev libfmt-dev libtoml11-dev libmagicenum-dev libxbyak-dev libxxhash-dev libzydis-dev

these packages are already available in the stable version.

GermanAizek commented 2 months ago

I forget add: glslang-tools

GermanAizek commented 2 months ago

And forget add: libcrypto++-dev

setepenre commented 2 months ago

either clone the repo with git clone --recursive or once in the repo directory do git submodule update --init --recursive

Morikko commented 2 months ago

I tried to build it on Ubuntu 22.04. I managed to make it with gcc-13 and clang-18, both are not installed by default. It failed with either gcc-12 or clang-15 that are the most up-to-date versions available from the official repos.

I did not manage to include -DENABLE_QT_GUI=ON as it failed with Unknown CMake command "qt_standard_project_setup". Apparently, it is only from Qt-6.3 while Ubuntu 22.04 provides Qt-6.2.4.

Kubmichna commented 2 months ago

i am having the very same issue but on windows 10

Hermiten commented 1 month ago

Some work have been made on this, can you test it again ?

Morikko commented 1 week ago

Some work have been made on this, can you test it again ?

Sorry, I upgraded the computer to Ubuntu 24 a few weeks ago so I can not reproduce.