<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to add Intel Performance Primitives to my project? ippInit() failure]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I am just a newbie on Qt and couldn't resolve IPP instantiation on my project.<br />
In my .pro file i added the includepath and libs as follows</p>
<p dir="auto">INCLUDEPATH += $$(IPP_DIR)</p>
<p dir="auto">where I set in Environmental Variables  as IPP_DIR = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\ipp\include</p>
<p dir="auto">LIBS +=  $$(IPP_LIB_X64)\ippcore.lib $$(IPP_LIB_X64)\ippsmt.lib $$(IPP_LIB_X64)\ippvmmt.lib $$(IPP_LIB_X64)\ippcoremt.lib</p>
<p dir="auto">where I set in Environmental Variables  as C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\ipp\lib\intel64_win\threaded</p>
<p dir="auto">in mainwindow.cpp is my simple code:</p>
<pre><code>code_text
```#include &lt;ipp.h&gt;
#include &lt;ippcore.h&gt;

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui-&gt;setupUi(this);

    const       IppLibraryVersion* libVersion;
    IppStatus   status;
    Ipp64u      cpuFeatures, enabledFeatures;

    ippInit();                      /* Initialize Intel(R) IPP library */
    libVersion = ippGetLibVersion();/* Get Intel(R) IPP library version info */

    qDebug() &lt;&lt; libVersion &lt;&lt; endl;
    status = ippGetCpuFeatures(&amp;cpuFeatures, 0);```
code_text
</code></pre>
<p dir="auto">it builds successfully both in Release and Debug modes but crashes when i run the program.<br />
Can anyone suggest me how to add Intel Performance Primitives properly ? Thank you</p>
<p dir="auto">Maya</p>
]]></description><link>https://forum.qt.io/topic/114645/how-to-add-intel-performance-primitives-to-my-project-ippinit-failure</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 16:40:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114645.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 May 2020 22:03:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to add Intel Performance Primitives to my project? ippInit() failure on Tue, 12 May 2020 10:50:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> I have selected System Environment for Build environment and there PATH exists.<br />
I have already added the binaries path to my System Environment PATH</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/3b4faef8-fbb3-4c23-b02b-b01e94570c09.png" alt="380ee00c-0194-4cfb-9648-eb56c264e66f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">and my simple .pro file, I have changed it to this</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/a93046ae-9c80-49cd-a612-60f6ed9b374b.png" alt="e562ec0b-59b1-45a2-9871-65f86e1ed80b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Now I was able to build the code.<br />
Both way of declaring the LIBS works fine. Either explicitly but with " " and use / instead of \</p>
<p dir="auto">I used as User Variables:</p>
<pre><code>IPP_DIR = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\ipp\include
IPP_LIB_X64 = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\ipp\lib\intel64_win

</code></pre>
<p dir="auto">and as System Variable</p>
<pre><code>INTEL_IPP_PATH  = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\redist\intel64_win\ipp
</code></pre>
<p dir="auto">It worked fine.<br />
Keeping it here for whom getting trouble to add Intel Performance Primitives integration to Qt.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/183a1b9f-6be7-429a-99ed-926309049831.png" alt="095ef654-10d1-4140-a790-c0bac6ca9162-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/594234</link><guid isPermaLink="true">https://forum.qt.io/post/594234</guid><dc:creator><![CDATA[D.Maya]]></dc:creator><pubDate>Tue, 12 May 2020 10:50:59 GMT</pubDate></item><item><title><![CDATA[Reply to How to add Intel Performance Primitives to my project? ippInit() failure on Sun, 10 May 2020 18:20:24 GMT]]></title><description><![CDATA[<p dir="auto">There might be a misunderstanding here. I am talking about the environment variable that is literally called PATH. And there's no trace of it in your screenshot.</p>
]]></description><link>https://forum.qt.io/post/593879</link><guid isPermaLink="true">https://forum.qt.io/post/593879</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 10 May 2020 18:20:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to add Intel Performance Primitives to my project? ippInit() failure on Sun, 10 May 2020 14:16:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/593774">How to add Intel Performance Primitives to my project? ippInit() failure</a>:</p>
<blockquote>
<p dir="auto">Hi,</p>
<p dir="auto">Did you add the folder where the corresponding dlls can be found to the PATH environment variable ? If not, go to the Run part of the Project panel and modify it there.</p>
</blockquote>
<p dir="auto">Yes I have added the necessary PATH entries, as indicated in my post. But I guess i'm referencing wrong ones..??<br />
My .pro files as follows</p>
<pre><code>LIBS +=  $$(IPP_LIB_X64)\ippcore.lib $$(IPP_LIB_X64)\ippsmt.lib $$(IPP_LIB_X64)\ippvmmt.lib $$(IPP_LIB_X64)\ippcoremt.lib $$(IPP_LIB_X64)\ipps.lib

INCLUDEPATH +=  $$(IPP_DIR)
</code></pre>
<p dir="auto">and the system variables are as follows</p>
<pre><code>IPP_DIR = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\ipp\include

IPP_LIB_X64 = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\ipp\lib\intel64_win\threaded
</code></pre>
<p dir="auto">but still the program crashes whenever I add the ippInit() function call as stated in previous message.<br />
I also checked the Run part of the Project panel as you suggested and saw that Base Environment for this run configuration is set to Build Environment and has all the System variables added to PATH are visible there.<br />
![alt text](<img src="https://ddgobkiprc33d.cloudfront.net/ae53baa5-9928-47dc-8606-4b782582367b.png" alt="f7fdbbcf-5edd-43f5-ae42-602a71d4cf98-image.png" class=" img-fluid img-markdown" /> image url)</p>
]]></description><link>https://forum.qt.io/post/593813</link><guid isPermaLink="true">https://forum.qt.io/post/593813</guid><dc:creator><![CDATA[D.Maya]]></dc:creator><pubDate>Sun, 10 May 2020 14:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to add Intel Performance Primitives to my project? ippInit() failure on Sun, 10 May 2020 07:18:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Did you add the folder where the corresponding dlls can be found to the PATH environment variable ? If not, go to the Run part of the Project panel and modify it there.</p>
]]></description><link>https://forum.qt.io/post/593774</link><guid isPermaLink="true">https://forum.qt.io/post/593774</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 10 May 2020 07:18:43 GMT</pubDate></item></channel></rss>