构建项目时遇到此问题:
17:49:24: Running steps for project SceneVisualizer...
17:49:24: Configuration unchanged, skipping qmake step.
17:49:24: Starting: "D:\Qt\Qt5.2.0\Tools\QtCreator\bin\jom.exe"
D:\Qt\Qt5.2.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
Cannot add commands to previously defined target debug\moc_previewwindow.cpp.
Cannot add commands to previously defined target debug\moc_visualizerwindow.cpp.
17:49:24: The process "D:\Qt\Qt5.2.0\Tools\QtCreator\bin\jom.exe" exited normally.
17:49:24: Elapsed time: 00:00.
当我选择从QT运行项目时:
Starting D:\filipbp\Projekty, zdrojove kody\build-SceneVisualizer-Desktop_Qt_5_2_0_MSVC2010_32bit_OpenGL-Debug\debug\SceneVisualizer.exe...
The program has unexpectedly finished.
D:\filipbp\Projekty, zdrojove kody\build-SceneVisualizer-Desktop_Qt_5_2_0_MSVC2010_32bit_OpenGL-Debug\debug\SceneVisualizer.exe crashed
当我从外部运行.exe时,它正确启动,但如果我选择加载准备好的场景,程序会崩溃。
我不知道该怎么办,请帮忙。
答案 0 :(得分:3)
我有这个问题。在我的情况下,它发生了,因为我在.pro
中添加了两次相同的文件