Monday, December 19, 2011

How to Build libiconv with Microsoft Visual Studio

Introduction

Libiconv is one of the most useful and famous libraries that converts texts between encodings and has been developed under GNU projects. However, now it does not provide the way to build it with Microsoft Visual Studio but with gcc. Before, it had provided but now stopped explaining how to build it with Microsoft Visual Studio. However, many of the computer programmers are using Microsoft Visual Studio and want to build libiconv with Microsoft Visual Studio. So, this article is about how to build libiconv with Microsoft Visual Studio. If you can build libiconv with Microsoft Visual Studio, you will be able to change various compilation options and build it in order to optimize libiconv according to your preference and needs.


Background

If you have no idea about libiconv, you can refer to it here or you can Google for it. You may be confused with iconv and libiconv. Iconv is the executable program that uses libiconv while libiconv is the library for converting text strings between two different encodings. This article is related to libiconv. However, this article is not about libiconv but about how to build libicon with Microsoft Visual Studio. The GNU library libiconv is under LGPL license. So, you have to be really careful when you use libiconv for your commercial use or when you don't want to publicize your source code. About LPGL license, you can refer here.
How to Get the Source Code of libiconv

At the moment, the most recent version of libiconv is 1.14. You can download the source code of libiconv 1.14 here and here. Of course, you can get the older versions of libiconv here.


How to Build

I am going to explain the case of Microsoft Visual Studio 2010 professional edition but the explanation can be applied to the earlier versions of Microsoft Visual Studio and to the express edition of each of them.


First Step

You download the most recent version of libiconv which is 1.14 from here or here. And unzip the downloaded file "libiconv-1.14.tar.gz" on your certain folder.

Read more: Codeproject
QR: Buildlibiconv.aspx

Posted via email from Jasper-Net