xash3d icon indicating copy to clipboard operation
xash3d copied to clipboard

Can't Build On Debian Stretch: Missing fontconfig

Open RHOPKINS13 opened this issue 5 years ago • 5 comments

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. `

RHOPKINS13 avatar Mar 19 '19 00:03 RHOPKINS13

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

mittorn avatar Mar 19 '19 13:03 mittorn

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

RHOPKINS13 avatar Mar 19 '19 13:03 RHOPKINS13

its still not fixed.

nex86 avatar Sep 17 '19 07:09 nex86

apt install libfontconfig-dev:i386 or like that.

I'm not gonna fix such obvious things.

a1batross avatar Sep 17 '19 08:09 a1batross

thanks that did it.

nex86 avatar Sep 19 '19 22:09 nex86