Allegro5 installation configuration in the Code: Blocks environment in Ubuntu

Source: Internet
Author: User
My system is LUbuntu11.04. 1. Install code: blocks2. install allegro5 dependency package, including libgl1-mesa-devlibglu1-mesa-devcmakebuild-essentialmake3. Download The allegro5 source code official website http://alleg.sourceforge.net/4.decompress compiler installation unzip cdallegro5w.m

My system is LUbuntu 11.04.

1. Installation code: blocks

2. Install the allegro5 dependency package, including

Libgl1-mesa-dev
Libglu1-mesa-dev
Cmake
Build-essential
Make

3. Download the source code of allegro5

Official http://alleg.sourceforge.net/

4. decompress, compile, and install

$ Cd allegro5
$ Mkdir build
$ Cd build
$ Cmake ..
# Or run cmakegui ..
$ Make
$ Sudo make install

The command for compiling the test. c file with gcc is

Gcc testal. c-o test-lallegro

Or

Gcc test. c-o test $ (pkg-config -- libs allegro-5.0 allegro_image-5.0)

For more information, see the readme_pkgconfig.txt file in the downloaded source code package.

5. Configure code: blocks

Use

Pkg-config -- list-all | grep allegro

View the allegro5 Library File

Use

Pkg-config -- cflags -- libs allegro-5.0

View header files

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.