gpt4 book ai didi

c++ - '../controlpanel.ui' 需要 Qt : No rule to make target 'ui_controlpanel.h' ,。停止

转载 作者:太空狗 更新时间:2023-10-29 20:12:12 26 4
gpt4 key购买 nike

我在 Qt Creator 上遇到了一个很奇怪的问题。

:-1: error: No rule to make target '../controlpanel.ui', needed by 'ui_controlpanel.h'.  Stop.


mingw32-make[1]: *** No rule to make target '../controlpanel.ui', needed by 'ui_controlpanel.h'. Stop.
mingw32-make: *** [debug] Error 2
makefile:34: recipe for target 'debug' failed
22:43:11: The process "C:\Qt\Qt5.4.0\Tools\mingw491_32\bin\mingw32-make.exe" exited with code 2.

这个项目之前编译好了。但是现在我遇到了编译错误。我在 Windows 上使用 Qt creator 5.4.0。

特别是,该项目在Mac版Qt Creator 5.4.0上编译无任何错误。

出了什么问题?我该如何解决这个错误?

这是一个 qmake 文件。

QT       += core gui opengl network multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = LaserdockVisualizer
TEMPLATE = app
INCLUDEPATH += .

# dwarf-2 for profiling
#QMAKE_CXXFLAGS += -gdwarf-2

include(../../LaserdockCore/LaserdockCore.pri)
QMAKE_MAC_SDK = macosx10.10

SOURCES += \
main.cpp \
LaserdockVisualizer/LaserdockVisualizerDelegate.cpp \
LaserdockVisualizer/Form/LaserdockMainWindow.cpp \
...
LaserdockVisualizer/Visualizations/Visualizers/Appakabar/Test/ldAppakabarTestSoundEventUtilVisualizer.cpp \
LaserdockVisualizer/Visualizations/Visualizers/Appakabar/Test/ldAppakabarTestSoundEventUtilVisualizerControlPanel.cpp

HEADERS += \
LaserdockVisualizer/LaserdockVisualizerDelegate.h \
LaserdockVisualizer/Form/LaserdockMainWindow.h \
...
LaserdockVisualizer/Visualizations/Visualizers/Appakabar/Test/ldAppakabarTestSoundEventUtilVisualizer.h \
LaserdockVisualizer/Visualizations/Visualizers/Appakabar/Test/ldAppakabarTestSoundEventUtilVisualizerControlPanel.h


FORMS += \
LaserdockVisualizer/Form/LaserdockMainWindow.ui \
LaserdockVisualizer/Form/ldVisualizerControlPanelEmpty.ui \
LaserdockVisualizer/Visualizations/Visualizers/ld3dCubeVisualizerControlPanel.ui \
LaserdockVisualizer/Visualizations/Visualizers/Test/ldTestControlVisualizerControlPanel.ui \
LaserdockVisualizer/Visualizations/Visualizers/Feldspar/ldWalkerVisualizerControlPanel.ui \
LaserdockVisualizer/Visualizations/Visualizers/Test/ldTestCircleVisualizerControlPanel.ui \
LaserdockVisualizer/Visualizations/Visualizers/Feldspar/test/ldMusicReactorTestVisualizerControlPanel.ui \
LaserdockVisualizer/Visualizations/Visualizers/Feldspar/test/ldFrameTestVisualizerControlPanel.ui \
LaserdockVisualizer/Visualizations/Visualizers/Appakabar/Test/ldappakabartestsoundeventutilvisualizercontrolpanel.ui

最佳答案

我得到了解决方案。

在Qt Creator上,进入“Projects Tab”,然后你可以看到“Shadow build”。取消选中并编译。错误消失。

关于c++ - '../controlpanel.ui' 需要 Qt : No rule to make target 'ui_controlpanel.h' ,。停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28767895/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com