{"id":1181,"date":"2022-08-30T15:13:44","date_gmt":"2022-08-30T15:13:44","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/compiling-opencv-svn-trunk-in-windows-error-in-highgui-libvideoinput-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:13:44","modified_gmt":"2022-08-30T15:13:44","slug":"compiling-opencv-svn-trunk-in-windows-error-in-highgui-libvideoinput-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/compiling-opencv-svn-trunk-in-windows-error-in-highgui-libvideoinput-collection-of-common-programming-errors\/","title":{"rendered":"Compiling OpenCV SVN trunk in Windows &#8211; error in highgui\/libVideoInput-Collection of common programming errors"},"content":{"rendered":"<p>I know there are several questions about this but none has shown me what I can do against the error I get.<\/p>\n<p>Using this guide I already was able to compile the current OpenCV Release (2.2) using this guide and cmake. So the release works fine and I can write code using it in Qt. Therefore I need WITH_QT enabled and need to build myself.<\/p>\n<p>But unfortunately I found out that the 2.2 release doesn&#8217;t support all types of cameras (since I would like to get the camera stream from a 720p webcam). I&#8217;ve read that this is fixed in the latest svn trunk version.<\/p>\n<p>So I checked the newest svn trunk out and ran Cmake again, created a new folder, selected the source files, MinGW compile with links to the g++.exe and qcc.exe, configured and enabled &#8220;WITH_QT&#8221; and generated the necessary Makefiles.<\/p>\n<p>I then started a Windows Powershell as Admin and tried to compile with &#8220;mingw32-make&#8221;&#8230; but at 56% it suddenly crashes with this:<\/p>\n<pre><code>[ 56%] Building CXX object modules\/highgui\/CMakeFiles\/opencv_highgui.dir\/src\/grfmt_sunras.obj\n[ 56%] Building CXX object modules\/highgui\/CMakeFiles\/opencv_highgui.dir\/src\/grfmt_tiff.obj\nLinking CXX shared library ..\\..\\bin\\libopencv_highgui220d.dll\nCreating library file: ..\\..\\lib\\libopencv_highgui220d.dll.a\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\nee): undefined reference to `__gxx_personality_sj0'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n104): undefined reference to `_Unwind_SjLj_Register'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n2a6): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n2d4): undefined reference to `_Unwind_SjLj_Resume'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n2fe): undefined reference to `__gxx_personality_sj0'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n314): undefined reference to `_Unwind_SjLj_Register'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n4b6): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n4e4): undefined reference to `_Unwind_SjLj_Resume'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n1b41): undefined reference to `__gxx_personality_sj0'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n1b5a): undefined reference to `_Unwind_SjLj_Register'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n1bb4): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n1c03): undefined reference to `_Unwind_SjLj_Resume'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n1c88): undefined reference to `__gxx_personality_sj0'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n1ca7): undefined reference to `_Unwind_SjLj_Register'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n2265): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n228d): undefined reference to `_Unwind_SjLj_Resume'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n2318): undefined reference to `__gxx_personality_sj0'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n2337): undefined reference to `_Unwind_SjLj_Register'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n28f5): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n291d): undefined reference to `_Unwind_SjLj_Resume'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n38a0): undefined reference to `__gxx_personality_sj0'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n38df): undefined reference to `_Unwind_SjLj_Register'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n406b): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n40a3): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n4211): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n42ec): undefined reference to `_Unwind_SjLj_Resume'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n6cf8): undefined reference to `__gxx_personality_sj0'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n6d17): undefined reference to `_Unwind_SjLj_Register'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n6e1e): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n6e3e): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n7002): undefined reference to `_Unwind_SjLj_Resume'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n70b4): undefined reference to `__gxx_personality_sj0'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n70cd): undefined reference to `_Unwind_SjLj_Register'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n7111): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n742e): undefined reference to `_Unwind_SjLj_Unregister'\nC:\\workspace\\opencv\\OpenCV_SVN\\modules\\highgui\\..\\..\\3rdparty\\lib\/libvideoInput.a(videoInput.o):videoInput.cpp:(.text+0x\n7501): undefined reference to `_Unwind_SjLj_Resume'\ncollect2: ld returned 1 exit status\nmingw32-make[2]: *** [bin\/libopencv_highgui220d.dll] Error 1\nmingw32-make[1]: *** [modules\/highgui\/CMakeFiles\/opencv_highgui.dir\/all] Error 2\nmingw32-make: *** [all] Error 2\n<\/code><\/pre>\n<p>So it seems to have something going wrong when compiling the libVideoInput&#8230; is anybody familiar with this error? How can I fix it? Do I need to install anything special before?<\/p>\n<p>Would be great if anybody could help me! Thanks!<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:37:04. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I know there are several questions about this but none has shown me what I can do against the error I get. Using this guide I already was able to compile the current OpenCV Release (2.2) using this guide and cmake. So the release works fine and I can write code using it in Qt. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1181","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1181"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1181\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}