打开CV项目文件在Eclipse(Android)中构建Open CV项目时出错 [英] Open CV Project files gives an error during building Open CV project in Eclipse(Android)

查看:102
本文介绍了打开CV项目文件在Eclipse(Android)中构建Open CV项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在subdir.mk文件中收到错误,当我构建我的Open CV项目时,在构建控制台后我得到以下错误加警告,我正在使用OpenCV2.0。

< pre lang =text> ****构建配置项目测试调试****

make all
构建文件:../ main.cpp
调用:Cygwin C ++编译器
g ++ -IC:\ OpenCV2.0 -IC:\ android programs\testing-O0 -g3 -Wall -c -fmessage-length = 0 -MMD -MP -MFmain.d-MTmain.d-omain.o../ main.cpp
/ bin / sh:-c:第0行:寻找匹配时出现意外的EOF ``'
/ bin / sh:-c:第1行:语法错误:意外结束文件
subdir.mk:18:目标`main.o'的配方失败
make: *** [main.o]错误1





好​​的,我正在显示内容,意思是代码 subdir.mkfile

 ############################# ################################################## #
#自动生成的文件。不要编辑!
############################################### ##################################

#从这些工具添加输入和输出对构建变量的调用
CPP_SRCS + = \
../main.cpp

OBJS + = \
./main.o

CPP_DEPS + = \
./main.d


#每个子目录必须提供构建来源的规则
%.o :. ./%.cpp
@echo'构建文件:$<'
@echo'调用:Cygwin C ++编译器'
g ++ -IC:\ OpenCV2.0 -IC:\ OpenCV2.0 \ include-O0 -g3 -Wall -c -fmessage-length = 0 -MMD -MP -MF$(@:%。o =%。d) - MT$(@:%。o =%。d) - o$ @$ <
@echo'完成建筑:$<'
@echo''

解决方案

<'
@echo'调用:Cygwin C ++编译器'
g ++ -IC:\ OpenCV2.0 -IC:\ OpenCV2.0 \ include-O0 -g3 -Wall -c -fmessage-length = 0 -MMD -MP -MF


(@:%。o =%。d) - MT


(@:%。o =%。d) - o


I am getting error in subdir.mk file, when I build my Open CV project, after building in Console I am getting the below errors plus warning,I am using OpenCV2.0.

**** Build of configuration Debug for project testing ****

 make all
 Building file: ../main.cpp
 Invoking: Cygwin C++ Compiler
  g++ -I"C:\OpenCV2.0 -I"C:\android programs\testing" -O0 -g3 -Wall -c -fmessage- length=0 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.cpp"
 /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
 /bin/sh: -c: line 1: syntax error: unexpected end of file
  subdir.mk:18: recipe for target `main.o' failed
  make: *** [main.o] Error 1



Ok, i am showing the content, means the code of "subdir.mk" file

################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables 
CPP_SRCS += \
../main.cpp 

OBJS += \
./main.o 

CPP_DEPS += \
./main.d 


# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.cpp
	@echo 'Building file: $<'
	@echo 'Invoking: Cygwin C++ Compiler'
	g++ -I"C:\OpenCV2.0 -I"C:\OpenCV2.0\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
	@echo 'Finished building: $<'
	@echo ' '

解决方案

<' @echo 'Invoking: Cygwin C++ Compiler' g++ -I"C:\OpenCV2.0 -I"C:\OpenCV2.0\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"


(@:%.o=%.d)" -MT"


(@:%.o=%.d)" -o"


这篇关于打开CV项目文件在Eclipse(Android)中构建Open CV项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆