tyabus / xash3d

Bugfixed & Improved Xash3D
https://dsc.gg/tyabus
GNU General Public License v3.0
36 stars 12 forks source link

Problem on building #5

Closed buhozzz closed 2 years ago

buhozzz commented 2 years ago

-- Target architecture: i386 -- Building for 32 Bit -- Target architecture: i386 -- Disabled PIE for xashmenu -- ../hlsdk -- </FindVGUI.cmake> /home/arturo/xash3d/hlsdk/linux/vgui.so -- Disabled PIE for vgui_support -- CMake Error at cmake/FindSDL2.cmake:107 (message): sdl2-config --libs returned code No such file or directory. Check that sdl2-config is working. Call Stack (most recent call first): cmake/FWGSLib.cmake:223 (find_package) cmake/FWGSLib.cmake:320 (fwgs_library_dependency) game_launch/CMakeLists.txt:40 (xash_link_sdl2)

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) cmake/FindSDL2.cmake:179 (find_package_handle_standard_args) cmake/FWGSLib.cmake:223 (find_package) cmake/FWGSLib.cmake:320 (fwgs_library_dependency) game_launch/CMakeLists.txt:40 (xash_link_sdl2)

That appears in the terminal. What am I doing wrong?

tyabus commented 2 years ago

libSDL2-dev:i386 package isn't installed. (if you are using deb based distro) If you want to build 64bit build, pass -DXASH_64BIT=1. Refer to https://github.com/FWGS/xash3d/wiki/Building-and-running#cmake-recommended.

tyabus commented 2 years ago

Closing due absence of activity.