VS2010 compiling and installing Ice Guide

Source: Internet
Author: User
Tags openssl

1. Deployment Environment

1. Operating system

WINDOWS 7

2, the system

Processor: Intel (R) Core (TM) i5-2401m CPU @ 2.30GH 2.30GH

Install Memory: 3.00GB (2.88 GB available)

System type: 32-bit operating system

3. Tool Environment

A, VS2010 2, install the third party library (Third-party libraries)

The ice operating environment relies on some of the following Third-party libraries: Berkeley DB 5.3 Expat 2.0 OpenSSL 0.9.8 or later (OpenSSL 1.0 or later recommended) BZIP2 1.0 mcpp 2.7. 2 (with patches)

You do not need to compile these packages yourself, ZEROC provides installation files that include release and debug that have been compiled.

Http://www.zeroc.com/download.html 3, compile the third party library

If you need to compile the code yourself, use a unified compiler to generate the code. You can download the Ice Third-party source archive to the official website, and here are the relevant code patches and configuration instructions.

If you do not intend to recompile, you can skip the following. 3.1 Compiling openssl-0.9.8e

A moment to download

ActivePerl Window Installer Download: Http://downloads.activestate.com/ActivePerl/,openSSL source download: http://www.openssl.org/source/.

Second installation ActivePerl

Three uncompressed openssl-0.9.8e.tar.gz to d:\temp directory

Four compile

1 run visual Studio Command Prompt as an administrator (2010)

2) > CD d:\temp\openssl-0.9.8e

3) > Perl Configure vc-win32--prefix=c:/openssl-0.9.8e

4) > Ms\do_ms

5 Edit the Ntdll.mak in the MS directory and delete the/WX compilation option after cflag=

6) > Nmake-f Ms\ntdll.mak (may have warning)

7) > Nmake-f Ms\ntdll.mak Install

8) > Nmake-f ms\ntdll.mak Test (check for success, and finally, if prompted "Pass all test" is OK, can not be performed)

V. View installation Results

The C:\OPENSSL-0.9.8.E contains three folders bin, include, Lib.

The bin includes openssl.exe (OpenSSL instruction program), Ssleay32.dll (SSL protocol Dynamic Library), Libeay32.dll (cipher algorithm library).

Lib includes the Libeay32.lib,ssleay32.lib.

The Include directory includes the header file for the OpenSSL development design.
Six, development environment configuration
In the established project, set include and Lib to specify folder include and Lib that are included under C:\OPENSSL-0.9.8.E. and add the input library to the Linker->input page of the item target property: Libeay32.lib and Ssleay32.lib, and then the C:\openssl-0.9.8e\ Libeay32.dll and Ssleay32.dll in the bin directory are copied to the project's debug directory.

4. Compile Ice 4.1 Setting environment variables

thirdparty_home=c:\program files\zeroc\ice-3.5.1-thirdparty 4.2 compilation process

1 run visual Studio Command Prompt as an administrator (2010)

2) > Cdd:\ice-3.5.1\cpp (assuming Ice source code directory)

3 Modify file Make.rules file parameters: cpp_compiler= VC100 (select VS2010 as Compiler)

4) > Nmake/f Makefile.mak

5) waiting for compilation ...

6) >nmake/f Makefile.mak Install

Finish

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.