开源改变世界!!

Ubuntu 16.04 amd64下编译失败 #212

推推 grbl 2年前 (2023-01-31) 96次浏览
打开
DmitryPan 打开了这个问题 2018 年 1 月 30 日 · 2 条评论
打开

Ubuntu 16.04 amd64下编译失败#212

DmitryPan 打开了这个问题 2018 年 1 月 30 日 · 2 条评论

注释

Ubuntu 16.04 amd64下编译失败 #212

您好,感谢伟大的应用程序!

不幸的是,在 Ubuntu 16.04 amd64、Qt 5.5.1 下编译失败。我已经安装了之前帖子中提到的依赖包并完成了以下步骤。

git clone https://github.com/Denvi/Candle.git
cd Candle/src
qmake -project
qmake
make

最后一条命令的输出是

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o frmabout.o frmabout.cpp
In file included from frmabout.cpp:5:0:
frmabout.h:7:19: fatal error: QDialog: No such file or directory
compilation terminated.
Makefile:606: recipe for target 'frmabout.o' failed
make: *** [frmabout.o] Error 1

我在 /usr/include/x86_64-linux-gnu/qt5/QtWidgets 目录中有 QDialog,所以我尝试手动运行

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o frmabout.o frmabout.cpp

输出:

frmabout.cpp:6:25: fatal error: ui_frmabout.h: No such file or directory

有人可以帮我编译这个应用程序吗?也许有人有预建的 DEB 包?

Ubuntu 16.04 amd64下编译失败 #212

试试“qmake candle.pro; make”

Ubuntu 16.04 amd64下编译失败 #212

我在相同的配置上遇到了类似的问题;最终通过记住在 /src 中解决,然后只是 qmake 和 make (.pro 已经存在)

免费注册 在 GitHub 上加入此对话。已有帐户? 登录评论
标签
还没有
项目

还没有

发展

没有分支机构或拉取请求

3人参加
Ubuntu 16.04 amd64下编译失败 #212Ubuntu 16.04 amd64下编译失败 #212Ubuntu 16.04 amd64下编译失败 #212

喜欢 (0)