Need help with pkg-config and cross-compilation
Solved
Installation and Deployment
-
Hi. I trying to cross-compile Qt5 for imx6 with glib, zlib, fontconfig, libxml2, libxml-jpeg, libpng and etc. These libraries already pre-compiled and pre-installed to my $SYSROOT/lib directory:
$ ls /home/eugene/Desktop/qt5/sysroot/lib/pkgconfig expat.pc gio-2.0.pc gmodule-2.0.pc gobject-2.0.pc libffi.pc libpcre2-posix.pc libxml-2.0.pc wayland-client.pc wayland-egl.pc zlib.pc fontconfig.pc gio-unix-2.0.pc gmodule-export-2.0.pc gthread-2.0.pc libjpeg.pc libpng16.pc libxslt.pc wayland-cursor.pc wayland-scanner.pc freetype2.pc glib-2.0.pc gmodule-no-export-2.0.pc libexslt.pc libpcre2-8.pc libpng.pc uuid.pc wayland-egl-backend.pc wayland-server.pc
Howewer configuration was excepted:
ERROR: Feature 'system-zlib' was enabled, but the pre-condition 'libs.zlib' failed. ERROR: Feature 'glib' was enabled, but the pre-condition 'libs.glib' failed. ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed. ERROR: Feature 'system-freetype' was enabled, but the pre-condition 'features.freetype && libs.freetype' failed. ERROR: Feature 'fontconfig' was enabled, but the pre-condition '!config.win32 && features.system-freetype && libs.fontconfig' failed. ERROR: Feature 'system-jpeg' was enabled, but the pre-condition 'features.jpeg && libs.libjpeg' failed. ERROR: Feature 'system-png' was enabled, but the pre-condition 'features.png && libs.libpng' failed. BUILD FAILED: qt
I have already setted PKG_CONFIG_PATH:
export PKG_CONFIG_PATH=$SYSROOT/lib/pkgconfig:$SYSROOT/share/pkgconfig
I also tried to set PKG_CONFIG_LIBDIR:
unset PKG_CONFIG_PATH export PKG_CONFIG_LIBDIR=$SYSROOT/lib/pkgconfig:$SYSROOT/share/pkgconfig
and other variants, but without success.
here is config options:-opensource -confirm-license \ $Qt_DEVICE_ARG \ $Qt_DEVICE_OPT_ARG \ -sysroot ${SYSROOT} \ -no-gcc-sysroot \ -prefix / \ -release \ -shared \ -reduce-exports \ -make libs \ -system-zlib \ -system-libjpeg \ -system-libpng \ -system-freetype \ -glib \ -fontconfig \ -qt-xcb \ -no-qml-debug \ -no-use-gold-linker \ -no-eglfs \ -no-mtdev \ -no-opengl \ -no-tslib \ -no-pulseaudio \ -no-alsa \ -no-rpath \ -no-cups \ -no-kms \ -no-pch \ -no-directfb \ -no-sql-sqlite \ -no-gif \ -skip qtactiveqt \ -skip qtconnectivity \ -skip qtdoc \ -skip qtenginio \ -skip qtgraphicaleffects \ -skip qtimageformats \ -skip qtlocation \ -skip qtsensors \ -skip qtsvg \ -nomake tools \ -nomake tests \ -nomake examples \ -v
What I'm doing wrong?
Thanks!