<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 AN13725 - how is opencv compiled without having Mutex errors?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1655895#M206380</link>
    <description>&lt;P&gt;I tried to compile opencv according to the AN13725 appnote document and I am getting the following errors&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/home/kowshik/Desktop/opencv_porting/opencv/modules/core/src/precomp.hpp:369:5: error: 'Mutex' in namespace 'cv' does not name a type 369 | cv::Mutex&amp;amp; getInitializationMutex(); | ^~~~~

/home/kowshik/Desktop/opencv_porting/opencv/modules/core/include/opencv2/core/utility.hpp:718:14: error: no type named 'recursive_mutex' in namespace 'std'
typedef std::recursive_mutex Mutex;
~~~~~^
/home/kowshik/Desktop/opencv_porting/opencv/modules/core/include/opencv2/core/utility.hpp:719:14: error: no template named 'lock_guard' in namespace 'std'
typedef std::lock_guard&amp;lt;cv::Mutex&amp;gt; AutoLock;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;This basically says the compiler doesn't support threading, but my query is how come NXP got it compiled at their end using the same arm-none-eabi-gcc compiler? Please help about this as I can use it at my end.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 16:01:48 GMT</pubDate>
    <dc:creator>kowshik1729</dc:creator>
    <dc:date>2023-05-23T16:01:48Z</dc:date>
    <item>
      <title>AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1655895#M206380</link>
      <description>&lt;P&gt;I tried to compile opencv according to the AN13725 appnote document and I am getting the following errors&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/home/kowshik/Desktop/opencv_porting/opencv/modules/core/src/precomp.hpp:369:5: error: 'Mutex' in namespace 'cv' does not name a type 369 | cv::Mutex&amp;amp; getInitializationMutex(); | ^~~~~

/home/kowshik/Desktop/opencv_porting/opencv/modules/core/include/opencv2/core/utility.hpp:718:14: error: no type named 'recursive_mutex' in namespace 'std'
typedef std::recursive_mutex Mutex;
~~~~~^
/home/kowshik/Desktop/opencv_porting/opencv/modules/core/include/opencv2/core/utility.hpp:719:14: error: no template named 'lock_guard' in namespace 'std'
typedef std::lock_guard&amp;lt;cv::Mutex&amp;gt; AutoLock;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;This basically says the compiler doesn't support threading, but my query is how come NXP got it compiled at their end using the same arm-none-eabi-gcc compiler? Please help about this as I can use it at my end.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 16:01:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1655895#M206380</guid>
      <dc:creator>kowshik1729</dc:creator>
      <dc:date>2023-05-23T16:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1656543#M206450</link>
      <description>&lt;P&gt;More about the error I received while compiling the library&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;In file included from C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\src\precomp.hpp:53,
                 from C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\src\algorithm.cpp:43:
C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\include/opencv2/core/utility.hpp:718:14: error: 'recursive_mutex' in namespace 'std' does not name a type
  718 | typedef std::recursive_mutex Mutex;
      |              ^~~~~~~~~~~~~~~
C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\include/opencv2/core/utility.hpp:63:1: note: 'std::recursive_mutex' is defined in header '&amp;lt;mutex&amp;gt;'; did you forget to '#include &amp;lt;mutex&amp;gt;'?
   62 | #include &amp;lt;mutex&amp;gt;  // std::mutex, std::lock_guard
  +++ |+#include &amp;lt;mutex&amp;gt;
   63 | #endif
C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\include/opencv2/core/utility.hpp:719:29: error: 'Mutex' is not a member of 'cv'
  719 | typedef std::lock_guard&amp;lt;cv::Mutex&amp;gt; AutoLock;
      |                             ^~~~~
C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\include/opencv2/core/utility.hpp:719:29: error: 'Mutex' is not a member of 'cv'
C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\include/opencv2/core/utility.hpp:719:34: error: template argument 1 is invalid
  719 | typedef std::lock_guard&amp;lt;cv::Mutex&amp;gt; AutoLock;
      |                                  ^
In file included from C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\src\algorithm.cpp:43:
C:\Users\a0500376\Documents\opencv_porting\opencv_mcu\modules\core\src\precomp.hpp:369:5: error: 'Mutex' in namespace 'cv' does not name a type
  369 | cv::Mutex&amp;amp; getInitializationMutex();
      |     ^~~~~
modules\world\CMakeFiles\opencv_world.dir\build.make:159: recipe for target 'modules/world/CMakeFiles/opencv_world.dir/__/core/src/algorithm.cpp.obj' failed
mingw32-make[2]: *** [modules/world/CMakeFiles/opencv_world.dir/__/core/src/algorithm.cpp.obj] Error 1
CMakeFiles\Makefile2:809: recipe for target 'modules/world/CMakeFiles/opencv_world.dir/all' failed
mingw32-make[1]: *** [modules/world/CMakeFiles/opencv_world.dir/all] Error 2
Makefile:164: recipe for target 'all' failed
mingw32-make: *** [all] Error 2&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 May 2023 10:00:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1656543#M206450</guid>
      <dc:creator>kowshik1729</dc:creator>
      <dc:date>2023-05-24T10:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1658079#M206600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215654"&gt;@kowshik1729&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What's the code you are using now? the AN13725 attached software directly?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN13725SW.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN13725SW.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Which IDE you are using now, and the version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you work this issue for your company, please use the company email to create the question again, then it will have higher support priority than the 3rd part email, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 04:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1658079#M206600</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-26T04:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1658090#M206603</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;With all due respect, have you cross checked the content of the zip you've sent vs the content of the appnote?&amp;nbsp;&lt;/P&gt;&lt;P&gt;There should be fake_root, opencv sources etc., present in that zip as per the appnote but the sw you've shared is a hello world expresso project. Please cross check and let me know.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 05:15:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1658090#M206603</guid>
      <dc:creator>kowshik1729</dc:creator>
      <dc:date>2023-05-26T05:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1658099#M206605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215654"&gt;@kowshik1729&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AN13725SW is for the AN13725, it is also used the opencv:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1685079264905.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/224942i01516A63720066AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1685079264905.png" alt="kerryzhou_0-1685079264905.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That's why I ask what the code you are running, we need more information for your issues.&lt;/P&gt;
&lt;P&gt;And, it's better to use your company email to create the question instead of the gmail, then we can put more working time for your question,thanks a lot for your understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 05:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1658099#M206605</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-26T05:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1658115#M206606</link>
      <description>&lt;P&gt;Hi kerry,&lt;/P&gt;&lt;P&gt;I understand that the SW uses the expresso project in the end, but I would need the zip to perform the rest of the appnote steps like compiling opencv etc., I have searched around the community and found this the correct package&amp;nbsp;&lt;A href="https://gitee.com/crist_xu/opencv_mcu" target="_blank"&gt;https://gitee.com/crist_xu/opencv_mcu&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how do I directly change from my gmail to company mail? Do I have to create a new account and post a new question?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 06:06:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1658115#M206606</guid>
      <dc:creator>kowshik1729</dc:creator>
      <dc:date>2023-05-26T06:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1659433#M206759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215654"&gt;@kowshik1729&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks for your updated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Yes, you need to&amp;nbsp;&lt;SPAN&gt;create a new account and post a new question, then you can AT me, then I can help you to check internally with our opencv expert about your issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; In your new question, please also tell me, which AN content you have tried, and have issues, then I can talk with our AN author internally about your issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Thanks&amp;nbsp; a lot for your understanding.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 03:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1659433#M206759</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-30T03:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1661419#M206906</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215654"&gt;@kowshik1729&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please make sure CMAKE version is&amp;nbsp;cmake-3.10.2-win64-x64. Other version can't get good result. THREAD support must be disabled.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingpan_0-1685588744832.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225740iAB0F52894A6A2FD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jingpan_0-1685588744832.png" alt="jingpan_0-1685588744832.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 03:05:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1661419#M206906</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-06-01T03:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1800871#M219574</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I looked at your post, and I am also trying to port the opencv.&lt;/P&gt;&lt;P&gt;However, I am having issues even on earlier stage, when CMake is trying to test the compiler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have problems when CMake seem to create a temporary random name directory with extension .dir but then it does not recognize that directory name itself, &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Have you had something similar in your attempts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compilation failed:&lt;BR /&gt;source file: 'C:/job/projects/bio/prize/gita/opencv_mcu/cmake/checks/cxx11.cpp'&lt;BR /&gt;check option: '-std=c++11'&lt;BR /&gt;===== BUILD LOG =====&lt;BR /&gt;Change Dir: C:/job/projects/bio/prize/gita/opencv_mcu/build/CMakeFiles/CMakeTmp&lt;/P&gt;&lt;P&gt;Run Build Command:"C:/job/projects/bio/nobel/MinGW/msys/1.0/bin/make.exe" "cmTC_6d5dc/fast"&lt;BR /&gt;/usr/bin/make -f CMakeFiles\cmTC_6d5dc.dir\build.make CMakeFiles/cmTC_6d5dc.dir/build&lt;BR /&gt;'mTC_6d5dc.dir' is not recognized as an internal or external command,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 13:28:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1800871#M219574</guid>
      <dc:creator>nikolayyakovenk</dc:creator>
      <dc:date>2024-02-02T13:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1800953#M219580</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176692"&gt;@nikolayyakovenk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't seen any such issue for me, but with the experience getting it compiled and ported I'd highly recommend not to use the GUI and compile it with the terminal directly. Also, please download the arm-none-eabi-gcc compiler if you don't have it or if you have MCUXpresso IDE give the correct compiler path in the Cmakelist file. Don't use the MinGW for this.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 15:25:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1800953#M219580</guid>
      <dc:creator>kowshik1729</dc:creator>
      <dc:date>2024-02-02T15:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1801989#M219657</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much, I will do that. Also, I was thinking that perhaps better to use cross-compiler GCC (arm-none-eabi) on Linux? At least there is no issues with forward/backward slash. :-).&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 15:32:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1801989#M219657</guid>
      <dc:creator>nikolayyakovenk</dc:creator>
      <dc:date>2024-02-05T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: AN13725 - how is opencv compiled without having Mutex errors?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1802014#M219661</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176692"&gt;@nikolayyakovenk&lt;/a&gt;&amp;nbsp;Yes, cross-compiling and then linking to your MCU is the better way I can think of, unless you're compiling it for any MPU's cross compiling is the best way. It makes the build faster and easier to port.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 15:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/AN13725-how-is-opencv-compiled-without-having-Mutex-errors/m-p/1802014#M219661</guid>
      <dc:creator>gkowshik</dc:creator>
      <dc:date>2024-02-05T15:58:33Z</dc:date>
    </item>
  </channel>
</rss>

