<?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 2023.1: troubleshoot/errata CMake Error in Intel® Rendering Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Rendering-Toolkit/2023-1-troubleshoot-errata-CMake-Error/m-p/1476040#M98</link>
    <description>&lt;P&gt;Troubleshoot/Errata&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;*Update 20230525*:&lt;/STRONG&gt; Please acquire the 2023.1.1 Rendering Toolkit update from the &lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/rendering-toolkit-download.html" target="_self"&gt;download page&lt;/A&gt; or from Intel repositories. This update fixes the Embree CMake file issue described in this errata forum post. All other Embree library contents are the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-----------------&lt;/P&gt;
&lt;P&gt;2023.1.0 Messaging:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Embree cmake build files in the 2023.1.0 toolkit release contain mismatched paths. This has been observed to yield build errors in the 2023.1.0 release of the toolkit. &lt;/STRONG&gt;Here is the 2023.1.0 symptom when building an Embree program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;CMake Error at /opt/intel/oneapi/embree/latest/lib/cmake/embree/embree-config.cmake:97 (INCLUDE):

  INCLUDE could not find requested file:

    /opt/intel/oneapi/embree/latest/lib/cmake/embree-4.0.1/embree_sycl-targets.cmake

Call Stack (most recent call first):

  CMakeLists.txt:18 (find_package)

CMake Error at /opt/intel/oneapi/embree/latest/lib/cmake/embree/embree-config.cmake:101 (INCLUDE):

  INCLUDE could not find requested file:

    /opt/intel/oneapi/embree/latest/lib/cmake/embree-4.0.1/embree-targets.cmake
Call Stack (most recent call first):
  CMakeLists.txt:18 (find_package)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A mitigation to remove an inaccurate file reference is described below. Note: Change the file paths to that of your 2023.1 toolkit installation directory as needed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Backup embree-config.cmake:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Linux/macOS terminal:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sudo cp /opt/intel/oneapi/embree/4.0.1/lib/cmake/embree/embree-config.cmake /opt/intel/oneapi/embree/4.0.1/lib/cmake/embree/embree-config.cmake-orig&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Windows launch a Windows cmd.exe shell. Run it as administrator if your oneAPI install is in an administrator owned path. Backup the file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;copy "C:\Program Files (x86)\Intel\oneAPI\embree\4.0.1\lib\cmake\embree\embree-config.cmake" "C:\Program Files (x86)\Intel\oneAPI\embree\4.0.1\lib\cmake\embree\embree-config.cmake-orig"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Apply Edits:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2a. Either Manually edit the file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Linux/macOS/minGW-style terminal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sudo sed -i ‘s/-4.0.1//g’ /opt/intel/oneapi/embree/4.0.1/lib/cmake/embree/embree-config.cmake&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Windows powershell (Run powershell as administrator as needed)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(Get-Content "C:\Program Files (x86)\Intel\oneAPI\embree\4.0.1\lib\cmake\embree\embree-config.cmake").replace('-4.0.1', '') | Set-Content "C:\Program Files (x86)\Intel\oneAPI\embree\4.0.1\lib\cmake\embree\embree-config.cmake"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2b. &amp;nbsp;OR on Linux/macOS you have the ‘patch’ utility… save the attached embree-config.txt (patch) and process the patch:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;patch /opt/intel/oneapi/embree/4.0.1/lib/cmake/embree/embree-config.cmake &amp;lt; /path/to/patch/embree-config.txt&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Change the paths as needed in the patch.&lt;/P&gt;
&lt;P&gt;3. Retry the Embree getting started guide (Windows/Linux/macOS/repository) to ensure functionality.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 21:21:51 GMT</pubDate>
    <dc:creator>Michael_C_Intel1</dc:creator>
    <dc:date>2023-05-25T21:21:51Z</dc:date>
    <item>
      <title>2023.1: troubleshoot/errata CMake Error</title>
      <link>https://community.intel.com/t5/Intel-Rendering-Toolkit/2023-1-troubleshoot-errata-CMake-Error/m-p/1476040#M98</link>
      <description>&lt;P&gt;Troubleshoot/Errata&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;*Update 20230525*:&lt;/STRONG&gt; Please acquire the 2023.1.1 Rendering Toolkit update from the &lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/rendering-toolkit-download.html" target="_self"&gt;download page&lt;/A&gt; or from Intel repositories. This update fixes the Embree CMake file issue described in this errata forum post. All other Embree library contents are the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-----------------&lt;/P&gt;
&lt;P&gt;2023.1.0 Messaging:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Embree cmake build files in the 2023.1.0 toolkit release contain mismatched paths. This has been observed to yield build errors in the 2023.1.0 release of the toolkit. &lt;/STRONG&gt;Here is the 2023.1.0 symptom when building an Embree program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;CMake Error at /opt/intel/oneapi/embree/latest/lib/cmake/embree/embree-config.cmake:97 (INCLUDE):

  INCLUDE could not find requested file:

    /opt/intel/oneapi/embree/latest/lib/cmake/embree-4.0.1/embree_sycl-targets.cmake

Call Stack (most recent call first):

  CMakeLists.txt:18 (find_package)

CMake Error at /opt/intel/oneapi/embree/latest/lib/cmake/embree/embree-config.cmake:101 (INCLUDE):

  INCLUDE could not find requested file:

    /opt/intel/oneapi/embree/latest/lib/cmake/embree-4.0.1/embree-targets.cmake
Call Stack (most recent call first):
  CMakeLists.txt:18 (find_package)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A mitigation to remove an inaccurate file reference is described below. Note: Change the file paths to that of your 2023.1 toolkit installation directory as needed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Backup embree-config.cmake:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Linux/macOS terminal:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sudo cp /opt/intel/oneapi/embree/4.0.1/lib/cmake/embree/embree-config.cmake /opt/intel/oneapi/embree/4.0.1/lib/cmake/embree/embree-config.cmake-orig&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Windows launch a Windows cmd.exe shell. Run it as administrator if your oneAPI install is in an administrator owned path. Backup the file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;copy "C:\Program Files (x86)\Intel\oneAPI\embree\4.0.1\lib\cmake\embree\embree-config.cmake" "C:\Program Files (x86)\Intel\oneAPI\embree\4.0.1\lib\cmake\embree\embree-config.cmake-orig"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Apply Edits:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2a. Either Manually edit the file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Linux/macOS/minGW-style terminal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sudo sed -i ‘s/-4.0.1//g’ /opt/intel/oneapi/embree/4.0.1/lib/cmake/embree/embree-config.cmake&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Windows powershell (Run powershell as administrator as needed)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(Get-Content "C:\Program Files (x86)\Intel\oneAPI\embree\4.0.1\lib\cmake\embree\embree-config.cmake").replace('-4.0.1', '') | Set-Content "C:\Program Files (x86)\Intel\oneAPI\embree\4.0.1\lib\cmake\embree\embree-config.cmake"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2b. &amp;nbsp;OR on Linux/macOS you have the ‘patch’ utility… save the attached embree-config.txt (patch) and process the patch:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;patch /opt/intel/oneapi/embree/4.0.1/lib/cmake/embree/embree-config.cmake &amp;lt; /path/to/patch/embree-config.txt&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Change the paths as needed in the patch.&lt;/P&gt;
&lt;P&gt;3. Retry the Embree getting started guide (Windows/Linux/macOS/repository) to ensure functionality.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 21:21:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Rendering-Toolkit/2023-1-troubleshoot-errata-CMake-Error/m-p/1476040#M98</guid>
      <dc:creator>Michael_C_Intel1</dc:creator>
      <dc:date>2023-05-25T21:21:51Z</dc:date>
    </item>
  </channel>
</rss>

