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
552 stars 108 forks source link

Can't Build On Debian Stretch: Missing fontconfig #446

Open RHOPKINS13 opened 5 years ago

RHOPKINS13 commented 5 years ago

I can't seem to get this to build in Debian Stretch 64-bit. I've installed build-essential, gcc-c++, ia32-libs, lib32z1, and g++-multilib.

Now when I try to build, I get an error that it couldn't find fontconfig: -- Target architecture: i386 -- Building for 32 Bit -- Target architecture: i386 -- Checking for module 'fontconfig' -- No package 'fontconfig' found CMake Error at /usr/share/cmake-3.7/Modules/FindPkgConfig.cmake:415 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake-3.7/Modules/FindPkgConfig.cmake:588 (_pkg_check_modules_internal) mainui/CMakeLists.txt:177 (pkg_check_modules) I assume this is because I only have the 64-bit fontconfig package installed and not the 32-bit one. So I've tried to install the 32-bit one, but I'm getting dependency issues. Any advice? `rhopkins13@RHOPKINS13-DevBox:~/xash3d/build$ sudo apt install fontconfig:i386 [sudo] password for rhopkins13: Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: fontconfig:i386 : Depends: libfontconfig1:i386 (>= 2.11) but it is not going to be installed Depends: libfreetype6:i386 (>= 2.2.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. rhopkins13@RHOPKINS13-DevBox:~/xash3d/build$ sudo apt install fontconfig:i386 libfontconfig1:i386 libfreetype6:i386 Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: fontconfig:i386 : Depends: fontconfig-config:i386 libasound2-plugins : Depends: libavcodec57 (>= 7:3.0) but it is not going to be installed or libavcodec-extra57 (>= 7:3.0) but it is not going to be installed libfontconfig1:i386 : Depends: fontconfig-config:i386 (>= 2.11.0-6.7) E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. rhopkins13@RHOPKINS13-DevBox:~/xash3d/build$ sudo apt install fontconfig:i386 libfontconfig1:i386 libfreetype6:i386 fontconfig-config:i386 Reading package lists... Done Building dependency tree
Reading state information... Done Note, selecting 'fontconfig-config' instead of 'fontconfig-config:i386' fontconfig-config is already the newest version (2.13.1-2). fontconfig-config set to manually installed. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: fontconfig-config : Breaks: libfontconfig1:i386 (< 2.13.0) but 2.11.0-6.7+b1 is to be installed libasound2-plugins : Depends: libavcodec57 (>= 7:3.0) but it is not going to be installed or libavcodec-extra57 (>= 7:3.0) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. `

mittorn commented 5 years ago

Report bug to debian bugtracker You may use stb fonts instead of freetype until it fixed

RHOPKINS13 commented 5 years ago

I'm sorry I'm a little bit of a noob, how would I use stb fonts instead of freetype?

nex86 commented 5 years ago

its still not fixed.

a1batross commented 5 years ago

apt install libfontconfig-dev:i386 or like that.

I'm not gonna fix such obvious things.

nex86 commented 5 years ago

thanks that did it.