Intel Jpeg library 编译 x64 版本(ipp 6.0)

本文详细介绍了如何编译Intel IPP Jpeg Library的64位版本,包括需要安装的IPP em64t版本、编译器要求,以及如何修改配置文件buildem64t.bat和winem64t.ini以支持VS2010。通过此文,读者可以了解到编译过程中的关键步骤和注意事项。
摘要由CSDN通过智能技术生成

有很多人发现还是无法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"    (
  
评论 43
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值