我正在尝试使用qt在linux上编译windows软件,但每次尝试编译时都会出现以下错误:
i686-w64-mingw32.static-g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++11 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I/mxe/usr/i686-w64-mingw32.static/qt5/include -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtSvg -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtWidgets -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtGui -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtNetwork -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtCore -Irelease -I. -I/mxe/usr/i686-w64-mingw32.static/qt5/mkspecs/win32-g++ -o release/inventoryview.o View/inventoryview.cpp
在View/inventoryview中包含的文件中。cpp:2:0:
/ui\U inventoryview。h: 21:50:致命错误:Widget\Inventory\inventoryplusbutton。h: 没有这样的文件或目录
编译已终止。
Makefile。版本:6009:目标版本/库存视图的配方。“o”失败
make[1]:正在退出目录“/builds/Skytwoo/qt-test/Synaps-Software”
make[1]:
生成文件:36:目标“发布”的配方失败
[发布]错误2
我检查了多次,每个文件夹都存在。
使用此命令,所有内容都在Ubuntu上的docker容器中运行。
make -f Makefile.Release