openSUSE x64 to compile the ice source code (to compile C + + for example)

Source: Internet
Author: User

Official compiled document See Ice official compiling document


Environment:

opensuse13.1 x64,kdevelop4.7.6


Ice Dependency Packages:

Ice have dependencies on a number of Third-party libraries:

    • Berkeley DB 5.3

    • Expat 2.0

    • OpenSSL 0.9.8 or later

    • BZIP2 1.0

    • Mcpp 2.7.2 (with patches)


Dependent Package Installation:

Zypper install mcpp mcpp-devel OpenSSL openssl-devel expat expat-devel berkeleydb libbz2-devel


Compile:

1, unzip the downloaded source package:

Tar XF ice-3.5.1.tar.gz

CD Ice-3.5.1/cpp


2, compile:

Make


3, test:

./alltests.py

If you do not have Python installed, run the test program to install Python first, without running the test program can not be installed


4, Installation:

Switch to root with the SU command

Make install

Install the associated library and development header files into the ice-3.5.1/cpp/config/make.rules prefix defined location.


Read the demo code:

After decompression with KDevelop reading is also very convenient, can also be debugged. Main steps: Project->fetch project

Select the From File System in source to locate the folder where the demo is located; In addition to this, we also set up the ice header file path in the KDevelop, and when running, I put the post-installation related so into the/usr/lib64 so that the system can find the relevant dynamic library of ice.


Precautions:

If you modified it in Ice-3.5.1/cpp/config/make.rules:

Prefix? =/usr/local/ice-$ (VERSION)

In order to change the definition of adding ice_home in Ice-3.5.1/config/make.common.rules, add a

Ice_home =/usr/local/ice-3.5.1

Ice_home in the 3.5.1 is the actual installed version, if you do not understand ice-3.5.1/config/make.common.rules, the file at the head of the add can be.

openSUSE x64 to compile the ice source code (to compile C + + for example)

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.