简体   繁体   English

Makefile错误3

[英]Makefile Error 3

Related Problem 相关问题

I have compiled OpenV 3.1 with Qt Creator 3.6.0 32bits in Win10 machine. 我已经在Win10机器中使用Qt Creator 3.6.0 32bits编译了OpenV 3.1。

While building a sample OpenCV program it gives me [Makefile]Error 3 with these details: 在构建示例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"

The code is: 代码是:

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

Can someone show me where the problem is? 有人可以告诉我问题出在哪里吗? Thanks in advance. 提前致谢。

You are missing the line continuation character on the LIBS += line. 您缺少LIBS + =行上的行继续符。

Change 更改

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM