<?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 Error in Building IPP with CMake in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-Building-IPP-with-CMake/m-p/785447#M1941</link>
    <description>Hello,&lt;BR /&gt;I just built IPP 7.0.7.319_ia32 as a fresh, followed by OpenCV-2.4.2. During the compilation of OpenCV, when I turned the "USE IPP" as "ON", it can automatically detect the location of IPP. Then I tried compiling one simple ipp code with CMake and it gives me this error:&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;Make Error at CMakeLists.txt:8 (FIND_PACKAGE):&lt;BR /&gt; Could not find module FindIPP.cmake or a configuration file for package&lt;BR /&gt; IPP.&lt;BR /&gt;&lt;BR /&gt; Adjust CMAKE_MODULE_PATH to find FindIPP.cmake or set IPP_DIR to the&lt;BR /&gt; directory containing a CMake configuration file for IPP. The file will&lt;BR /&gt; have one of the following names:&lt;BR /&gt;&lt;BR /&gt; IPPConfig.cmake&lt;BR /&gt; ipp-config.cmake&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;I run "locate IPPConfig.cmake" and "locate ipp-config.cmake" in the terminal, but it gives nothing, seems like there is no such file. My CMakeLists.txt is as follows:&lt;/B&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;cmake_minimum_required(VERSION 2.4)&lt;BR /&gt;&lt;BR /&gt;PROJECT( TestIPP)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FIND_PACKAGE( OpenCV REQUIRED )&lt;BR /&gt;&lt;BR /&gt;FIND_PACKAGE (IPP REQUIRED )&lt;BR /&gt;&lt;BR /&gt;if (IPP_FOUND)&lt;BR /&gt; add_definitions ( -DHAVE_IPP)&lt;BR /&gt; include_directories ( ${IPP_INCLUDE_DIRS} )&lt;BR /&gt; link_directories ( $ { IPP_LIBRARY_DIRS } )&lt;BR /&gt; set ( OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${IPP_LIBRARIES} )&lt;BR /&gt;endif()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ADD_EXECUTABLE( TestIPP TestIPP.c )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;TARGET_LINK_LIBRARIES( TestIPP ${OpenCV_LIBS} ${IPP_SAMPLEROOT} )&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;The simple test code "TestIPP.c", which is found on the internet, is as follows:&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;#include "cv.h"&lt;BR /&gt;#include "highgui.h"&lt;BR /&gt;#include "ipp.h"&lt;BR /&gt;#include "stdio.h"&lt;BR /&gt;&lt;BR /&gt;char name[] = "images/1.jpeg";&lt;BR /&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt; Ipp8u *gray = NULL;&lt;BR /&gt; IppiSize size;&lt;BR /&gt;&lt;BR /&gt; IplImage* img = NULL;&lt;BR /&gt; CvSize sizeImg;&lt;BR /&gt;&lt;BR /&gt; int i=0, j=0;&lt;BR /&gt;&lt;BR /&gt; size.width = 640;&lt;BR /&gt; size.height = 480;&lt;BR /&gt; gray = (Ipp8u *) ippsMalloc_8u( size.width * size.height );&lt;BR /&gt;&lt;BR /&gt; for ( i=0; i&amp;lt; size.height; i++)&lt;BR /&gt; {&lt;BR /&gt;  for (j=0; j&lt;SIZE.WIDTH&gt;&lt;/SIZE.WIDTH&gt;  {&lt;BR /&gt;   *(gray+i*size.width+j)= (Ipp8u) abs (255*cos((Ipp32f) (i*j)));&lt;BR /&gt;  }&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; sizeImg.width = size.width;&lt;BR /&gt; sizeImg.height = size.height; &lt;BR /&gt; img = cvCreateImage ( sizeImg, 8, 1 );&lt;BR /&gt;  cvSetImageData ( img, gray, sizeImg.width );&lt;BR /&gt;&lt;BR /&gt; cvNamedWindow ( "image", 0 );&lt;BR /&gt; cvShowImage ( "image", img) ;&lt;BR /&gt;&lt;BR /&gt; cvWaitKey (0);&lt;BR /&gt; cvDestroyWindow ( "image" );&lt;BR /&gt;&lt;BR /&gt; ippsFree ( gray );&lt;BR /&gt; &lt;BR /&gt; img-&amp;gt;imageData = NULL;&lt;BR /&gt; cvReleaseImage ( &amp;amp; img );&lt;BR /&gt; &lt;BR /&gt; return ( 0 );&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;Could someone help me explain this? &lt;BR /&gt;By the way, I use Ubuntu 10.04 LTS Lucid 32 bit, with CMake 2.8.0. &lt;BR /&gt;Many thanks in advance. &lt;BR /&gt;Ederman &lt;BR /&gt;</description>
    <pubDate>Thu, 12 Jul 2012 08:23:45 GMT</pubDate>
    <dc:creator>ederman</dc:creator>
    <dc:date>2012-07-12T08:23:45Z</dc:date>
    <item>
      <title>Error in Building IPP with CMake</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-Building-IPP-with-CMake/m-p/785447#M1941</link>
      <description>Hello,&lt;BR /&gt;I just built IPP 7.0.7.319_ia32 as a fresh, followed by OpenCV-2.4.2. During the compilation of OpenCV, when I turned the "USE IPP" as "ON", it can automatically detect the location of IPP. Then I tried compiling one simple ipp code with CMake and it gives me this error:&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;Make Error at CMakeLists.txt:8 (FIND_PACKAGE):&lt;BR /&gt; Could not find module FindIPP.cmake or a configuration file for package&lt;BR /&gt; IPP.&lt;BR /&gt;&lt;BR /&gt; Adjust CMAKE_MODULE_PATH to find FindIPP.cmake or set IPP_DIR to the&lt;BR /&gt; directory containing a CMake configuration file for IPP. The file will&lt;BR /&gt; have one of the following names:&lt;BR /&gt;&lt;BR /&gt; IPPConfig.cmake&lt;BR /&gt; ipp-config.cmake&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;I run "locate IPPConfig.cmake" and "locate ipp-config.cmake" in the terminal, but it gives nothing, seems like there is no such file. My CMakeLists.txt is as follows:&lt;/B&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;cmake_minimum_required(VERSION 2.4)&lt;BR /&gt;&lt;BR /&gt;PROJECT( TestIPP)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FIND_PACKAGE( OpenCV REQUIRED )&lt;BR /&gt;&lt;BR /&gt;FIND_PACKAGE (IPP REQUIRED )&lt;BR /&gt;&lt;BR /&gt;if (IPP_FOUND)&lt;BR /&gt; add_definitions ( -DHAVE_IPP)&lt;BR /&gt; include_directories ( ${IPP_INCLUDE_DIRS} )&lt;BR /&gt; link_directories ( $ { IPP_LIBRARY_DIRS } )&lt;BR /&gt; set ( OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${IPP_LIBRARIES} )&lt;BR /&gt;endif()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ADD_EXECUTABLE( TestIPP TestIPP.c )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;TARGET_LINK_LIBRARIES( TestIPP ${OpenCV_LIBS} ${IPP_SAMPLEROOT} )&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;The simple test code "TestIPP.c", which is found on the internet, is as follows:&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;#include "cv.h"&lt;BR /&gt;#include "highgui.h"&lt;BR /&gt;#include "ipp.h"&lt;BR /&gt;#include "stdio.h"&lt;BR /&gt;&lt;BR /&gt;char name[] = "images/1.jpeg";&lt;BR /&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt; Ipp8u *gray = NULL;&lt;BR /&gt; IppiSize size;&lt;BR /&gt;&lt;BR /&gt; IplImage* img = NULL;&lt;BR /&gt; CvSize sizeImg;&lt;BR /&gt;&lt;BR /&gt; int i=0, j=0;&lt;BR /&gt;&lt;BR /&gt; size.width = 640;&lt;BR /&gt; size.height = 480;&lt;BR /&gt; gray = (Ipp8u *) ippsMalloc_8u( size.width * size.height );&lt;BR /&gt;&lt;BR /&gt; for ( i=0; i&amp;lt; size.height; i++)&lt;BR /&gt; {&lt;BR /&gt;  for (j=0; j&lt;SIZE.WIDTH&gt;&lt;/SIZE.WIDTH&gt;  {&lt;BR /&gt;   *(gray+i*size.width+j)= (Ipp8u) abs (255*cos((Ipp32f) (i*j)));&lt;BR /&gt;  }&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; sizeImg.width = size.width;&lt;BR /&gt; sizeImg.height = size.height; &lt;BR /&gt; img = cvCreateImage ( sizeImg, 8, 1 );&lt;BR /&gt;  cvSetImageData ( img, gray, sizeImg.width );&lt;BR /&gt;&lt;BR /&gt; cvNamedWindow ( "image", 0 );&lt;BR /&gt; cvShowImage ( "image", img) ;&lt;BR /&gt;&lt;BR /&gt; cvWaitKey (0);&lt;BR /&gt; cvDestroyWindow ( "image" );&lt;BR /&gt;&lt;BR /&gt; ippsFree ( gray );&lt;BR /&gt; &lt;BR /&gt; img-&amp;gt;imageData = NULL;&lt;BR /&gt; cvReleaseImage ( &amp;amp; img );&lt;BR /&gt; &lt;BR /&gt; return ( 0 );&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;Could someone help me explain this? &lt;BR /&gt;By the way, I use Ubuntu 10.04 LTS Lucid 32 bit, with CMake 2.8.0. &lt;BR /&gt;Many thanks in advance. &lt;BR /&gt;Ederman &lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:23:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-Building-IPP-with-CMake/m-p/785447#M1941</guid>
      <dc:creator>ederman</dc:creator>
      <dc:date>2012-07-12T08:23:45Z</dc:date>
    </item>
    <item>
      <title>Error in Building IPP with CMake</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-Building-IPP-with-CMake/m-p/785448#M1942</link>
      <description>Hi Ederman, &lt;BR /&gt;&lt;BR /&gt;As I understand, you can use the command FIND_PACKAGE( OpenCV REQUIRED ) to find OpenCV library because OpenCV provide such config file: &lt;BR /&gt;&lt;BR /&gt;OpenCVConfig.cmake. &lt;BR /&gt;&lt;BR /&gt;But the command is not suitable to find other-thirdpart library, include IPPbecause OpenCVdon't provide suchrequired file. &lt;BR /&gt;IPPConfig.cmake&lt;BR /&gt;FindIPP.cmake&lt;BR /&gt;ipp-config.cmake&lt;BR /&gt;&lt;BR /&gt;Sothe solution could be either you createsuch config files to help to find IPP.&lt;BR /&gt;or use same wayas OpenCV CmakeList to find IPP (not sure if it works)&lt;BR /&gt;The FINDIPP related config file in OpenCV is &lt;STRONG&gt;OpenCVFindIPP.cmake&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;and In OpenCV CmakeList.txt&lt;BR /&gt;if(DEFINED WITH_IPP)&lt;BR /&gt; if(WITH_IPP AND IPP_FOUND)&lt;BR /&gt; status(" Use IPP:" "${IPP_LATEST_VERSION_STR} [${IPP_LATEST_VERSION_MAJOR}.${IPP_LATEST_VERSION_MINOR}.${IPP_LATEST_VERSION_BUILD}]")&lt;BR /&gt; status(" at:" "${IPP_ROOT_DIR}")&lt;BR /&gt; else()&lt;BR /&gt; status(" Use IPP:" WITH_IPP AND NOT IPP_FOUND THEN "IPP not found" ELSE NO)&lt;BR /&gt; endif()&lt;BR /&gt;endif(DEFINED WITH_IPP)&lt;BR /&gt;&lt;BR /&gt;But on the other hand,as you are testing IPP and havesured the IPPwas installed,to simplify the processing, the step FIND_PACKAGEseems not needed. You may just directly set IPP_INCLUDE_DIR, IPP_LIBRARY etc. to make the test passed. (as we did for buildgenernal IPP application). &lt;BR /&gt;&lt;BR /&gt;Best Regards, &lt;BR /&gt;Ying &lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jul 2012 08:16:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-Building-IPP-with-CMake/m-p/785448#M1942</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2012-07-20T08:16:59Z</dc:date>
    </item>
    <item>
      <title>Error in Building IPP with CMake</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-Building-IPP-with-CMake/m-p/785449#M1943</link>
      <description>Dear Ying, &lt;BR /&gt;&lt;BR /&gt;Thank you very much for your detailed answer. I will try it as you said with CMake. &lt;BR /&gt;&lt;BR /&gt;Best wishes, &lt;BR /&gt;Ederman</description>
      <pubDate>Fri, 20 Jul 2012 11:42:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-Building-IPP-with-CMake/m-p/785449#M1943</guid>
      <dc:creator>ederman</dc:creator>
      <dc:date>2012-07-20T11:42:26Z</dc:date>
    </item>
  </channel>
</rss>

