Saturday, July 16, 2016

how to generate JPEG library ?

Environment

# windows7 64bit

IDE

# MSVSVC2010

Third party library

# jpegsr9a.zip


Step

# unzip jpegsr9z.zip to ./_mJpegsr9z/jpeg-9a

# open file <makefile.vc>

# edition substitute line-12 wholely to the following:

  !include <C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/win32.mak>

# edition rename file 
  
  jconfig.vc    to    jconfig.h

# configure system variable, add the following vars to path:

   D:\Program Files\Microsoft Visual Studio 10.0\VC\include;
   D:\Program Files\Microsoft Visual Studio 10.0\VC\lib;
   D:\Program Files\Microsoft Visual Studio 10.0\VC\bin;

   CAUTION!!!!     According your own MSVSVC2010 environment 
   CAUTION!!!!     Such as your MSVSVC2010 have installed into C:\... directory!

# enter directory .\_mJpeg\jpeg-9a

    press F4 -> 
        ESC ->
        input "cmd" ->
        press Enter

    HERE we enter directory ./jpeg-9a under DOS environment.

# 1# input  nmake /f makefile.vc
   ignore the "return code "0xc0000135"

# 2# input cl
   ignore the information about lacking *.dll file

# 3# input vcvars32

# 4# input nmake /f makefile.vc


Done.:-)
End
________________________________________________________________________

No comments:

Post a Comment