使用 make 构建 sevensquare 时出现“g++:未找到命令”

使用 make 构建 sevensquare 时出现“g++:未找到命令”

我正在尝试安装 sevensquare,以便将手机镜像到电脑上,但收到错误。有人能解释一下吗?

sam@sam-System-Product-Name:~/sevensquare$ make
mkdir -p build
(cd build && qmake -o Makefile ../seven-square.pro)
./contributes/generate-keymap.sh
Generate keymap header from src/keycodes.h...58 key map generated in src/keymap-generated.h.
(cd build && make)
make[1]: Entering directory `/home/sam/sevensquare/build'
Makefile:209: warning: overriding commands for target `moc_adbfb.cpp'
Makefile:204: warning: ignoring old commands for target `moc_adbfb.cpp'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../sevensquare -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I../../sevensquare -I. -o main.o ../src/main.cpp
make[1]: g++: Command not found
make[1]: *** [main.o] Error 127
make[1]: Leaving directory `/home/sam/sevensquare/build'
make: *** [app] Error 2

非常感谢!

答案1

您的系统上未安装 C++ 编译器。运行:

sudo apt-get install build-essential

相关内容