{"id":23,"date":"2019-11-10T16:25:00","date_gmt":"2019-11-10T16:25:00","guid":{"rendered":"http:\/\/blog.edgesmart.co.uk\/?p=23"},"modified":"2020-07-06T22:47:05","modified_gmt":"2020-07-06T21:47:05","slug":"problem-with-cross-compiling-opencv-application-for-xilinx-zynq-arm-on-ubuntu-linux-os","status":"publish","type":"post","link":"https:\/\/blog.edgesmart.co.uk\/index.php\/2019\/11\/10\/problem-with-cross-compiling-opencv-application-for-xilinx-zynq-arm-on-ubuntu-linux-os\/","title":{"rendered":"Problem with Cross Compiling OpenCV Application for Xilinx Zynq &#8211; ARM on Ubuntu Linux OS"},"content":{"rendered":"\n<p><strong>Problem:<\/strong><\/p>\n\n\n\n<p>When cross compiling an OpenCV-2.4.9 application for the Zynq &#8211; ARM using a Makefile on Ubuntu 14.04, it generated the following error:<\/p>\n\n\n\n<p>&#8220;make: Circular Makefile.out &lt;- Makefile dependency dropped&#8221;<\/p>\n\n\n\n<p>I could not understand what caused it and the solutions found on web pointed towards some sort of circular dependencies. I checked and rechecked again and again but could not find any such thing. Finally I noticed the following:<\/p>\n\n\n\n<p>&#8220;CC = arm-xilinx-linux-gnueabi-g++&#8221;<\/p>\n\n\n\n<p><strong>Solution:<\/strong><\/p>\n\n\n\n<p>After a few hours struggling I realised that I must have reused&nbsp;an existing Makefile which compiled &#8216;C&#8217; sources and updated it to compile C++ sources. When I made the following change in the Makefile I got no errors.<\/p>\n\n\n\n<p>&#8220;CC = arm-xilinx-linux-gnueabi-gcc<br>CPP = arm-xilinx-linux-gnueabi-g++&#8221;<\/p>\n\n\n\n<p>Replace CC with CPP in the Makefile so that&nbsp;arm-xilinx-linux-gnueabi-g++ is used instead of&nbsp;arm-xilinx-linux-gnueabi-gcc .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: When cross compiling an OpenCV-2.4.9 application for the Zynq &#8211; ARM using a Makefile on Ubuntu 14.04, it generated the following error: &#8220;make: Circular Makefile.out &lt;- Makefile dependency dropped&#8221; I could not understand what caused it and the solutions found on web pointed towards some sort of circular dependencies. I checked and rechecked again &hellip;<br \/><a href=\"https:\/\/blog.edgesmart.co.uk\/index.php\/2019\/11\/10\/problem-with-cross-compiling-opencv-application-for-xilinx-zynq-arm-on-ubuntu-linux-os\/\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Problem with Cross Compiling OpenCV Application for Xilinx Zynq &#8211; ARM on Ubuntu Linux OS<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,26,23,25],"tags":[9,29,31,30,28,27],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-cross-compilation","category-linux","category-opencv","category-zynq","tag-fpga","tag-opencv","tag-opencv-for-linux","tag-opencv-for-zynq","tag-xilinx-zynq","tag-zyqn"],"_links":{"self":[{"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":1,"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.edgesmart.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}