Install the build environment and OpenGL graphics driver in Ubuntu system

Source: Internet
Author: User
Keywords installation compilation Apt-get geant
Tags *.h file apt apt-get basic compiling environment error file

Install the build environment and OpenGL graphics driver to prepare the GEANT4 for installation.

1. Install the basic compiling environment

sudo apt install build-essential

2. Install OpenGL Library

sudo apt install Libgl1-mesa-dev

3. Install OpenGL Utilities

sudo apt install Libglu1-mesa-dev

The OpenGL Utilities is a toolkit built on the OpenGL Library, providing a number of handy functions to make OpenGL more powerful and easier to use.

4, install sudo apt install Libxt-dev

This package is not loaded when compiling geant4, the Error:x11/intrinsic.h:no such file or directory error is reported.

5, open the new Package Manager, find LIBXMU. Put all seven found. Otherwise, you will encounter the following error when compiling GEANT4: Include/g4openglxviewer.hh:46:29:error:x11/xmu/stdcmap.h:no such file or directory

The reason may be that the LIBXMU-related packages that are installed by default are not dev editions (develop), so there is no header file in the system.

Related Article

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.