嗯,我这边有一点问题,不知道如何修复它。
我必须为raspberryPI交叉编译qt5,所以我按照初学者指南:RaspberryPi Beginners Guide
我的操作系统是ArchLinux x86_64,因为指南适用于ubuntu / debian,所以有些困难。
因此,在安装了一些软件包之后,该指南将一直有效,直到下一行:
./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi
在这个“配置”的第2阶段,我得到以下输出:
Running configuration tests (phase 2)...
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set and
the host's .pc files would be used (even if you set PKG_CONFIG_PATH).
Set this variable to the directory that contains target .pc files
for pkg-config to function correctly when cross-compiling or
use -pkg-config to override this test.
Note: PKG_CONFIG_SYSROOT_DIR automatically set to /mnt/rasp-pi-rootfs
Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
The OpenGL ES 2.0 functionality test failed!
Use of pkg-config is not enabled, maybe you want to pass -pkg-config?
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
/home/test23/qt5/qtbase/mkspecs/devices/linux-rasp-pi-g++.
-
Set this varibale to the directory that contains target .pc files:
如何找到我需要的目录?
如何设置变量?
这是必要的还是有另一种方法可以做到这一点?
Use of pkg-config is not enabled:
那么如何启用pkg-config?
You need to modify the include and library search paths:
我必须为指定的变量设置哪个值? 是否有必要这样做?
是否有一些软件包/驱动程序或其他我必须安装的东西?
我已经尝试通过以下方式找出$ PKG_CONFIG_PATH:
echo $PKG_CONFIG_PATH
但我只得到一条线......
在这种情况下,我真的很感激你的帮助,因为我找不到包含有关这类问题的信息的文献或维基。