Hi im now using the OpenCV2.4.3 in window 8. I have added all the lib i need to eclipse C++. By building i got 0 error. but by runing, it does nothing. i put my code hier:
include <opencv2 core="" core.hpp="">
include <opencv2 highgui="" highgui.hpp="">
include <opencv2 opencv.hpp="">
include <iostream>
using namespace cv; using namespace std; int main( ) { Mat image; image = imread( "D:/workspace/C++/DisplayImg/src/1.jpg", 1 ); namedWindow( "Display Image", CV_WINDOW_AUTOSIZE ); imshow( "Display Image", image ); waitKey(0); return 0; }
and my debug traces: 101,062 2-environment-cd D:/workspace/C++/DisplayImg 101,064 2^done 101,065 (gdb) 101,068 3-gdb-set breakpoint pending on 101,077 3^done 101,077 (gdb) 101,080 4-gdb-set detach-on-fork on 101,084 4^done 101,084 (gdb) 101,087 5-enable-pretty-printing 101,095 5^done 101,095 (gdb) 101,098 6-gdb-set python print-stack none 101,106 6^done 101,107 (gdb) 101,109 7-gdb-set print object on 101,117 7^done 101,118 (gdb) 101,119 8-gdb-set print sevenbit-strings on 101,127 8^done 101,127 (gdb) 101,129 9-gdb-set host-charset UTF-8 101,137 9^error,msg="Undefined item: \"UTF-8\"." 101,138 (gdb) 101,140 10-gdb-set target-charset GBK 101,148 10^error,msg="Undefined item: \"GBK\"." 101,150 (gdb) 101,152 11-gdb-set target-wide-charset UTF-16 101,159 11^error,msg="Undefined item: \"UTF-16\"." 101,160 (gdb) 101,163 12source .gdbinit 101,169 &"source .gdbinit\n" 101,170 &".gdbinit: No such file or directory.\n" 101,170 12^error,msg=".gdbinit: No such file or directory." 101,171 (gdb) 101,174 13-gdb-set target-async off 101,181 13^done 101,182 (gdb) 101,185 14-gdb-set auto-solib-add on 101,191 14^done 101,191 (gdb) 101,198 15-file-exec-and-symbols --thread-group i1 D:/workspace/C++/DisplayImg/Debug/DisplayImg.exe 101,478 16-list-thread-groups 102,034 15^done 102,035 (gdb) 102,039 16^done,groups=[{id="i1",type="process",executable="D:/workspace/C++/DisplayImg/Debug/Displa\ yImg.exe"}] 102,040 (gdb) 102,047 17-break-insert --thread-group i1 -t -f main 102,058 17^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x00000000004016a0",\ func="main()",file="..\src\DisplayImg.cpp",fullname="D:\workspace\C++\DisplayImg\src\DisplayI\ mg.cpp",line="16",thread-groups=["i1"],times="0",original-location="main"} 102,059 (gdb) 102,077 18-exec-run --thread-group i1 102,672 =thread-group-started,id="i1",pid="3224" 102,675 =thread-created,id="1",group-id="i1" 102,676 ~"[New Thread 3224.0x1368]\n" 102,676 19-list-thread-groups --available 102,676 18^running 102,677 *running,thread-id="all" 102,677 (gdb) 102,691 20-list-thread-groups 102,701 =thread-exited,id="1",group-id="i1" 102,702 =thread-group-exited,id="i1" 102,702 18^error,msg="During startup program exited with code 0xc0000135." 102,703 (gdb) 102,704 19^error,msg="Can not fetch data now." 102,705 (gdb) 102,708 20^done,groups=[{id="i1",type="process",executable="D:/workspace/C++/DisplayImg/Debug/Displa\ yImg.exe"}] 102,708 (gdb) 102,734 21-gdb-exit 102,744 21^exit
hope someone can hl me. thx alot.