gpt4 book ai didi

c++ - 生成文件错误 3

转载 作者:太空宇宙 更新时间:2023-11-03 22:53:19 24 4
gpt4 key购买 nike

Related Problem

我在 Win10 机器上用 Qt Creator 3.6.0 32bits 编译了 OpenV 3.1。

在构建示例 OpenCV 程序时,它向我提供了包含以下详细信息的 [Makefile]Error 3:

10:02:32: Running steps for project Sanj...
10:02:32: Configuration unchanged, skipping qmake step.
10:02:32: Starting: "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe"
C:\Qt\5.5\mingw492_32\bin\qmake.exe -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile ..\Sanj\Sanj.pro
makefile:195: recipe for target 'Makefile' failed
C:/Users/Samir Chohg/Desktop/Sanj/Sanj.pro:27: Extra characters after test expression.
Error processing project file: ..\Sanj\Sanj.pro
mingw32-make: *** [Makefile] Error 3
10:02:32: The process "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project Sanj (kit: Desktop Qt 5.5.1 MinGW 32bit)
When executing step "Make"

代码是:

QT       += core
QT -= gui

TARGET = Un
CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

SOURCES += main.cpp

INCLUDEPATH += C:/opencv/qttest/install/include

LIBS += -LC:/opencv/qttest/install/x86/mingw/bin
-lopencv_core310 \
-lopencv_highgui310 \
-lopencv_imgproc310 \
-lopencv_features2d310 \
-lopencv_calib3d310

谁能告诉我问题出在哪里?提前致谢。

最佳答案

您在 LIBS += 行中缺少行继续字符。

改变

LIBS += -LC:/opencv/qttest/install/x86/mingw/bin
-lopencv_core310\
-lopencv_highgui310\
-lopencv_imgproc310\
-lopencv_features2d310\
-lopencv_calib3d310


LIBS += -LC:/opencv/qttest/install/x86/mingw/bin\
-lopencv_core310\
-lopencv_highgui310\
-lopencv_imgproc310\
-lopencv_features2d310\
-lopencv_calib3d310

关于c++ - 生成文件错误 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35190802/

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