well vanu, 1. Download the latest zlib 1.2.1 zip file and extract the files into the folder c:\zlib.
2. Download the libpng 1.2.5 zip file and extract the files into the folder C:\lpng125.
3. Download the freetype-2.1.8.exe file and install the file. The default folder for installation is “C:\freetype”. The exact folder you use for the installation is not important, but you need to remember where the files are installed.
4. Open Microsoft Visual C++ .NET
4. Select File ==> Open Project
5. Go to the directory “C:\libpng125\Projects\MSVC” and select the file “libpng.dsw” and click “Open”. A message box asking whether to convert and open the project will be displayed. Select “Yes to All”.
6. If the Solution Explorer is not visible, Select View==>Solution Explorer
7. In the Solution Explorer window, cascade “zlib”, then cascade “Source Files”. Delete “infblock.c”, “infcodes.c” and “infutil.c”. (These files are not provided with zlib ver 1.2.1).
8. From Build (in the menu bar) select “Configuration Manager...”
a. Change “Active Solution Configuration” to “LIB”
b. Make sure Platform is “WIN32”
c. Place ticks for both libpng and zlib projects in Build column.
d. Click close.
9. From Build (in the menu bar) select “Clean Solution”
10. From Build (in the menu bar again) select “Rebuild Solution”.
You may a few warnings messages, but as long as there is no error detected, it will be okay.
11. A number of files will then be created.
12. Go to the directory “C:\lpng125\projects\MSVC\Win3 2\libpng\lib” and copy the file “libpng.lib” to your Visual C++ “lib” directory. (if you used the normal installation for MSCV.NET, the lib directory will be at “C:\Program files\Microsoft Visual Studio .NET 2003\VC7”
13. Go to the directory “C:\lpng125\projects\MSVC\Win3 2\zlib\lib” and copy the file “zlib.lib” to your Visual C++ “lib” directory.
14. Create a new directory and copy all the obj (*.obj) files from “C:\lpng125\projects\MSVC\Win3 2\libpng\lib” and “C:\lpng125\projects\MSVC\Win3 2\zlib\lib” into it. (This is just for convenience).
15. Go to the directory where you installed FREETYPE. If you used the default, it will be at “C:\freetype”.
(i) From the bin folder of freetype, copy the files freetype6.dll and zlib1.dll to the bin folder of MSVC7 (the default path is “C:\Program files\Microsoft Visual Studio .NET 2003\VC7\BIN”)
(ii) From the lib folder of freetype, copy the files libfreetype.lib to the lib folder of MSVC7 (the default path is “C:\Program files\Microsoft Visual Studio .NET 2003\VC7\LIB”)
(iii) From the include folder of freetype, copy the file ft2build.h to the include folder of MSVC7.
(iv) From the include\freetype2 folder of freetype, copy the entire folder freetype (including folder’s name) to the include folder of MSVC7. Retain the freetype folder’s name in MSVC7 (i.e. freetype becomes a sub-folder of MSVC7’s include folder.
(v) Check to see if the file unistd.h is included in the “include” folder of MSVC7. If it isn’t, you need to locate a copy and insert it into MSVC7’s include folder. This file can be found with any GCC compiler program and is readily available on the internet.
Setting Up PNGWriter
1. Download and extract the PNGWriter-0.4.6 files to your C:\ drive. (Retain the directory structure of the zipped file).
2. From the “SRC” folder of where PNGWriter-0.4.6 was extracted, copy the files “pngwriter.cc” and “pngwriter.h” to the folder where you copied the zlib and libpng obj files. Rename the file pngwriter.cc to pngwriter.cpp. (This is in order to access the C\C++ folder in MSVC7’s project properties.
Answered by
Romi
, an ibibo Master,
at
3:32 PM on June 09, 2008