Compile libjpeg.dll with vc.net

zhaozj2021-02-16  76

From the libjpeg source code downloaded from the SourceForge, there is a mailfile.vc file, which can compile libjpeg via nmake / f makefile.vc [nodebug = 1], but can only compile the static library, if you need to compile the DLL to Emacs, etc. If you are used in the program, you need to modify the Makefile.vc and JMORECFG.H files. Add compilation DLL rules to makefile.vc files:

The following is program code:

Libjpeg.lib: $ (liboBjects) $ (rm) libjpeg.lib lib -out: libjpeg.lib $ (libobjects) # Add the following line libjpeg.dll: $ (libobjects) $ (rm) libjpeg.dll link -dll - OUT: libjpeg.dll $ (libobjects)

Add #define _win32_ # define jpeg_dll in jmorecfg.h

Then nmake / f makefile.vc nodebug = 1 can be compiled.

转载请注明原文地址:https://www.9cbs.com/read-11508.html

New Post(0)