Discussion:
[non] Can't install ntk (nor non) due to missing .pc files
William Pentney
2017-01-17 23:48:09 UTC
Permalink
I've tried to install NTK on both a Raspberry Pi 3 and an Ubuntu 16.04
distro, so as to install Non, and both times it fails with

Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking for program 'pkg-config' :
['/usr/bin/pkg-config']
Checking for 'x11' : not found
The configuration failed
(complete log in /home/pentney/ntk/build/config.log)

It seems to be looking for a x11.pc file that isn't there - from
build/config.log:

Checking for 'x11'
['/usr/bin/pkg-config', '--cflags', '--libs', 'x11']
err: Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable

There is no x11.pc file on either the Raspbian or the Ubuntu systems I
tried this in, both of which are plain out-of-the-box installations that
definitely have X11 and pkg-config installed and working. It doesn't appear
to be in /usr/local/lib/pkgconfig or any alternative site, either. I don't
see how the NTK package would ever install on many conventional Linux
distributions.

Am I missing something?

Thanks,
Bill
t***@tuxfamily.org
2017-01-17 23:56:19 UTC
Permalink
Post by William Pentney
I've tried to install NTK on both a Raspberry Pi 3 and an Ubuntu 16.04
distro, so as to install Non, and both times it fails with
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for 'g++' (C++ compiler) : /usr/bin/g++
['/usr/bin/pkg-config']
Checking for 'x11' : not found
The configuration failed
(complete log in /home/pentney/ntk/build/config.log)
It seems to be looking for a x11.pc file that isn't there - from
Checking for 'x11'
['/usr/bin/pkg-config', '--cflags', '--libs', 'x11']
err: Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
There is no x11.pc file on either the Raspbian or the Ubuntu systems I
tried this in, both of which are plain out-of-the-box installations
that definitely have X11 and pkg-config installed and working. It
doesn't appear to be in /usr/local/lib/pkgconfig or any alternative
site, either. I don't see how the NTK package would ever install on
many conventional Linux distributions.
Am I missing something?
Thanks,
Bill
You seems to be missing the X11 headers. On a debian (or related system)
they are provided by the libx11-dev package.

Hope that helps.
Olivier
J. Liles
2017-01-17 23:56:31 UTC
Permalink
Post by William Pentney
I've tried to install NTK on both a Raspberry Pi 3 and an Ubuntu 16.04
distro, so as to install Non, and both times it fails with
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for 'g++' (C++ compiler) : /usr/bin/g++
['/usr/bin/pkg-config']
Checking for 'x11' : not found
The configuration failed
(complete log in /home/pentney/ntk/build/config.log)
It seems to be looking for a x11.pc file that isn't there - from
Checking for 'x11'
['/usr/bin/pkg-config', '--cflags', '--libs', 'x11']
err: Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
There is no x11.pc file on either the Raspbian or the Ubuntu systems I
tried this in, both of which are plain out-of-the-box installations that
definitely have X11 and pkg-config installed and working. It doesn't appear
to be in /usr/local/lib/pkgconfig or any alternative site, either. I don't
see how the NTK package would ever install on many conventional Linux
distributions.
Am I missing something?
Thanks,
Billl
Quite. In order to compile software, you need to install not just the
runtime dependencies, but the build dependencies, which in this case is (at
least) the package libx11-dev.

apt-get build-dep libfltk1.3 will get you started.

Loading...