i trying build glib-networking-2.40.1. having trouble make step.
configure step
~/gstreamer/plugins/recommended/good/glib-networking-2.40.1 $ sudo ./configure --disable-glibtest --host=arm-linux-gnueabi --prefix=$discimage/usr/local/ --includedir=$discimage/usr/include/glib-2.0 --libdir=$discimage/usr/lib/arm-linux-gnueabi --libdir=$discimage/usr/lib --exec-prefix=$discimage/usr/local/ --includedir=$discimage/home/ubuntu/gstreamer/plugins/recommended/gstreamer/glib-2.40.0/include --includedir=$discimage/home/ubuntu/gstreamer/plugins/recommended/gstreamer/glib-2.40.0/glib --with-ca-certificates=/etc/ssl/ca-bundle.crt --includedir=$discimage/home/ubuntu/gstreamer/plugins/recommended/good/gnutls-3.3.7/ --includedir=$discimage/home/ubuntu/gstreamer/plugins/recommended/gstreamer/glib-2.40.0/ --with-gnutls=/home/ubuntu/gstreamer/plugins/recommended/good/gnutls-3.3.7/ --libdir=/usr/lib/arm-linux-gnueabihf/ --libdir=/usr/lib --libdir=/usr/lib/arm-linux-gnueabi --libdir=/usr/lib/arm-linux-gnueabihf/ --libdir=/home/ubuntu/gstreamer/plugins/recommended/gstreamer/glib-2.40.0/gio/.libs/
then try
sudo make
and error
cc gnutls-module.lo gnutls-module.c:22:21: fatal error: gio/gio.h: no such file or directory
gio.h located at
/home/ubuntu/gstreamer/plugins/recommended/gstreamer/glib-2.40.0/gio/
which included in configure step
also have libgio-2.0.so located at
/usr/lib/libgio-2.0.so
and
/usr/lib/arm-linux-gnueabihf/gio/libgio-2.0.so.0
and
/usr/lib/libgio-2.0.so.0
all of included in configure
pkg-config gives
sudo pkg-config --libs --cflags gio-2.0
-pthread -i/usr/include/glib-2.0 -i/usr/lib/glib-2.0/include -lgio-2.0 -lgobject-2.0 -lglib-2.0
any appreciated
the --includedir
, --libdir
arguments configure supposed tell package install own headers , libraries, not find other headers , libraries. should not need use arguments.
making mistake when compiled glib presumably why gio.h
located @ /home/ubuntu/gstreamer/plugins/recommended/gstreamer/glib-2.40.0/gio/
instead of @ /usr/include
or /usr/local/include
.
instead, output of pkg-config should tell program find headers , libraries. if you've installed package properly, pkg-config's output should correct. idea instead of researching libraries live , passing paths configure, each library installs pkg-config file has information, if know pkg-config files are, don't need know else.
so should uninstall, recompile, , reinstall packages you've been compiling, reconfiguring them without --include
, --libdir
arguments.
Comments
Post a Comment