Solvedalacritty Ubuntu 14.04 - Installation fails with "No package 'freetype2' found" despite setting PKG_CONFIG_PATH

Potentially related to #1193. I've installed all dependencies listed in the README.

Which operating system does the issue occur on?
Ubuntu 14.04

If on linux, are you using X11 or Wayland?
X11

$ cargo deb --install
...
checking for _mktemp_s... no
checking for mkdtemp... yes
checking for getopt... yes
checking for getopt_long... yes
checking for getprogname... no
checking for getexecname... no
checking for rand... yes
checking for random... yes
checking for lrand48... yes
checking for random_r... yes
checking for rand_r... yes
checking for readlink... yes
checking for regcomp... yes
checking for regerror... yes
checking for regexec... yes
checking for regfree... yes
checking for fstatvfs... yes
checking for fstatfs... yes
checking for lstat... yes
checking for posix_fadvise in fcntl.h... fcntl.h
checking for scandir... yes
checking for struct statvfs.f_basetype... no
checking for struct statvfs.f_fstypename... no
checking for struct statfs.f_flags... yes
checking for struct statfs.f_fstypename... no
checking for struct dirent.d_type... yes
checking for FREETYPE... no

--- stderr
configure: error: Package requirements (freetype2) were not met:

No package 'freetype2' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FREETYPE_CFLAGS
and FREETYPE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** [/home/alex/workspace/alacritty/target/release/build/servo-fontconfig-sys-7e72fbca0fe0db32/out/Makefile] Error 1
thread 'main' panicked at 'assertion failed: Command::new("make").args(&["-R", "-f",
                            "makefile.cargo"]).status().unwrap().success()', /home/alex/.cargo/git/checkouts/libfontconfig-3d5e920c02c2e53f/5c1845e/build.rs:17:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
cargo-deb: build failed

My PKG_CONFIG_PATH is set to /usr/lib/x86_64-linux-gnu/pkgconfig and it looks like freetype2 is there.

$ ls $PKG_CONFIG_PATH | grep freetype
freetype2.pc

Any ideas?

25 Answers

✔️Accepted Answer

Could you try running apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip before installing the deb? That should install all required build dependencies.

Other Answers:

Yeah, I'm in the same boat.

No package 'freetype2' found

I tried all of the above fixes, but nothing.
I'll try poking through it when I have some spare time.

More Issues: