Ask Your Question

Revision history [back]

opencv 2.4.3

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.

opencv 2.4.3

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; cv;

using namespace std; std;

int main( ) )

{ Mat image; image;

image = imread( "D:/workspace/C++/DisplayImg/src/1.jpg", 1 ); );

namedWindow( "Display Image", CV_WINDOW_AUTOSIZE ); );

imshow( "Display Image", image ); waitKey(0); );

waitKey(0);

return 0; 0;

}

and my debug traces: traces:

101,062 2-environment-cd D:/workspace/C++/DisplayImg D:/workspace/C++/DisplayImg

101,064 2^done 2^done

101,065 (gdb)

101,068 3-gdb-set breakpoint pending on on

101,077 3^done 3^done

101,077 (gdb)

101,080 4-gdb-set detach-on-fork on on

101,084 4^done 4^done

101,084 (gdb)

101,087 5-enable-pretty-printing 5-enable-pretty-printing

101,095 5^done 5^done

101,095 (gdb) (gdb)

101,098 6-gdb-set python print-stack none none

101,106 6^done 6^done

101,107 (gdb)

101,109 7-gdb-set print object on on

101,117 7^done 7^done

101,118 (gdb)

101,119 8-gdb-set print sevenbit-strings on on

101,127 8^done 8^done

101,127 (gdb)

101,129 9-gdb-set host-charset UTF-8 UTF-8

101,137 9^error,msg="Undefined item: \"UTF-8\"." 101,138 (gdb)

101,140 10-gdb-set target-charset GBK GBK

101,148 10^error,msg="Undefined item: \"GBK\"." \"GBK\"."

101,150 (gdb)

101,152 11-gdb-set target-wide-charset UTF-16 UTF-16

101,159 11^error,msg="Undefined item: \"UTF-16\"." \"UTF-16\"."

101,160 (gdb)

101,163 12source .gdbinit .gdbinit

101,169 &"source .gdbinit\n" .gdbinit\n"

101,170 &".gdbinit: No such file or directory.\n" directory.\n"

101,170 12^error,msg=".gdbinit: No such file or directory." directory."

101,171 (gdb)

101,174 13-gdb-set target-async off off

101,181 13^done 13^done

101,182 (gdb)

101,185 14-gdb-set auto-solib-add on on

101,191 14^done 14^done

101,191 (gdb)

101,198 15-file-exec-and-symbols --thread-group i1 D:/workspace/C++/DisplayImg/Debug/DisplayImg.exe D:/workspace/C++/DisplayImg/Debug/DisplayImg.exe

101,478 16-list-thread-groups 16-list-thread-groups

102,034 15^done 15^done

102,035 (gdb)

102,039 16^done,groups=[{id="i1",type="process",executable="D:/workspace/C++/DisplayImg/Debug/Displa\ yImg.exe"}] yImg.exe"}]

102,040 (gdb)

102,047 17-break-insert --thread-group i1 -t -f main 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"} mg.cpp",line="16",thread-groups=["i1"],times="0",original-location="main"}

102,059 (gdb)

102,077 18-exec-run --thread-group i1 i1

102,672 =thread-group-started,id="i1",pid="3224" =thread-group-started,id="i1",pid="3224"

102,675 =thread-created,id="1",group-id="i1" =thread-created,id="1",group-id="i1"

102,676 ~"[New Thread 3224.0x1368]\n" 3224.0x1368]\n"

102,676 19-list-thread-groups --available --available

102,676 18^running 18^running

102,677 *running,thread-id="all" *running,thread-id="all"

102,677 (gdb)

102,691 20-list-thread-groups 20-list-thread-groups

102,701 =thread-exited,id="1",group-id="i1" =thread-exited,id="1",group-id="i1"

102,702 =thread-group-exited,id="i1" =thread-group-exited,id="i1"

102,702 18^error,msg="During startup program exited with code 0xc0000135." 0xc0000135."

102,703 (gdb)

102,704 19^error,msg="Can not fetch data now." now."

102,705 (gdb)

102,708 20^done,groups=[{id="i1",type="process",executable="D:/workspace/C++/DisplayImg/Debug/Displa\ yImg.exe"}] yImg.exe"}]

102,708 (gdb)

102,734 21-gdb-exit 21-gdb-exit

102,744 21^exit

hope someone can hl me. thx alot.

opencv 2.4.3

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 after debug traces:i got this message: An internal error occurred during: "FetchJob". java.lang.NullPointerException

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 some one maybe help me. thx alot.