Windows compiled libexif-0.6.21, generate vs available DLLs and Lib

Source: Internet
Author: User

1. Download Libexif-0.6.21.zip

It's http://sourceforge.net/projects/libexif/files/libexif/0.6.21/.


2. Unzip the Libexif-0.6.21.zip

I unzipped it to the d:\opensources\.


3. Installing MinGW
Is http://www.mingw.org/click on the download Installer in the upper right corner
Remember to install Msys
My installation path is: C:\MinGW
Here are the following folders:
Bin
Include
Lib
Libexec
Mingw32
Msys
Share

Var


4. Locate Msys.bat under C:\MinGW\msys\1.0 and add a line at the beginning of the file:

Call "C:\Program Files\Microsoft Visual Studio 10.0\vc\bin\vcvars32.bat"


5. Find the Fstab file under C:\MinGW\msys\1.0\etc, if there is no copy fstab.sample to Fstab
Confirm that the content is
#Win32_Path Mount_point
C:/mingw /mingw

This is my installation directory, please consciously change to your.


6. Under C:\MinGW\msys\1.0, locate Msys.bat, double-click Run
Then switch to the path of your libexif-0.6.21
Like I unzipped the d:\opensources\.
So my orders are:
cd/d/opensources/libexif-0.6.21/
Then execute the command in turn
./configure--host=i586-mingw32msvc--disable-nls--enable-ship-binaries


Make


Make install
If there is no error, there will be three more folders under the C:\MinGW\msys\1.0\local path Bin (contains Libexif-12.dll), Lib (Do not care), include (header file)
Below the D:\opensources\libexif-0.6.21\libexif\.libs will appear libexif.def (seemingly unavailable, open the discovery begins with a line of "exports", plus later can be used) and Libexif-12.dll.def file
So we have the include,. dll, and. def files
A lib file is also missing


7. We can use. def to generate. Lib from the VS command line .
VS command-line open mode, open vs->tools->visual Studio command Prompt
Switch to the directory that contains the. def
Execute command:
Lib/def:libexif-12.dll.def/out:libexif.lib
So that we have the VC can be used under the Libexif complete library
I wrote a test program: But I couldn't find the libexif-12.dll.dll.
This time only to change the. dll file to the corresponding file name.


If you have any questions, please comment directly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.