opencv3.1.0交叉编译出错

我在给mini2440移植opencv3.1.0的时候,make编译opencv过程中出错了。log如下:

CMakeFiles/opencv_perf_core.dir/perf/perf_math.cpp.obj: In function cv::Mat::~Mat()':
perf_math.cpp.text._ZN2cv3MatD1Ev[cv::Mat::~Mat()]+0x1c): undefined reference to
__sync_fetch_and_add_4'
CMakeFiles/opencv_perf_core.dir/perf/perf_compare.cpp.obj: In function Size_MatType_CmpType_compare:erfTestBody()':
perf_compare.cpp.text._ZN28Size_MatType_CmpType_compare12PerfTestBodyEv+0x30c): undefined reference to
__sync_fetch_and_add_4'
perf_compare.cpp.text._ZN28Size_MatType_CmpType_compare12PerfTestBodyEv+0x378): undefined reference to __sync_fetch_and_add_4'
perf_compare.cpp.text._ZN28Size_MatType_CmpType_compare12PerfTestBodyEv+0x3ec): undefined reference to
__sync_fetch_and_add_4'
CMakeFiles/opencv_perf_core.dir/perf/perf_compare.cpp.obj: In function Size_MatType_CmpType_compareScalar:erfTestBody()':
perf_compare.cpp.text._ZN34Size_MatType_CmpType_compareScalar12PerfTestBodyEv+0x32c): undefined reference to
__sync_fetch_and_add_4'
CMakeFiles/opencv_perf_core.dir/perf/perf_compare.cpp.obj:perf_compare.cpp.text._ZN34Size_MatType_CmpType_compareScalar12PerfTestBodyEv+0x3a0): more undefined references to `__sync_fetch_and_add_4' follow
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_perf_core] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
make: *** [all] Error 2

我用的是Ubuntu14.04,32位虚拟机。
查网上说是CMAKE_C_FLAGS要设为-march=armv4t 可是我安装提示设置了CMAKE_C_FLAGS 和 CMAKE_CXX_FLAGS的值,错误还是没有消失。
我试过了opencv3.1。0和opencv3.2.0了,都会出现这个问题。因为项目需求要用到opencv3 所以只能自己编译最新版,,泪奔
有大神遇到过这个问题吗?

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
交叉编译出错
我先用本地编译器g++,编译成功,但是用交叉编译时却出错。rn一、 本地编译rn1、 Makefile文件编写rnSYDemo:modulapi.orn g++ -g modulapi.o SYProtocol.a –o SYDemornmodulapi.o:modulapi.cpp SYProtocol.hrn g++ -g –c modulapi.cpp –o modulapi.ornclean:rn rm –f *.o SYDemorn2、 make编译成功rn3、 ./SYDemo设备可以运行rn二、 交叉编译rn1、Makefile文件编写rnSYDemo:modulapi.orn arm-linux-g++ -g modulapi.o SYProtocol.a –o SYDemornmodulapi.o:modulapi.cpp SYProtocol.hrn arm-linux-g++ -g –c modulapi.cpp –o modulapi.ornclean:rn rm –f *.o SYDemorn出错,结果如下:rn2、改用单步编译rn (1)编译modulapi.o文件rn arm-linux-g++ -g –c modulapi.cpp –o modulapi.orn 这一步没有出错rn (2)编译SYDemo文件,出错,结果如下:rn [root@localhost root]# arm-linux-g++ -g -c modulapi.cpp -o modulapi.orn[root@localhost root]# arm-linux-g++ -g modulapi.o SYProtocol.a -o SYDemorn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rnSYProtocol.a: could not read symbols: File in wrong formatrncollect2: ld returned 1 exit statusrn请教出错原因rn
opencv3.1.0在ubutun14.04上编译出错问题
我在编译opencv的时候,总是出现这个错误: [ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/rand.cpp.o [ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.c
交叉编译出错问题请教
我先用本地编译器g++,编译成功,但是用交叉编译时却出错。rn一、 本地编译rn1、 Makefile文件编写rnSYDemo:modulapi.orn g++ -g modulapi.o SYProtocol.a –o SYDemornmodulapi.o:modulapi.cpp SYProtocol.hrn g++ -g –c modulapi.cpp –o modulapi.ornclean:rn rm –f *.o SYDemorn2、 make编译成功rn3、 ./SYDemo设备可以运行rn二、 交叉编译rn1、Makefile文件编写rnSYDemo:modulapi.orn arm-linux-g++ -g modulapi.o SYProtocol.a –o SYDemornmodulapi.o:modulapi.cpp SYProtocol.hrn arm-linux-g++ -g –c modulapi.cpp –o modulapi.ornclean:rn rm –f *.o SYDemorn出错,结果如下:rn2、改用单步编译rn (1)编译modulapi.o文件rn arm-linux-g++ -g –c modulapi.cpp –o modulapi.orn 这一步没有出错rn (2)编译SYDemo文件,出错,结果如下:rn [root@localhost root]# arm-linux-g++ -g -c modulapi.cpp -o modulapi.orn[root@localhost root]# arm-linux-g++ -g modulapi.o SYProtocol.a -o SYDemorn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rn/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: SYProtocol.a(SYProtocol.o): Relocations in generic ELF (EM: 3)rnSYProtocol.a: could not read symbols: File in wrong formatrncollect2: ld returned 1 exit statusrn请教出错原因rn
libusb的交叉编译出错
本人是新手,最近想学习在android系统上移植USB,3G模块rn之前用arm-none-linux-gnueabi进行交叉编译,可以编译成功,但移植到板子上的android系统时却显示rn./usb_modeswitch command not foundrn怀疑是由于板子的android系统是用arm-eabi交叉编译的。rn之后我便想用arm-eabi交叉编译libusb,结果出错,请大家帮帮我看这错误是怎么回事。rn具体错误如下:rnWSCEC@ubuntu:~$ cd 3G/123/libusb-0.1.12/rnWSCEC@ubuntu:~/3G/123/libusb-0.1.12$ source ../anvrnWSCEC@ubuntu:~/3G/123/libusb-0.1.12$ export ROOT=/home/WSCEC/Android/out/target/product/omap3evm/objrnWSCEC@ubuntu:~/3G/123/libusb-0.1.12$ ./configure --build=i686-linux --host=arm-eabi CPPFLAGS="-I$ROOT/include/" CFLAGS="-nostdlib" LDFLAGS="-Wl,-rpath-link=$ROOT/lib/ -L$ROOT/lib/" LIBS="-lc" --prefix=/home/WSCEC/3G/123/libusb-0.1.12/installrnchecking for a BSD-compatible install... /usr/bin/install -crnchecking whether build environment is sane... yesrnchecking for gawk... nornchecking for mawk... mawkrn……(中间省略)rnchecking whether stripping libraries is possible... yesrnappending configuration tag "F77" to libtoolrnchecking for what USB OS support... unknown operating systemrnconfigure: error: libusb does not support compiling for arm-unknown-eabirnrn其实anv是我弄的环境变量。rnrn后面我看了下config.log:如下:rnThis file contains any messages produced by compilers whilernrunning configure, to aid debugging if configure makes a mistake.rnrnIt was created by libusb configure 0.1.12, which wasrngenerated by GNU Autoconf 2.59. Invocation command line wasrnrn $ ./configure --build=i686-linux --host=arm-eabi CPPFLAGS=-I/home/WSCEC/Android/out/target/product/omap3evm/obj/include/ CFLAGS=-nostdlib LDFLAGS=-Wl,-rpath-link=/home/WSCEC/Android/out/target/product/omap3evm/obj/lib/ -L/home/WSCEC/Android/out/target/product/omap3evm/obj/lib/ LIBS=-lc --prefix=/home/WSCEC/3G/123/libusb-0.1.12/installrnrn## --------- ##rn## Platform. ##rn## --------- ##rnrnhostname = ubunturnuname -m = i686rnuname -r = 2.6.38-10-genericrnuname -s = Linuxrnuname -v = #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011rn……(省略)rnconfigure:2828: $? = 0rnconfigure:2832: test -z rn || test ! -s conftest.errrnconfigure:2835: $? = 0rnconfigure:2838: test -s conftest.ornconfigure:2841: $? = 0rnconfigure:2852: result: yesrnconfigure:2869: checking for arm-eabi-gcc option to accept ANSI Crnconfigure:2939: arm-eabi-gcc -c -nostdlib -I/home/WSCEC/Android/out/target/product/omap3evm/obj/include/ conftest.c >&5rnconftest.c:17:19: error: stdio.h: No such file or directoryrnconftest.c:18:23: error: sys/types.h: No such file or directoryrnconftest.c:19:22: error: sys/stat.h: No such file or directoryrnconftest.c:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' tokenrnconftest.c:51: error: expected declaration specifiers or '...' before 'FILE'rn……rn#endifrn#ifdef __cplusplusrnvoid exit (int);rnrnconfigure: exit 1rnrn求各位大神们 帮帮我看看怎么回事
arm-linux-gcc交叉编译出错
在make的时候,出现如下错误:rndrivers/char/s3c_aes_fifo.S:2: Warning: ignoring changed section attributes for .textrndrivers/char/s3c_aes_fifo.S:8: Error: bad instruction `push r4-r11'rndrivers/char/s3c_aes_fifo.S:12: Error: bad instruction `ldm r0!,r4-r11'rndrivers/char/s3c_aes_fifo.S:13: Error: bad instruction `stm r1!,r4-r11'rndrivers/char/s3c_aes_fifo.S:18: Error: bad instruction `pop r4-r11'rndrivers/char/s3c_aes_fifo.S:26: Error: bad instruction `push r4-r11'rndrivers/char/s3c_aes_fifo.S:30: Error: bad instruction `ldm r0!,r4-r11'rndrivers/char/s3c_aes_fifo.S:32: Error: bad instruction `stm r1!,r4-r11'rndrivers/char/s3c_aes_fifo.S:36: Error: bad instruction `pop r4-r11'rnrn为啥都不认识了呢;求解答。
ucLinux交叉编译出错!求助!
操作系统是Fedora8, 编译环境m68k-elf-tools20031003.shrnmakefile中在OBJS中增加了所有依赖的.o文件,另外在其下一行添加了LDLIBS += -lpthread,打开多线程。rn报错如下:rn/DTM301/DTM301-V3/uClinux-dist/user/mygprs/test.c rnundefined reference to `getpagesize' rnundefined reference to `sigemptyset' rnundefined reference to `sigaddset' rnundefined reference to `on_exit' rnundefined reference to `malloc' rnundefined reference to `pipe' rnundefined reference to `free' rnundefined reference to `clone' rnundefined reference to `clone' rnundefined reference to `free' rnundefined reference to `sched_setscheduler' rnundefined reference to `sched_getscheduler' rnundefined reference to `sched_getparam' rnundefined reference to `free' rnundefined reference to `sigemptyset' rnundefined reference to `sigdelset' rnundefined reference to `sigsuspend' rnundefined reference to `__sigsetjmp' rnundefined reference to `sigemptyset' rnundefined reference to `sigaddset' rnundefined reference to `gettimeofday' rnundefined reference to `__libc_siglongjmp' rnundefined reference to `__libc_siglongjmp' rnundefined reference to `malloc' rnundefined reference to `sched_yield' rnundefined reference to `__libc_fsync' rnundefined reference to `__libc_lseek' rnundefined reference to `__libc_msync' rnundefined reference to `__libc_open64' rnundefined reference to `__libc_pause' rnundefined reference to `__libc_pread' rnundefined reference to `__libc_pwrite' rnundefined reference to `__libc_read' rnundefined reference to `__libc_system' rnundefined reference to `__libc_tcdrain' rnundefined reference to `__libc_wait' rnundefined reference to `__libc_waitpid' rnundefined reference to `__libc_accept' rnundefined reference to `__libc_connect' rnundefined reference to `__libc_recv' rnundefined reference to `__libc_recvmsg' rnundefined reference to `__libc_send' rnundefined reference to `__libc_sendmsg' rnundefined reference to `__rpc_thread_destroy' rnundefined reference to `sigfillset' rnundefined reference to `sigdelset' rnundefined reference to `__libc_read' rnundefined reference to `poll' rnundefined reference to `getppid' rnundefined reference to `__libc_read' rnundefined reference to `sched_setscheduler' rnundefined reference to `malloc' rnundefined reference to `getpagesize' rnundefined reference to `sched_getscheduler' rn undefined reference to `sched_getparam' rnundefined reference to `clone' rnundefined reference to `clone' rnundefined reference to `free' rnundefined reference to `free' rnundefined reference to `free' rnundefinereference to `free' rnundefined reference to `__libc_waitpid' rn undefined reference to `sched_get_priority_max' rnundefined reference to `sched_setscheduler' rn undefined reference to `calloc' rnundefined reference to `free' rnundefined reference to `getpagesize' rnundefined reference to `sigemptyset' rnundefined reference to `sigaddset' rnundefined reference to `on_exit' rnundefined reference to `malloc' rnundefined reference to `pipe' rnundefined reference to `free' rnundefined reference to `clone' rnundefined reference to `clone' rnundefined reference to `free' rnundefined reference to `sched_setscheduler' rnundefined reference to `sched_getscheduler' rnundefined reference to `sched_getparam' rnundefined reference to `free' rnundefined reference to `sigemptyset' rnundefined reference to `sigdelset' rnundefined reference to `sigsuspend' rnundefined reference to `__sigsetjmp' rnundefined reference to `sigemptyset' rnundefined reference to `sigaddset' rnundefined reference to `gettimeofday' rnundefined reference to `__libc_siglongjmp' rnundefined reference to `__libc_siglongjmp' rnundefined reference to `malloc' rnundefined reference to `sched_yield' rnundefined reference to `__libc_fsync' rnundefined reference to `__libc_lseek' rnundefined reference to `__libc_msync' rnundefined reference to `__libc_open64' rnundefined reference to `__libc_pause' rnundefined reference to `__libc_pread' rnundefined reference to `__libc_pwrite' rn undefined reference to `__libc_read' rnundefined reference to `__libc_system' rn undefined reference to `__libc_tcdrain' rnundefined reference to `__libc_wait' rnundefined reference to `__libc_waitpid' rnundefined reference to `__libc_accept' rn undefined reference to `__libc_connect' rnundefined reference to `__libc_recv' rnundefined reference to `__libc_recvmsg' rn undefined reference to `__libc_send' rn undefined reference to `__libc_sendmsg' rnundefined reference to `__rpc_thread_destroy' rn undefined reference to `sigfillset' rn undefined reference to `sigdelset' rnundefined reference to `__libc_read' rnundefined reference to `poll' rnundefined reference to `getppid' rnundefined reference to `__libc_read' rn undefined reference to `sched_setscheduler' rn undefined reference to `malloc' rnundefined reference to `getpagesize' rnundefined reference to `sched_getscheduler' rnundefined reference to `sched_getparam' rn undefined reference to `clone' rnundefined reference to `clone' rnundefined reference to `free' rn undefined reference to `free' rn undefined reference to `free' rn undefined reference to `free' rn undefined reference to `__libc_waitpid' rn undefined reference to `sched_get_priority_max' rn undefined reference to `sched_setscheduler' rn undefined reference to `calloc' rnundefined reference to `free'rn高手帮帮忙。
DirectFB交叉编译出错,求助
在编译DirectFB的时候,出现下述问题,至今仍未找到方法,求高手知道
Linux 下openssl交叉编译出错
make时出错:n 报错内容:cc1: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]nIn file included from cryptlib.h:62:0,n from cryptlib.c:117:n/usr/include/stdlib.h:759:34: fatal error: bits/stdlib-bsearch.h: No such file or directoryncompilation terminated.nmake[1]: *** [cryptlib.o] Error 1nmake: *** [build_crypto] Error 1nnn具体编译安装过程如下:nnn安装文件: openssl-1.0.2h.tar.gz nn参考网址: http://blog.csdn.net/zy799894671/article/details/22289039 nn1、 arm-config.sh : nn ./config no-asm shared --prefix=/usr/local/arm-openssl nn 解决1:./config no-asm shared --prefix=/usr/local/arm-openssl --host=arm-xilinx-linux-gnueabi nn 解决4:CC=arm-xilinx-linux-gnueabi-gcc ./config no-asm shared --prefix=/usr/local/arm-opensslnn2、修改MakeFile:nn#CC= gccnCC= arm-xilinx-linux-gnueabi-gccn#CFLAG= -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -march=pentium -DL_ENDIAN -O3 -fomit-frame-pointer -WallnCFLAG= -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_N -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -WallnDEPFLAG= -DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_LIBUNBOUND -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SCTP -DOPENSSL_NO_SSL_TRACE -DOPENSSL_NO_SSL2 -DOPENSSL_NO_STORE -DOPENSSL_NO_UNIT_TEST -DOPENSSL_NO_WEAK_SSL_CIPHERSnPEX_LIBS= nEX_LIBS= -ldlnEXE_EXT= nARFLAGS= n#AR= ar $(ARFLAGS) rnAR= arm-xilinx-linux-gnueabi-ar $(ARFLAGS) rn#RANLIB= /usr/bin/ranlibnRANLIB= arm-xilinx-linux-gnueabi-ranlibn#NM= nmnNM= arm-xilinx-linux-gnueabi-nmnPERL= /usr/bin/perlnTAR= tarnTARFLAGS= --no-recursionn#MAKEDEPPROG= gccnMAKEDEPPROG= arm-xilinx-linux-gnueabi-gccnLIBDIR=libnnnnmake depend后出现错误:nncc1: error: include location "/usr/include" is unsafe for cross-compilation [-Werror=poison-system-directories]ncc1: all warnings being treated as errorsn nn错误分析原因:nn 这种错误在网上有两种可能:nn 1、不能交叉编译到默认目录下,需要编译到单独的文件夹中(之前已经那么做了)nn 2、依赖库需要先交叉编译,这里错误目录是"/usr/include" 故也不是这个问题。nnnn错误解决尝试1:nn将配置后增加--host=arm-xilinx-linux-gnueabi ,详看1点nn然后修改 makefilenn错误不变nnnn错误解决尝试2:nn1步骤后 增加一步 # ./config -tnn错误不变nnnn错误尝试解决3nn2步骤 多修改Makefile文件一处nn#PLATFORM=linux-elfnPLATFORM=arm-xilinx-linux-gnueabinn错误不变nnnn错误尝试解决4nn1步骤 将arm-config.sh前增加为:CC=arm-xilinx-linux-gnueabi-gccnn错误不变nnnn错误尝试解决5nn增加arm的环境变量nnnexport ARCH=armnexport CROSS_COMPILE=arm-xilinx-linux-gnueabi-n错误不变n
opencv2.4.1交叉编译出错
Linking CXX shared library ../../lib/libopencv_highgui.sorn/usr/lib/libImath.so: could not read symbols: File in wrong formatrncollect2: ld returned 1 exit statusrnmake[2]: *** [lib/libopencv_highgui.so] 错误 1rnmake[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] 错误 2rnmake: *** [all] 错误 2rn
eclipse下用arm-linu-gcc交叉编译出错
开发环境是用的eclipse,在setting里设置了compiler,linker,都设置成了arm-linu-gcc,assembler设置为了arm-linux-as。编译一个简单的armlinuxtest.c,内容就是helloworld。rn出错为:rnarm-linux-gcc -o0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"armlinuxTest.d" -MT"armlinuxTest.d" -o"armlinuxTest.o" "../armlinuxTest.c"rnarm-linux-gcc: unrecognized option `-MP'rnarm-linux-gcc: unrecognized option `-MFarmlinuxTest.d'rnarm-linux-gcc: unrecognized option `-MTarmlinuxTest.d'rncc1: Invalid option `-fmessage-length=0rnrn这个.c文件直接在command下用arm-linux-gcc -o armlinuxtest armlinuxTest.c 能成功编译生成目标文件,所以应该是选项问题。刚学linux,请问,这是什么错?-MP,-MF, -fmessage-length是什么意思?哪里可以查到这些选项的含义?
急急急,matlab交叉编译出错
matlabr2016b 打包.m文件生成C++动态库出现如下问题rnrnrnCompiler version: 6.3 (R2016b)rnDependency analysis by REQUIREMENTS.rn警告: Adding path "D:\gobs-master\frfrcode190414" to Compiler path instance. rnParsing file "D:\gobs-master\frfrcode190414\frft.m" rn (Referenced from: "Compiler Command Line"). rnDeleting 1 temporary MEX authorization files. rnRemoving: 'C:\Users\WANGHU~1\AppData\Local\Temp\mathworks_tmp_016b05319_5808.auth'. rnGenerating file "D:\gobs-master\lib\frft\for_testing\frft.h". rnGenerating file "D:\gobs-master\lib\frft\for_testing\frft.cpp". rnGenerating file "D:\gobs-master\lib\frft\for_testing\frft.exports". rnGenerating file "D:\gobs-master\lib\frft\for_testing\readme.txt". rnExecuting command: ""D:\matlab\bin\mbuild" -client mbuild -O -v -output "frft" -I"D:\gobs-master\lib\frft\for_testing" "D:\gobs-master\lib\frft\for_testing\frft.cpp" DEFFILE"=""D:\gobs-master\lib\frft\for_testing\frft.def""" LINKEXPORT"=""/DLL /def:\"$DEFFILE\"""" LDEXT"="".dll""" CMDLINE250"=""mt -outputresource:$EXE;2 -manifest $MANIFEST""" -outdir "D:\gobs-master\lib\frft\for_testing""详细模式已开。 rn未标识 MEX 选项文件;将查找隐式选择内容。 rn... 正在查找编译器 'Intel C++ Composer XE 2011 with Microsoft SDK 7.1'... rn... 正在查找环境变量 'ICPP_COMPILER12'...否。 rn找不到已安装的编译器 'Intel C++ Composer XE 2011 with Microsoft SDK 7.1'。 rn... 正在查找编译器 'Intel C++ Composer XE 2011 with Microsoft Visual Studio 2008'... rn... 正在查找环境变量 'ICPP_COMPILER12'...否。 rn找不到已安装的编译器 'Intel C++ Composer XE 2011 with Microsoft Visual Studio 2008'。 rn... 正在查找编译器 'Intel C++ Composer XE 2011 with Microsoft Visual Studio 2010 '... rn... 正在查找环境变量 'ICPP_COMPILER12'...否。 rn找不到已安装的编译器 'Intel C++ Composer XE 2011 with Microsoft Visual Studio 2010 '。 rn... 正在查找编译器 'Intel C++ Composer XE 2013 with Microsoft SDK 7.1'... rn... 正在查找环境变量 'ICPP_COMPILER14'...否。 rn... 正在查找环境变量 'ICPP_COMPILER13'...否。 rn找不到已安装的编译器 'Intel C++ Composer XE 2013 with Microsoft SDK 7.1'。 rn... 正在查找编译器 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2010'... rn... 正在查找环境变量 'ICPP_COMPILER14'...否。 rn... 正在查找环境变量 'ICPP_COMPILER13'...否。 rn找不到已安装的编译器 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2010'。 rn... 正在查找编译器 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2012'... rn... 正在查找环境变量 'ICPP_COMPILER14'...否。 rn... 正在查找环境变量 'ICPP_COMPILER13'...否。 rn找不到已安装的编译器 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2012'。 rn... 正在查找编译器 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2013'... rn... 正在查找环境变量 'ICPP_COMPILER14'...否。 rn... 正在查找环境变量 'ICPP_COMPILER13'...否。 rn找不到已安装的编译器 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2013'。 rn... 正在查找编译器 'Intel Parallel Studio XE 2015 for C++ with Microsoft SDK 7.1'... rn... 正在查找环境变量 'ICPP_COMPILER15'...否。 rn找不到已安装的编译器 'Intel Parallel Studio XE 2015 for C++ with Microsoft SDK 7.1'。 rn... 正在查找编译器 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2012'... rn... 正在查找环境变量 'ICPP_COMPILER15'...否。 rn找不到已安装的编译器 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2012'。 rn... 正在查找编译器 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2013'... rn... 正在查找环境变量 'ICPP_COMPILER15'...否。 rn找不到已安装的编译器 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2013'。 rn... 正在查找编译器 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2015'... rn... 正在查找环境变量 'ICPP_COMPILER15'...否。 rn找不到已安装的编译器 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2015'。 rn... 正在查找编译器 'Intel Parallel Studio XE 2016 for C++ with Microsoft SDK 7.1'... rn... 正在查找环境变量 'ICPP_COMPILER16'...否。 rn找不到已安装的编译器 'Intel Parallel Studio XE 2016 for C++ with Microsoft SDK 7.1'。 rn... 正在查找编译器 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2012'... rn... 正在查找环境变量 'ICPP_COMPILER16'...否。 rn找不到已安装的编译器 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2012'。 rn... 正在查找编译器 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2013'... rn... 正在查找环境变量 'ICPP_COMPILER16'...否。 rn找不到已安装的编译器 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2013'。 rn... 正在查找编译器 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2015'... rn... 正在查找环境变量 'ICPP_COMPILER16'...否。 rn找不到已安装的编译器 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2015'。 rn... 正在查找编译器 'MinGW64 Compiler (C++)'... rn... 正在查找环境变量 'MW_MINGW64_LOC'...是('C:\TDM-GCC-64')。 rn... 正在查找文件 'C:\TDM-GCC-64\bin\g++.exe'...是。 rn... 正在查找文件夹 'C:\TDM-GCC-64'...是。 rn找到已安装的编译器 'MinGW64 Compiler (C++)'。 rn... 正在查找编译器 'Microsoft Visual C++ 2008'... rn... 正在查找环境变量 'VS90COMNTOOLS'...否。 rn找不到已安装的编译器 'Microsoft Visual C++ 2008'。 rn... 正在查找编译器 'Microsoft Visual C++ 2010'... rn... 正在查找环境变量 'VS100COMNTOOLS'...否。 rn找不到已安装的编译器 'Microsoft Visual C++ 2010'。 rn... 正在查找编译器 'Microsoft Visual C++ 2012'... rn... 正在查找注册表设置 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 11.0...否。 rn... 正在查找注册表设置 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 11.0...否。 rn... 正在查找注册表设置 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 11.0...否。 rn... 正在查找注册表设置 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 11.0...否。 rn找不到已安装的编译器 'Microsoft Visual C++ 2012'。 rn... 正在查找编译器 'Microsoft Visual C++ 2013 Professional'... rn... 正在查找注册表设置 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 12.0...否。 rn... 正在查找注册表设置 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 12.0...否。 rn... 正在查找注册表设置 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 12.0...否。 rn... 正在查找注册表设置 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 12.0...否。 rn找不到已安装的编译器 'Microsoft Visual C++ 2013 Professional'。 rn... 正在查找编译器 'Microsoft Visual C++ 2015 Professional'... rn... 正在查找注册表设置 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0...否。 rn... 正在查找注册表设置 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0...否。 rn... 正在查找注册表设置 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 14.0...否。 rn... 正在查找注册表设置 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 14.0...否。 rn找不到已安装的编译器 'Microsoft Visual C++ 2015 Professional'。 rn... 正在查找编译器 'Microsoft Visual C++ 2017'... rn... 正在查找注册表设置 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 15.0...否。 rn... 正在查找注册表设置 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 15.0...否。 rn... 正在查找注册表设置 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 15.0...否。 rn... 正在查找注册表设置 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 15.0...否。 rn找不到已安装的编译器 'Microsoft Visual C++ 2017'。 rn... 正在查找编译器 'Microsoft Windows SDK 7.1 (C++)'... rn... 正在查找注册表设置 'HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1' InstallationFolder...否。 rn找不到已安装的编译器 'Microsoft Windows SDK 7.1 (C++)'。 rn未找到支持的编译器或 SDK。您可以安装免费提供的 MinGW-w64 C/C++ 编译器;请访问 http://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html。如需更多选项,请访问 http://www.mathworks.com/support/compilers/R2016b/win64.html。 rnError: An error occurred while shelling out to mbuild (error code = -1). rnUnable to build executable. rnrnrnrn看中间已经找到编译器,但是在编译的时候并没有使用依旧找到的编译器,的编译器依旧换了两三个,但均报这个错误。rnrnrnrnrn求大神帮忙。。。。。。
Linux交叉编译出错。。。。求助大神!!!!
[img=https://img-bbs.csdn.net/upload/201705/23/1495546145_780303.png][/img]rnrnrnrnrnrn交叉编译出错。。。。。rn求大神啊!!!!1
OpenCv3.1.0
找了好久的资源,可以直接拿来用,网上有好多个配置方式说明
交叉编译出错:impossible constraint in ‘asm’
HOST:Suse11.0rn[b]交叉编译器[/b]:xscale-linux-gcc (将调用arm-linux-gcc -mbig-endian)rnrn编译出错信息:rnxscale-linux-g++ -g -O2 -Wall -fPIC -I../../kernel -c pfring.c -o pfring.ornpfring.c: In function ‘int pfring_read(pfring*, char*, u_int, pfring_pkthdr*, u_int8_t, u_int8_t)’:rnpfring.c:982: warning: comparison between signed and unsigned integer expressionsrnpfring.c: In function ‘long long unsigned int rdtsc()’:rn[b]pfring.c:32: error: impossible constraint in ‘asm’[/b]rnmake: *** [pfring.o] Error 1rnrnrnMakefile文件内容:rnINSTDIR = $DESTDIR/usr/localrnINCLUDE = -I../../kernelrnrnDNA_OBJS = pfring_e1000e_dna.ornDNA_DEFINE =rnOBJS = pfring.o $DNA_OBJSrnrnCC = xscale-linux-gccrn[b]CFLAGS = -g -O2 -Wall -fPIC $INCLUDE $DNA_DEFINE[/b]rnLDFLAGS = -sharedrnrnSYSLIBS = -lpthreadrnrn%.o: %.c %.hrn $CC $CFLAGS -c $< -o $@rnrnSTATICLIB = libpfring.arnDYNAMICLIB = libpfring.sornTARGETS = $STATICLIB $DYNAMICLIBrnRING_H = ../../kernel/linux/pf_ring.hrnrnall: $TARGETSrnrn$STATICLIB: Makefile $OBJS pfring.h $RING_Hrn @echo "=*= making library $@ =*="rn ar rs $@ $OBJSrn ranlib $@rnrn$DYNAMICLIB: $OBJS pfring.h $RING_H Makefilern @echo "=*= making library $@ =*="rn $CC $LDFLAGS $OBJS $SYSLIBS -o $@rnrninstall: $STATICLIB $DYNAMICLIBrn cp $STATICLIB $INSTDIR/lib/rn cp $DYNAMICLIB $INSTDIR/lib/rn cp pfring.h $INSTDIR/include/rn ldconfigrnrnclean:rn @rm -f $TARGETS *.o *~rnrnrn请问高手此问题该如何解决,谢谢!
opencv3.1.0 andnroid-sdk
opencvAndroid的sdk,可以下载直接使用,sdk基于opencv3.1.0
hostapd交叉编译出错,请高手指点
准备往ixp425上移植hostapd,rn开始我用arm-linux-gcc 3.4.4 编译没有问题结果一直到板上rn错误提示稍后补充rn不能运行rn我用file命令查看过,是可执行文件,也是arm架构,我又自己编译一个hello,world的程序,在板上依旧无法运行rn有人给了个建议,说ixp425 编译的时候还需要ucfront-gcc的库rn现在Makefile文件里是这样改的rnCC=/ap/ixp425/snapgear/tools/ucfront-gcc /usr/local/arm/3.4.4/bin/arm-linux-gccrn编译的时候似乎出现预编译错误rn[code=C/C++]driver.h:568: error: `tail' undeclared (first use in this function)rndriver.h:568: error: `tail_len' undeclared (first use in this function)rndriver.h: In function `hostapd_set_dtim_period':rndriver.h:592: error: dereferencing pointer to incomplete typerndriver.h: In function `hostapd_if_add':rn 。。。rn../src/crypto/tls.h:26: warning: data definition has no type or storage classrn。。。rn../src/crypto/tls.h:98: error: conflicting types for 'dh_file'rnconfig.h:249: error: previous declaration of 'dh_file' was herern../src/crypto/tls.h:100: error: parse error before "dh_blob_len"rn../src/crypto/tls.h:100: warning: type defaults to `int' in declaration of `dh_blob_len'rn../src/crypto/tls.h:100: warning: data definition has no type or storage classrn../src/crypto/tls.h:111: error: conflicting types for 'flags'rndriver.h:25: error: previous declaration of 'flags' was herern../src/crypto/tls.h:112: error: parse error before '' tokenrn../src/crypto/tls.h:289: error: parse error before "size_t"rn../src/crypto/tls.h:322: error: parse error before "size_t"rn../src/crypto/tls.h:339: error: parse error before "size_t"rn../src/crypto/tls.h:357: error: parse error before "size_t"rn../src/crypto/tls.h:375: error: parse error before "size_t"rn。。。rnIn file included from hostapd.c:43:rn../src/eap_server/eap.h:38: error: parse error before "size_t"rn../src/eap_server/eap.h:38: warning: no semicolon at end of struct or unionrn../src/eap_server/eap.h:45: error: parse error before '' tokenrn../src/eap_server/eap.h:65: error: parse error before "size_t"rn../src/eap_server/eap.h:65: warning: no semicolon at end of struct or unionrn../src/eap_server/eap.h:75: error: parse error before "aaaEapKeyDataLen"rn../src/eap_server/eap.h:75: warning: type defaults to `int' in declaration of `aaaEapKeyDataLen'rn../src/eap_server/eap.h:75: warning: data definition has no type or storage classrn../src/eap_server/eap.h:84: error: parse error before '' tokenrn../src/eap_server/eap.h:87: error: parse error before "size_t"rn../src/eap_server/eap.h:89: error: parse error before "size_t"rn../src/eap_server/eap.h:99: error: parse error before "size_t"rn../src/eap_server/eap.h:99: warning: no semicolon at end of struct or unionrn../src/eap_server/eap.h:108: error: parse error before '' tokenrn../src/eap_server/eap.h:119: error: parse error before "size_t"rnIn file included from hostapd.c:44:rn../src/eap_server/tncs.h:23: error: parse error before "tncs_total_send_len"rn../src/eap_server/tncs.h:23: warning: type defaults to `int' in declaration of `tncs_total_send_len'rn../src/eap_server/tncs.h:23: warning: data definition has no type or storage classrn../src/eap_server/tncs.h:40: error: parse error before "size_t"rn../src/eap_server/tncs.h:46: error: parse error before "size_t"rnIn file included from hostapd.c:46:rn../src/l2_packet/l2_packet.h:68: error: parse error before "size_t"rn../src/l2_packet/l2_packet.h:98: error: parse error before "size_t"rn../src/l2_packet/l2_packet.h:114: error: parse error before "size_t"rnIn file included from hostapd.c:47:rn。。。rnhostapd.c: In function `hostapd_wpa_auth_get_eapol':rnhostapd.c:878: error: dereferencing pointer to incomplete typernhostapd.c:880: error: dereferencing pointer to incomplete typernhostapd.c: At top level:rnhostapd.c:896: error: parse error before "size_t"rnhostapd.c: In function `hostapd_wpa_auth_get_msk':rnhostapd.c:898: error: `ctx' undeclared (first use in this function)rnhostapd.c:900: error: `size_t' undeclared (first use in this function)rnhostapd.c:900: error: parse error before "keylen"rnhostapd.c:903: error: `addr' undeclared (first use in this function)rnhostapd.c:907: error: `keylen' undeclared (first use in this function)rnhostapd.c:911: error: `len' undeclared (first use in this function)rnhostapd.c:913: error: `msk' undeclared (first use in this function)rnhostapd.c: At top level:rnhostapd.c:922: error: parse error before "size_t"rnhostapd.c: In function `hostapd_wpa_auth_set_key':rnhostapd.c:924: error: `ctx' undeclared (first use in this function)rnhostapd.c:925: error: dereferencing pointer to incomplete typernhostapd.c:927: error: `vlan_id' undeclared (first use in this function)rnhostapd.c:928: error: dereferencing pointer to incomplete typernhostapd.c:933: error: `alg' undeclared (first use in this function)rnhostapd.c:933: error: `addr' undeclared (first use in this function)rnhostapd.c:933: error: `idx' undeclared (first use in this function)rnhostapd.c:934: error: `key_len' undeclared (first use in this function)rnhostapd.c: In function `hostapd_wpa_auth_get_seqnum':rnhostapd.c:942: error: dereferencing pointer to incomplete typernhostapd.c: In function `hostapd_wpa_auth_get_seqnum_igtk':rnhostapd.c:950: error: dereferencing pointer to incomplete typernhostapd.c: At top level:rnhostapd.c:956: error: parse error before "size_t"rn。。。rnhostapd.c:1619: error: dereferencing pointer to incomplete typernhostapd.c:1621: error: dereferencing pointer to incomplete typernhostapd.c:1622: error: dereferencing pointer to incomplete typernhostapd.c:1628: error: dereferencing pointer to incomplete typern。。。rnhostapd.c:1798: error: dereferencing pointer to incomplete typernhostapd.c: In function `hostapd_init':rnhostapd.c:1825: error: `size_t' undeclared (first use in this function)rnhostapd.c:1825: error: parse error before "i"rn。。。rnhostapd.c:1860: error: dereferencing pointer to incomplete typernhostapd.c:1860: error: dereferencing pointer to incomplete typernhostapd.c:1861: error: dereferencing pointer to incomplete typernhostapd.c:1866: error: dereferencing pointer to incomplete typernhostapd.c:1867: error: dereferencing pointer to incomplete typernhostapd.c: In function `main':rnhostapd.c:1876: error: storage size of 'interfaces' isn't knownrnhostapd.c:1878: error: `size_t' undeclared (first use in this function)rnhostapd.c:1878: error: parse error before "i"rnhostapd.c:1944: error: `SIGHUP' undeclared (first use in this function)rnhostapd.c:1945: error: `SIGUSR1' undeclared (first use in this function)rnhostapd.c:1950: error: `i' undeclared (first use in this function)rnhostapd.c:1993: error: `j' undeclared (first use in this function)rnhostapd.c:1876: warning: unused variable `interfaces'rnhostapd.c: At top level:rn/ap/ixp425/snapgear/uClibc/include/netinet/in.h:228: error: storage size of `sin_zero' isn't knownrnconfig.h:69: error: storage size of `wep' isn't knownrneapol_sm.h:225: error: storage size of `radius_class' isn't knownrnmake: *** [hostapd.o] 错误 1rn[/code]rnrn我分析了一下错误,错误大致分为三类,一些数据结构未定义,size_t未定义,还有就是error: dereferencing pointer to incomplete type。rn我看了源码,size_t是头文件stddef.h内定义的,数据结构定义的类型都是size_t,所以前两个问题基本可以归为一个,rn下面的就不是很清楚了,stddef.h也没有说找不到,这是不是预编译的问题啊?我应该如何修改呢?还有后面的一个问题,希望高手能给指点一下。
opencv3.1.0头文件
之前上传的opencv库里面忘了加头文件了,这个补上之前忘记上传的头文件 。
Ubuntu 10.10 下交叉工具编译出错,求助!!!!
编译出错问题如下:rnInstalling C library headers & start filesrn .....rnBuile failed in step 'Installing C library headers & start files'rnrnError happend in: CT_DoExecLog[scripts/functions]rn.....rn
openwrt 交叉编译出错? 大神帮忙解决下
btget.c:228:9: warning: variable 'optquiettmo' set but not used [-Wunused-but-set-variable]rn int optquiettmo = 0;rn ^rn/home/ycmedia/project/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lcryptorn/home/ycmedia/project/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lsslrn/home/ycmedia/project/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lcurlrncollect2: error: ld returned 1 exit statusrnmake: *** [libbit] Error 1rnrn错误信息如上!
opencv3.1.0官方文档
opencv3.1.0离线html手册,和opencv官网一样的参考手册,包括额外模块contribute部分的说明。
opencv3.1.0安装包
opencv3.1.0安装包,可以实现对opencv相关功能的开发,
opencv3.1.0的opencv2/photo.hpp
cmake编译不成功的话可以使用,opencv3.1.0的opencv2/photo.hpp
VS2013配置opencv3.1.0,及测试
最近需要做一些数字图像处理的实验,需要用到opencv。因为电脑上只有VS2013,而最新的opencv3.2.0没有VS2013的预编译版本,手动编译又屡屡失败,所以
基于SVM的分类识别 opencv3.1.0
//#include //#include //#include //#include #include "opencv2/core.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/highgui.hpp" #include "opencv2/ml.hpp" #include "utils/Multiple
在VS2013下安装和配置OpenCV3.1.0
本博客是博主在初探计算机视觉时安装OpenCV3时的经验,这是安装和配置过程以及遇到的问题的解决办法。
OpenCV3.1.0整合包
OpenCV的整合版,包含OpenCV和已经编译好的OpenCV_Contrib,可直接调用xfeature2d.h等在3.1.0中没有的库文件,记得将install文件夹添加环境变量
opencv3.1.0 64位电脑用
opencv3.1.0 64位电脑用,分享给大家,我自己64位电脑,用的这个。
opencv3.1.0中split函数
opencv3.1.0+VS2015rnDebug情况下调用颜色通道分离函数split()会在运行时出现这种中断的错误:rn0x5179FBFE (opencv_world300.dll)处(位于 Hough1.exe 中)引发的异常: 0xC0000005: 写入位置 0x8F0012E9 时发生访问冲突。rn而Release下就没有rn应该是release下忽略了某些错误~rn有没有知道的可以详解下?????????????????????????????
OpenCV3.1.0的下载、安装和配置
OpenCV3.1.0的下载、安装和配置 一、准备配置的环境 电脑系统:Windows 10 专业版 OpenCV版本:3.1.0 python版本:3.5.1 在配置OpenCV之前,需要先把Pycharm安装好。本文默认已经安装了Pycharm。 二、Opencv安装 步骤1:双击下载的文件opencv-3.1.0.exe,如下图所示: 步骤2:点击extract,开始安装,其实也是解压...
新人小白求助opencv3.1.0
我想通过opencv将如图所示的三个贴彩色纸部分,把三个长方形的12个角点区分,检测并且输出它们的坐标。刚刚接触opencv不知道从何下手,希望能附上C++代码和注释,最好是VS2015,谢谢大家rn[img=https://img-bbs.csdn.net/upload/201904/01/1554117450_589038.jpg][/img][img=https://img-bbs.csdn.net/upload/201904/01/1554117518_487036.jpg][/img]。
ubuntu16.04+anaconda3+python3.6安装opencv3.1.0
Ubuntu16.04+anaconda3+python3.6安装opencv3.1.0详解教程。
opencv3.1.0编译好的
opencv3.1.0在window10+vs2015+opencv3.1.0contrib+64位+debug模式,经过vs2015和cmake编译好的,直接下载解压后,就可以使用的, 注意这个是64位的哦,并且debug模式only !!
opencv3.1.0以及ippicv_linux_20151201.tgz
Linux下opencv3.1.0安装包以及ippicv_linux_20151201.tgz
opencv3.1.0 pca实例
OpenCV自带的实现PCA算法的案例。
OpenCV3.1.0在Ubuntu上的安装方法
OpenCV3*在Ubuntu上的安装方法
树莓派安装opencv3.1.0
本人在树莓派上成功安装opencv的记录,用于利用树莓派制作一下小制作,opencv还是很需要的,使用的是树莓派3。
opencv3.1.0安装所需组件
Ubuntu 16.04安装CUDA8.0 + cuDNN5.1 + OpenCV3.1.0详细教程http://blog.csdn.net/panmingqi1996/article/details/79426691
编译出错
1. Undefined symbols for architecture x86_64 1.只声明了没有实现 register_testall_testscene(lua_State*) 2.
编译出错!?
BeanTest.java文件为:rnrnimport java.awt.event.*;rnimport java.awt.*;rnimport java.applet.*;rnrn/*BeanTest是从Applet继承的子类,因此是一个applet,rn它实现了MouseListener接口,可以响应鼠标单击事件*/rnpublic class BeanTest extends Applet implements MouseListenerrn CustomBean cBean;rn Button b;rnrn public void init()rn //设置布局管理器rn setLayout(new BorderLayout());rn cBean=new CustomBean();rn b=new Button("color");rn /*给按钮b增加了事件监听者this,即按钮的单击事件将由rn BeanTest来处理*/ rn b.addMouseListener(this);rn //将CustomBean放置在applet的中央位置rn add("Center",cBean);rn //将按钮"color"放置在CustomBean的下方rn add("South",b);rn rn public void destroy()rn remove(cBean);rn remove(b);rn rn rn /*处理按钮b的单击事件,每单击一次,就改变一次rn CustomBean的背景属性,在红绿色之间切换*/rn public void mousePressed(MouseEvent e)rn e.consume();rn //调用CustomBean的setter和getter方法,用来获取和设置属性rn if(cBean.getColor()==Color.red)rn cBean.setColor(Color.green);rn elsern cBean.setColor(Color.red);rn rn rn public void mouseReleased(MouseEvent e)rn rn public void mouseEntered(MouseEvent e)rn rn public void mouseExited(MouseEvent e)rn rn public void mouseClicked(MouseEvent e)rn rn //BeanTest也实现了main方法,因此也可以作为独立的应用程序来运行rn public static void main(String args[])rn Frame f=new Frame("BeanTest");rn BeanTest bTest=new BeanTest();rn bTest.init();rn bTest.start();rn f.add("Center",bTest);rn f.setSize(300,300);rn f.show();rn rn public String getAppletInfo()rn return "A simple bean test program.";rn rnrnrnCustomBean.java文件为:rnimport java.awt.*;rnimport java.io.Serializable;rnrnpublic class CustomBean extends Canvas implements Serializablern //定义简单属性colorrn private Color color=Color.red;rnrn //构造函数设置继承来的属性rn public CustomBean()rn setSize(60,40);rn setBackground(Color.red);rn rn rn //getter方法rn public Color getColor()rn return color;rnrn rn //setter方法rn public void setColor(Color newColor)rn color=newColor;rn repaint();rn rn //显示属性改变的效果,颜色将用文字在背景上写出来rn public void paint(Graphics g)rn setBackground(color);rn String tempColor="red";rn if (color==Color.red)rn tempColor="red";rn else if(color==Color.green)rn tempColor="green";rn Font f1=new Font("Monospaced",Font.BOLD,40);rn g.setFont(f1);rn g.drawString("I am "+tempColor+"!",50,50);rn rnrnrnrn编译BeanTest.java文件时报错如下:rnBeanTest.java:8: cannot resolve symbolrnsymbol : class CustomBeanrnlocation: class BeanTestrn CustomBean cBean;rn ^rnBeanTest.java:14: cannot resolve symbolrnsymbol : class CustomBeanrnlocation: class BeanTestrn cBean=new CustomBean();rn ^rn2 errorsrnrn请指教!
编译出错??
import java.io.*;rnrnclass filestreamrnrn public static void main(String args[])rn rn tryrn rn File inFile=new File("file1.txt");rn File outFile=new File("file2.txt");rn FileInputStream fis=new FileInputStream(inFile);rn FileOutputStream fos=new FileOutputStream(outFile);rn rn int c; rn while((c=fis.read()!=-1) rn fos.write(c);rn fis.close();rn fos.close();rn rn catch(FileNotFoundException e)rn rn System.out.println("FileStreamTest:"+e);rn rn catch(IOException e)rn rn System.err.println("FileStreamsTest:"+e);rn rn rnrnrn报错如下:(jcreator编译的 )rn--------------------Configuration: JDK version 1.3.1 --------------------rnJ:\pku\char6\filestream.java:15: ')' expectedrnwhile((c=fis.read()!=-1)rn ^rnJ:\pku\char6\filestream.java:15: incompatible typesrnfound : intrnrequired: booleanrnwhile((c=fis.read()!=-1)rn ^rn2 errorsrnrnProcess completed.rnrnrn
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview