我正在尝试从 github 安装 gmapping 包https://github.com/nii2121/gmapping/blob/master/docs/Instructions.txt 在我跑完之后
./configure
结果是
No 'CXX' environment variable found, using g++.
No 'CC' environment variable found, using gcc.
Using C++ compiler: g++
Using C compiler: gcc
Checking for Qt 3.x ...
*** Qt 3.x not found please set QT_INCLUDE, QT_LIB, MOC by hand
有人有想法吗?提前谢谢!
答案1
您需要一些开发包:
sudo apt-get install libqt4-dev
根据此补丁编辑 ./configure:
@@ -48,6 +48,11 @@
fi ;
done ;
+
+MOC="/usr/bin/moc" ;
+QT_LIB="-L /usr/lib/x86_64-linux-gnu/ -lqt-mt" ;
+QT_INCLUDE="-I /usr/include/qt"
+
if [ ! "$QT_INCLUDE" ]; then
echo -e "\n\n*** Qt 3.x not found please set QT_INCLUDE, QT_LIB, MOC by hand\n\a"
exit 1
@@ -64,6 +69,8 @@
fi ;
done ;
+UIC="/usr/usr/bin/uic";
+
if [ ! "$UIC" ]; then
echo -e "\n\n*** uic not found please set UIC by hand\n\a"
exit 1
这将帮助你更进一步,但你仍然需要安装卡门某处 - 或许跟随本指南?
补充说明一下,如果你想知道 configure 脚本需要哪些软件包提供的文件,apt 文件搜索是你的朋友:
sudo apt-get install apt-file
apt-file update
apt-file search bin/uic # for example