FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
549 stars 107 forks source link

cmake couldn't find sdl2, which is installed on system #13

Closed xDShot closed 9 years ago

xDShot commented 9 years ago

ОС - Manjaro Linux x64. пакеты sdl2 и lib32-sdl2 уже стоят в системе.

Лог: [xdshot@lenovo-pc ~]$ git clone https://github.com/SDLash3D/xash3d.git Cloning into 'xash3d'... remote: Counting objects: 1476, done. remote: Compressing objects: 100% (104/104), done. remote: Total 1476 (delta 47), reused 0 (delta 0), pack-reused 1372 Receiving objects: 100% (1476/1476), 2.48 MiB | 831.00 KiB/s, done. Resolving deltas: 100% (691/691), done. Checking connectivity... done. [xdshot@lenovo-pc ~]$ git clone https://github.com/SDLash3D/halflife.git Cloning into 'halflife'... remote: Counting objects: 1432, done. remote: Total 1432 (delta 0), reused 0 (delta 0), pack-reused 1432 Receiving objects: 100% (1432/1432), 4.96 MiB | 1.08 MiB/s, done. Resolving deltas: 100% (475/475), done. Checking connectivity... done. [xdshot@lenovo-pc ~]$ cd xash3d/ [xdshot@lenovo-pc xash3d]$ mkdir build [xdshot@lenovo-pc xash3d]$ cd build/ [xdshot@lenovo-pc build]$ cmake -DHL_SDK_DIR=~/halflife .. -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") -- checking for one of the modules 'sdl2' -- checking for one of the modules 'SDL2_image' CMake Error at /usr/share/cmake-3.2/Modules/FindPkgConfig.cmake:548 (message): None of the required 'SDL2_image' found Call Stack (most recent call first): engine/CMakeLists.txt:28 (pkg_search_module)

-- Configuring incomplete, errors occurred! See also "/home/xdshot/xash3d/build/CMakeFiles/CMakeOutput.log". [xdshot@lenovo-pc build]$

xDShot commented 9 years ago

Разобрался. Надо было еще поставить пакет sdl2_image.