Skip to content

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

Open
RHOPKINS13 opened this issue Mar 19, 2019 · 5 comments
Open

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

RHOPKINS13 opened this issue Mar 19, 2019 · 5 comments

Comments

@RHOPKINS13
Copy link

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
Copy link
Member

mittorn commented Mar 19, 2019

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

@RHOPKINS13
Copy link
Author

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

@nex86
Copy link

nex86 commented Sep 17, 2019

its still not fixed.

@a1batross
Copy link
Member

apt install libfontconfig-dev:i386 or like that.

I'm not gonna fix such obvious things.

@nex86
Copy link

nex86 commented Sep 19, 2019

thanks that did it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@mittorn @a1batross @RHOPKINS13 @nex86 and others