How to install glew linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

The OpenGL Extension Wrangler Library

License

nigels-com/glew

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

GLEW — The OpenGL Extension Wrangler Library

The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. GLEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris.

Snapshots may contain new features, bug-fixes or new OpenGL extensions ahead of tested, official releases.

Читайте также:  Bin to text linux

glew-20220402.tgz GLEW 2.2.0 — with fix for glCreateProgressFenceNVX

It is highly recommended to build from a tgz or zip release snapshot. The code generation workflow is a complex brew of gnu make, perl and python, that works best on Linux or Mac. The code generation is known to work on Windows using MSYS2. For most end-users of GLEW the official releases are the best choice, with first class support.

GNU make is the primary build system for GLEW, historically. It includes targets for building the sources and headers, for maintenance purposes.

Debian/Ubuntu/Mint: $ sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev

RedHat/CentOS/Fedora: $ sudo yum install libXmu-devel libXi-devel libGL-devel

FreeBSD: # pkg install xorg lang/gcc git cmake gmake bash python perl5

$ make $ sudo make install $ make clean 

Targets: all, glew.lib (sub-targets: glew.lib.shared, glew.lib.static), glew.bin, clean, install, uninstall

Variables: SYSTEM=linux-clang, GLEW_DEST=/usr/local, STRIP=

Note: you may need to call make in the auto folder first

$ sudo apt install libegl1-mesa-dev $ make SYSTEM=linux-egl 
$ sudo apt install libosmesa-dev $ make SYSTEM=linux-osmesa 
$ sudo apt install mingw-w64 $ make SYSTEM=linux-mingw32 $ make SYSTEM=linux-mingw64 

The cmake build is mostly contributor maintained. Due to the multitude of use cases this is maintained on a best effort basis. Pull requests are welcome.

CMake 2.8.12 or higher is required.

Debian/Ubuntu/Mint: $ sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev cmake git

RedHat/CentOS/Fedora: $ sudo yum install libXmu-devel libXi-devel libGL-devel cmake git

$ cd build $ cmake ./cmake $ make -j4 
Target Description
glew Build the glew shared library.
glew_s Build the glew static library.
glewinfo Build the glewinfo executable (requires BUILD_UTILS to be ON ).
visualinfo Build the visualinfo executable (requires BUILD_UTILS to be ON ).
install Install all enabled targets into CMAKE_INSTALL_PREFIX .
clean Clean up build artifacts.
all Build all enabled targets (default target).
Variables Description
BUILD_UTILS Build the glewinfo and visualinfo executables.
GLEW_REGAL Build in Regal mode.
GLEW_OSMESA Build in off-screen Mesa mode.
BUILD_FRAMEWORK Build as MacOSX Framework. Setting CMAKE_INSTALL_PREFIX to /Library/Frameworks is recommended.

Use the provided Visual Studio project file in build/vc15/

Projects for vc6, vc10, vc12 and vc14 are also provided

Requirements: bash, make, gcc

$ mingw32-make $ mingw32-make install $ mingw32-make install.all 

Alternative toolchain: SYSTEM=mingw-win32

Читайте также:  Kaspersky security center для linux

Requirements: bash, make, gcc

$ pacman -S gcc make mingw-w64-i686-gcc mingw-w64-x86_64-gcc $ make $ make install $ make install.all 

Alternative toolchain: SYSTEM=msys, SYSTEM=msys-win32, SYSTEM=msys-win64

glewinfo is a command-line tool useful for inspecting the capabilities of an OpenGL implementation and GLEW support for that. Please include glewinfo.txt with bug reports, as appropriate.

--------------------------- GLEW Extension Info --------------------------- GLEW version 2.0.0 Reporting capabilities of pixelformat 3 Running on a Intel(R) HD Graphics 3000 from Intel OpenGL version 3.1.0 - Build 9.17.10.4229 is supported GL_VERSION_1_1: OK --------------- GL_VERSION_1_2: OK --------------- glCopyTexSubImage3D: OK glDrawRangeElements: OK glTexImage3D: OK glTexSubImage3D: OK . 

A Unix or Mac environment is needed for building GLEW from scratch to include new extensions, or customize the code generation. The extension data is regenerated from the top level source directory with:

An alternative to generating the GLEW sources from scratch is to download a pre-generated (unsupported) snapshot:

GLEW is currently maintained by Nigel Stewart with bug fixes, new OpenGL extension support and new releases.

GLEW was developed by Milan Ikits and Marcelo Magallon. Aaron Lefohn, Joe Kniss, and Chris Wyman were the first users and also assisted with the design and debugging process.

The acronym GLEW originates from Aaron Lefohn. Pasi Kärkkäinen identified and fixed several problems with GLX and SDL. Nate Robins created the wglinfo utility, to which modifications were made by Michael Wimmer.

GLEW welcomes community contributions. Typically these are co-ordinated via Issues or Pull Requests in the GitHub web interface.

Be sure to mention platform and compiler toolchain details when filing a bug report. The output of glewinfo can be quite useful for discussion also.

Generally GLEW is usually released once a year, around the time of the Siggraph computer graphics conference. If you’re not using the current release version of GLEW, be sure to check if the issue or bug is fixed there.

GLEW is originally derived from the EXTGL project by Lev Povalahev. The source code is licensed under the Modified BSD License, the Mesa 3-D License (MIT) and the Khronos License (MIT).

The automatic code generation scripts are released under the GNU GPL.

Источник

How To Install glew-utils on Ubuntu 20.04

In this tutorial we learn how to install glew-utils on Ubuntu 20.04.

Читайте также:  Puppy linux python3 install

What is glew-utils

For more information about GLEW please refer to the description of the libglew-dev package.

This package contains the utilities which can be used to query the supported OpenGL extensions. Description-md5: 15c5e8926747f3fed8892dfd11b341af Task: ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three ways to install glew-utils on Ubuntu 20.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.

Install glew-utils Using apt-get

Update apt database with apt-get using the following command.

After updating apt database, We can install glew-utils using apt-get by running the following command:

sudo apt-get -y install glew-utils 

Install glew-utils Using apt

Update apt database with apt using the following command.

After updating apt database, We can install glew-utils using apt by running the following command:

sudo apt -y install glew-utils 

Install glew-utils Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

After updating apt database, We can install glew-utils using aptitude by running the following command:

sudo aptitude -y install glew-utils 

How To Uninstall glew-utils on Ubuntu 20.04

To uninstall only the glew-utils package we can use the following command:

sudo apt-get remove glew-utils 

Uninstall glew-utils And Its Dependencies

To uninstall glew-utils and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove glew-utils 

Remove glew-utils Configurations and Data

To remove glew-utils configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge glew-utils 

Remove glew-utils configuration, data, and all of its dependencies

We can use the following command to remove glew-utils configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge glew-utils 

References

Summary

In this tutorial we learn how to install glew-utils package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.

Источник

Оцените статью
Adblock
detector