<?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>topic Re: building opencv for LSDK: undefined reference to OpenCL libs in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/building-opencv-for-LSDK-undefined-reference-to-OpenCL-libs/m-p/2052876#M15453</link>
    <description>&lt;P&gt;Please refer to the following patch&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/introlab/rtabmap/commit/4017db1d15815b1961f9cb5bae8f2f6391acf34a" target="_blank"&gt;https://github.com/introlab/rtabmap/commit/4017db1d15815b1961f9cb5bae8f2f6391acf34a&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 09:34:14 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2025-02-27T09:34:14Z</dc:date>
    <item>
      <title>building opencv for LSDK: undefined reference to OpenCL libs</title>
      <link>https://community.nxp.com/t5/Layerscape/building-opencv-for-LSDK-undefined-reference-to-OpenCL-libs/m-p/2049343#M15428</link>
      <description>&lt;P&gt;I am trying to use flex-builder to run&lt;/P&gt;&lt;P&gt;bld -c opencv -r ubuntu:desktop&lt;/P&gt;&lt;P&gt;I want latest versions of OpenCV. Inside my sdk.yml file, I have my opencv-imx branch set to 4.8.1_imx (latest branch).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run the build, I see errors pertaining to libavutil.so like the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Scanning dependencies of target opencv_test_gapi&lt;BR /&gt;make[4]: Leaving directory '/home/nsw34479/Downloads/flexbuild_lsdk2108_github/components/apps/eiq/opencv/build'&lt;BR /&gt;make[4]: Entering directory '/home/nsw34479/Downloads/flexbuild_lsdk2108_github/components/apps/eiq/opencv/build'&lt;BR /&gt;[ 71%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/common/gapi_compoundkernel_tests.cpp.o&lt;BR /&gt;/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/nsw34479/Downloads/flexbuild_lsdk2108_github/build/rfs/rootfs_lsdk2108_ubuntu_desktop_arm64/lib/aarch64-linux-gnu/libavutil.so.56: undefined reference to `clEnqueueWriteImage@OPENCL_1.0'&lt;BR /&gt;/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/nsw34479/Downloads/flexbuild_lsdk2108_github/build/rfs/rootfs_lsdk2108_ubuntu_desktop_arm64/lib/aarch64-linux-gnu/libavutil.so.56: undefined reference to `clReleaseMemObject@OPENCL_1.0'&lt;BR /&gt;/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/nsw34479/Downloads/flexbuild_lsdk2108_github/build/rfs/rootfs_lsdk2108_ubuntu_desktop_arm64/usr/lib/libOpenCL.so: undefined reference to `glUnmapBufferOES'&lt;BR /&gt;/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/nsw34479/Downloads/flexbuild_lsdk2108_github/build/rfs/rootfs_lsdk2108_ubuntu_desktop_arm64/lib/aarch64-linux-gnu/libavutil.so.56: undefined reference to `clReleaseCommandQueue@OPENCL_1.0'&lt;BR /&gt;/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/nsw34479/Downloads/flexbuild_lsdk2108_github/build/rfs/rootfs_lsdk2108_ubuntu_desktop_arm64/lib/aarch64-linux-gnu/libavutil.so.56: undefined reference to `clReleaseEvent@OPENCL_1.0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does this mean I need to have the OpenCL libs installed on my host machine? Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 00:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/building-opencv-for-LSDK-undefined-reference-to-OpenCL-libs/m-p/2049343#M15428</guid>
      <dc:creator>noahw</dc:creator>
      <dc:date>2025-02-22T00:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: building opencv for LSDK: undefined reference to OpenCL libs</title>
      <link>https://community.nxp.com/t5/Layerscape/building-opencv-for-LSDK-undefined-reference-to-OpenCL-libs/m-p/2052876#M15453</link>
      <description>&lt;P&gt;Please refer to the following patch&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/introlab/rtabmap/commit/4017db1d15815b1961f9cb5bae8f2f6391acf34a" target="_blank"&gt;https://github.com/introlab/rtabmap/commit/4017db1d15815b1961f9cb5bae8f2f6391acf34a&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 09:34:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/building-opencv-for-LSDK-undefined-reference-to-OpenCL-libs/m-p/2052876#M15453</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2025-02-27T09:34:14Z</dc:date>
    </item>
  </channel>
</rss>

