有很多人发现还是无法compile,特此更正几点注意事项:
1,如果你要build 64bit的ijl,请安装Intel IPP em64t版本,譬如w_ipp_em64t_p_6.0.0.130.exe、w_ipp_em64t_p_6.0.2.074.exe,只是不同的版本。
2,需要安装Intel compiler 或者 Visual Studio,VS默认支持的版本包括 VS2003、VS2005、VS2008,如果不是这些版本,可以通过修改env来支持
譬如需要支持VS2010,需要新增修改的几个文件,下面给出一个sample,支持VS2005、VS2008、VS2010进行build。
(sample path为 ipp-samples\image-codecs\jpeg-ijl )
a) 新增 buildem64t.bat,路径 ipp-samples\image-codecs\jpeg-ijl\
@echo off
rem
rem INTEL CORPORATION PROPRIETARY INFORMATION
rem This software is supplied under the terms of a license agreement or
rem nondisclosure agreement with Intel Corporation and may not be copied
rem or disclosed except in accordance with the terms of that agreement.
rem Copyright(c) 2007-2008 Intel Corporation. All Rights Reserved.
rem
cls
REM
REM Usage:
REM build{32|64|em64t}.bat [ cl7 | cl8 | cl9 | cl10 | icl101 | icl110 ]
REM
::::::::::::::::::
setlocal
set ARG=%1
@CALL:GET_VARS
@%HEADER%
@%GET_ENVIRONMENT%
nmake clean ARCH=%ARCH%
nmake ARCH=%ARCH% CC=%COMPILER% LINKAGE="dynamic"
@%FOOTER%
endlocal
GOTO:EOF
::::::::::::::::::::
:GET_VARS
set SCRIPT=%~n0
set ENV_FILE=env.bat
SET PLTF=%SCRIPT:build=%
SET ARCH=win%PLTF%
IF "%PLTF%" == "32" SET ARCH_C=
IF "%PLTF%" == "64" SET ARCH_C=64
IF "%PLTF%" == "em64t" SET ARCH_C=em64t
SET x=%~d0%~p0
SET y=%x:\ipp-samples\=*%
FOR /F "tokens=1 delims=*" %%i IN ("%y%") DO SET SAMPLES_ROOT=%%i\ipp-samples\
SET HEADER=CALL "%SAMPLES_ROOT%\tools\env\tools" TYPE_HEADER
SET FOOTER=CALL "%SAMPLES_ROOT%\tools\env\tools" TYPE_FOOTER
SET GET_ENVIRONMENT=PUSHD "%SAMPLES_ROOT%\tools\env" ^& CALL %ENV_FILE% ^& POPD
EXIT /B
b) 新增 winem64t.ini,路径 ipp-samples\image-codecs\jpeg-ijl\
#!INCLUDE <win32.mak>
LIB_ARCH = em64t
LINK_ARCH = AMD64
c) 修改 env.bat,路径 ipp-samples\tools\env\
@echo off
rem
rem INTEL CORPORATION PROPRIETARY INFORMATION
rem This software is supplied under the terms of a license agreement or
rem nondisclosure agreement with Intel Corporation and may not be copied
rem or disclosed except in accordance with the terms of that agreement.
rem Copyright(c) 2007-2008 Intel Corporation. All Rights Reserved.
rem
rem
rem Usage:
rem This scipt has to be called from sample's build*.bat files
rem
::::::::::::::::::::
set IPPVER=6.0
::::::::::::::::::::
For /F "delims=;." %%i IN ('Cmd /c Ver') DO (
IF "%%i"=="Microsoft Windows XP [Version 5" (
SET vsdk_arg=/xp
) ELSE IF "%%i"=="Microsoft Windows [Version 5" (
SET vsdk_arg=/2003
) ELSE IF "%%i"=="Microsoft Windows [Version 6" (
SET vsdk_arg=/vista
) ELSE (
SET vsdk_arg=/vista
)
)
set PrF=%ProgramFiles%
set IPP_CPU_TYPE=%PROCESSOR_ARCHITECTURE%
if /I "%PROCESSOR_ARCHITECTURE%"=="x86" if defined PROCESSOR_ARCHITEW6432 set IPP_CPU_TYPE=%PROCESSOR_ARCHITEW6432%
if /I "%PROCESSOR_ARCHITECTURE%"=="x86" if defined PROCESSOR_ARCHITEW6432 set PrF=%ProgramFiles(x86)%
if /I "%PROCESSOR_ARCHITECTURE%"=="AMD64" set PrF=%ProgramFiles(x86)%
set ProComp=%ProgramFiles(x86)%
if /I "%PROCESSOR_ARCHITECTURE%"=="x86" set ProComp=%ProgramFiles%
if "%ARCH%" == "win32" (