<?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 Gregg, thank you! Ok, so i in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085186#M63115</link>
    <description>&lt;P&gt;Gregg, thank you! Ok, so i compile all libraries with mmic, such as opencv. Please, can you help me?&lt;/P&gt;

&lt;P&gt;FFMPEG is compileg with icc -mmic, in fact when i call ffmpeg, program returns&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;ffmpeg version N-80186-g39c0b22 Copyright (c) 2000-2016 the FFmpeg developers
  built with icc (ICC) 15.0.2 20150121
  configuration: --prefix=/home/spm1407/ffmpeg_build --bindir=/home/spm1407/bin --enable-shared --disable-yasm --enable-pic --enable-cross-compile --arch=x86_64 --target-os=linux --cc=icc --cxx=icpc
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 44.100 / 57. 44.100
  libavformat    57. 37.101 / 57. 37.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.100 /  6. 46.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
&lt;/PRE&gt;

&lt;P&gt;I tried to compile OpenCV but it returns many errors. I resolve almost all errors, but one is relative to&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;x86_64-k1om-linux-ld,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;if fact build returns&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;x86_64-k1om-linux-ld: cannot find -lbz2
x86_64-k1om-linux-ld: cannot find -lgtk-x11-2.0
x86_64-k1om-linux-ld: cannot find -lgdk-x11-2.0
x86_64-k1om-linux-ld: cannot find -latk-1.0
x86_64-k1om-linux-ld: cannot find -lgio-2.0
x86_64-k1om-linux-ld: cannot find -lpangoft2-1.0
x86_64-k1om-linux-ld: cannot find -lgdk_pixbuf-2.0
x86_64-k1om-linux-ld: cannot find -lpangocairo-1.0
x86_64-k1om-linux-ld: cannot find -lcairo
x86_64-k1om-linux-ld: cannot find -lpango-1.0
x86_64-k1om-linux-ld: cannot find -lfreetype
x86_64-k1om-linux-ld: cannot find -lfontconfig
x86_64-k1om-linux-ld: cannot find -lgobject-2.0
x86_64-k1om-linux-ld: cannot find -lgmodule-2.0
x86_64-k1om-linux-ld: cannot find -lgthread-2.0
x86_64-k1om-linux-ld: cannot find -lglib-2.0
x86_64-k1om-linux-ld: cannot find -lgstbase-0.10
x86_64-k1om-linux-ld: cannot find -lgstreamer-0.10
x86_64-k1om-linux-ld: cannot find -lxml2
x86_64-k1om-linux-ld: cannot find -lgobject-2.0
x86_64-k1om-linux-ld: cannot find -lgmodule-2.0
x86_64-k1om-linux-ld: cannot find -lgthread-2.0
x86_64-k1om-linux-ld: cannot find -lglib-2.0
x86_64-k1om-linux-ld: cannot find -lgstbase-0.10
x86_64-k1om-linux-ld: cannot find -lgstreamer-0.10
x86_64-k1om-linux-ld: cannot find -lxml2
x86_64-k1om-linux-ld: cannot find -lavcodec
x86_64-k1om-linux-ld: cannot find -lavformat
x86_64-k1om-linux-ld: cannot find -lavutil
x86_64-k1om-linux-ld: cannot find -lswscale
make[2]: *** [bin/opencv_perf_core] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
make: *** [all] Error 2
&lt;/PRE&gt;

&lt;P&gt;I build OpenCv with&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=$HOME/lib/opencv-3.1.0 -D WITH_GTK=ON  -DCMAKE_TOOLCHAIN_FILE=../cmake_files/cmake_template.cmake  -DCMAKE_C_FLAGS=-mmic -DCMAKE_CXX_FLAGS=-mmic  -DWITH_TIFF=OFF -DWITH_OPENEXR=OFF -DWITH_PNG=OFF  -DBUILD_LIBJPEG=ON -DBUILD_SHARED_LIBS=OFF  ..&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	Any suggest? Thanks&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jun 2016 18:07:37 GMT</pubDate>
    <dc:creator>Maurizio_I_</dc:creator>
    <dc:date>2016-06-05T18:07:37Z</dc:date>
    <item>
      <title>Compile OpenCV code with -mmic flags</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085182#M63111</link>
      <description>&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;Hi, i need to compile my opencv code for mic coprocessor.&amp;nbsp;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I'm working on a Xeon machine hosted by University of Pisa which hosts Phi Co-Processor.&lt;BR /&gt;
	Because i'm not a super user in that machine, i compile OpenCV and FastFlow libraries in my home and setted environmental variables like&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;LD_LIBRARY_PATH and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;PKG_CONFIG_PATH.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I compile my code with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px; line-height: 19.512px;"&gt;icc -mmic -Wall -std=c++11  -DNO_DEFAULT_MAPPING -I /home/spm1407/lib/opencv-3.1.0/include/  
-I /home/spm1501/fastflow/ -O3  -o farm farm.cpp -pthread -L/home/spm1407/lib/opencv-3.1.0/lib 
-lopencv_core -lopencv_highgui -lopencv_imgcodecs -lopencv_videoio  -lopencv_video -lopencv_imgproc -lpthread &lt;/PRE&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;When I compile without -mmic flag, compiler works fine. But if I compile with that flag, compiler returns&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px; line-height: 19.512px;"&gt;x86_64-k1om-linux-ld: skipping incompatible /home/spm1407/lib/opencv-3.1.0/lib/libopencv_core.so when searching for -lopencv_core
x86_64-k1om-linux-ld: cannot find -lopencv_core
x86_64-k1om-linux-ld: skipping incompatible /home/spm1407/lib/opencv-3.1.0/lib/libopencv_highgui.so when searching for -lopencv_highgui
x86_64-k1om-linux-ld: cannot find -lopencv_highgui
x86_64-k1om-linux-ld: skipping incompatible /home/spm1407/lib/opencv-3.1.0/lib/libopencv_imgcodecs.so when searching for -lopencv_imgcodecs
x86_64-k1om-linux-ld: cannot find -lopencv_imgcodecs
x86_64-k1om-linux-ld: skipping incompatible /home/spm1407/lib/opencv-3.1.0/lib/libopencv_videoio.so when searching for -lopencv_videoio
x86_64-k1om-linux-ld: cannot find -lopencv_videoio
x86_64-k1om-linux-ld: skipping incompatible /home/spm1407/lib/opencv-3.1.0/lib/libopencv_video.so when searching for -lopencv_video
x86_64-k1om-linux-ld: cannot find -lopencv_video
x86_64-k1om-linux-ld: skipping incompatible /home/spm1407/lib/opencv-3.1.0/lib/libopencv_imgproc.so when searching for -lopencv_imgproc
x86_64-k1om-linux-ld: cannot find -lopencv_imgproc&lt;/PRE&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I tried to resolve recompiling OpenCV with this guide&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/cross-compilation-for-intel-xeon-phi-coprocessor-with-cmake"&gt;https://software.intel.com/en-us/articles/cross-compilation-for-intel-xeon-phi-coprocessor-with-cmake&lt;/A&gt;&amp;nbsp;:&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px; line-height: 19.512px;"&gt;export CC=icc
export CXX=icpc
export FC=ifort
export CFLAGS="-mmic"
export CXXFLAGS=$CFLAGS
export FFLAGS=$CFLAGS
export MPI_C=mpiicc
export MPI_CXX=mpiicpc

cd opencv
mkdir release &amp;amp;&amp;amp; cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=$HOME/lib/opencv-3.1.0 -D WITH_GTK=ON 
-DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc -DWITH_CUDA=OFF 
-DCMAKE_TOOLCHAIN_FILE=../cmake_files/cmake_template.cmake  ..

when i call make, it returns

[  2%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_packbits.c.o
[  2%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_pixarlog.c.o
/home/spm1407/backup/opencv-3.1.0/3rdparty/libtiff/tif_pixarlog.c(93): catastrophic error: cannot open source file "zlib.h"
  #include "zlib.h"
                   ^

compilation aborted for /home/spm1407/backup/opencv-3.1.0/3rdparty/libtiff/tif_pixarlog.c (code 4)&lt;/PRE&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;How can i resolve??&lt;BR /&gt;
	Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 17:20:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085182#M63111</guid>
      <dc:creator>Maurizio_I_</dc:creator>
      <dc:date>2016-06-03T17:20:50Z</dc:date>
    </item>
    <item>
      <title>Were the libraries built with</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085183#M63112</link>
      <description>&lt;P&gt;Were the libraries&amp;nbsp;built with -mmic option?&amp;nbsp; All of the objects have to be k1om.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 21:02:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085183#M63112</guid>
      <dc:creator>Gregg_S_Intel</dc:creator>
      <dc:date>2016-06-03T21:02:43Z</dc:date>
    </item>
    <item>
      <title>Quote:Gregg S. (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085184#M63113</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Gregg S. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Were the libraries&amp;nbsp;built with -mmic option?&amp;nbsp; All of the objects have to be k1om.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	Gregg, i tried to compile OpenCv with -mmic but it fails. What's means "&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;All of the objects have to be k1om" ??&lt;BR /&gt;
	&lt;BR /&gt;
	Thanks&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 09:28:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085184#M63113</guid>
      <dc:creator>Maurizio_I_</dc:creator>
      <dc:date>2016-06-04T09:28:42Z</dc:date>
    </item>
    <item>
      <title>The first generation Intel</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085185#M63114</link>
      <description>&lt;P&gt;The first generation Intel Xeon Phi coprocessor has a unique instruction set.&amp;nbsp; Every object in the link command&amp;nbsp;has to have been built with -mmic option.&amp;nbsp; The "skipping incompatible" messages means those libraries were not built with -mmic.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 17:32:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085185#M63114</guid>
      <dc:creator>Gregg_S_Intel</dc:creator>
      <dc:date>2016-06-04T17:32:25Z</dc:date>
    </item>
    <item>
      <title>Gregg, thank you! Ok, so i</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085186#M63115</link>
      <description>&lt;P&gt;Gregg, thank you! Ok, so i compile all libraries with mmic, such as opencv. Please, can you help me?&lt;/P&gt;

&lt;P&gt;FFMPEG is compileg with icc -mmic, in fact when i call ffmpeg, program returns&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;ffmpeg version N-80186-g39c0b22 Copyright (c) 2000-2016 the FFmpeg developers
  built with icc (ICC) 15.0.2 20150121
  configuration: --prefix=/home/spm1407/ffmpeg_build --bindir=/home/spm1407/bin --enable-shared --disable-yasm --enable-pic --enable-cross-compile --arch=x86_64 --target-os=linux --cc=icc --cxx=icpc
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 44.100 / 57. 44.100
  libavformat    57. 37.101 / 57. 37.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.100 /  6. 46.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
&lt;/PRE&gt;

&lt;P&gt;I tried to compile OpenCV but it returns many errors. I resolve almost all errors, but one is relative to&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;x86_64-k1om-linux-ld,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;if fact build returns&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;x86_64-k1om-linux-ld: cannot find -lbz2
x86_64-k1om-linux-ld: cannot find -lgtk-x11-2.0
x86_64-k1om-linux-ld: cannot find -lgdk-x11-2.0
x86_64-k1om-linux-ld: cannot find -latk-1.0
x86_64-k1om-linux-ld: cannot find -lgio-2.0
x86_64-k1om-linux-ld: cannot find -lpangoft2-1.0
x86_64-k1om-linux-ld: cannot find -lgdk_pixbuf-2.0
x86_64-k1om-linux-ld: cannot find -lpangocairo-1.0
x86_64-k1om-linux-ld: cannot find -lcairo
x86_64-k1om-linux-ld: cannot find -lpango-1.0
x86_64-k1om-linux-ld: cannot find -lfreetype
x86_64-k1om-linux-ld: cannot find -lfontconfig
x86_64-k1om-linux-ld: cannot find -lgobject-2.0
x86_64-k1om-linux-ld: cannot find -lgmodule-2.0
x86_64-k1om-linux-ld: cannot find -lgthread-2.0
x86_64-k1om-linux-ld: cannot find -lglib-2.0
x86_64-k1om-linux-ld: cannot find -lgstbase-0.10
x86_64-k1om-linux-ld: cannot find -lgstreamer-0.10
x86_64-k1om-linux-ld: cannot find -lxml2
x86_64-k1om-linux-ld: cannot find -lgobject-2.0
x86_64-k1om-linux-ld: cannot find -lgmodule-2.0
x86_64-k1om-linux-ld: cannot find -lgthread-2.0
x86_64-k1om-linux-ld: cannot find -lglib-2.0
x86_64-k1om-linux-ld: cannot find -lgstbase-0.10
x86_64-k1om-linux-ld: cannot find -lgstreamer-0.10
x86_64-k1om-linux-ld: cannot find -lxml2
x86_64-k1om-linux-ld: cannot find -lavcodec
x86_64-k1om-linux-ld: cannot find -lavformat
x86_64-k1om-linux-ld: cannot find -lavutil
x86_64-k1om-linux-ld: cannot find -lswscale
make[2]: *** [bin/opencv_perf_core] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
make: *** [all] Error 2
&lt;/PRE&gt;

&lt;P&gt;I build OpenCv with&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=$HOME/lib/opencv-3.1.0 -D WITH_GTK=ON  -DCMAKE_TOOLCHAIN_FILE=../cmake_files/cmake_template.cmake  -DCMAKE_C_FLAGS=-mmic -DCMAKE_CXX_FLAGS=-mmic  -DWITH_TIFF=OFF -DWITH_OPENEXR=OFF -DWITH_PNG=OFF  -DBUILD_LIBJPEG=ON -DBUILD_SHARED_LIBS=OFF  ..&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	Any suggest? Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2016 18:07:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085186#M63115</guid>
      <dc:creator>Maurizio_I_</dc:creator>
      <dc:date>2016-06-05T18:07:37Z</dc:date>
    </item>
    <item>
      <title>You find some or all of the</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085187#M63116</link>
      <description>&lt;P&gt;You find some or all of the libraries you need compiled with -mmic here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-and-third-party-tools-and-libraries-available-with-support-for-intelr-xeon-phitm" style="font-size: 1em; line-height: 1.5;"&gt;https://software.intel.com/en-us/articles/intel-and-third-party-tools-and-libraries-available-with-support-for-intelr-xeon-phitm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 07:16:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085187#M63116</guid>
      <dc:creator>Gregg_S_Intel</dc:creator>
      <dc:date>2016-06-09T07:16:55Z</dc:date>
    </item>
    <item>
      <title>See especially the tar file</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085188#M63117</link>
      <description>&lt;P&gt;See especially the tar file "&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 16.8px; background-color: rgb(230, 230, 230);"&gt;Software for Coprocessor OS (k1om)"&lt;/SPAN&gt;&amp;nbsp;available with&amp;nbsp;Intel® Manycore Platform Software Stack (Intel® MPSS).&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss" style="font-size: 1em; line-height: 1.5;"&gt;https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 07:26:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085188#M63117</guid>
      <dc:creator>Gregg_S_Intel</dc:creator>
      <dc:date>2016-06-09T07:26:19Z</dc:date>
    </item>
    <item>
      <title> To be clear, what I'm saying</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085189#M63118</link>
      <description>&lt;P&gt;&amp;nbsp;To be clear, what I'm saying is you need k1om versions of each and every one of those libraries. &amp;nbsp;All objects in the link have to be k1om; that is, built with -mmic.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 07:30:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-OpenCV-code-with-mmic-flags/m-p/1085189#M63118</guid>
      <dc:creator>Gregg_S_Intel</dc:creator>
      <dc:date>2016-06-09T07:30:01Z</dc:date>
    </item>
  </channel>
</rss>

