Skip to content

openglv2022-12-04

Updated

Open Graphics Library (OpenGL)[3][4][5] is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics.

#Usage

The package opengl is compatible with built-in CMake targets via CMake v3.7 and prior syntax

find_package(OpenGL REQUIRED)
target_link_libraries(main PRIVATE ${OPENGL_LIBRARIES})
target_include_directories(main PRIVATE ${OPENGL_INCLUDE_DIR})

and the CMake v3.8 and beyond imported target syntax

find_package(OpenGL REQUIRED)
target_link_libraries(main PRIVATE OpenGL::GL)

introduction of various components

find_package(OpenGL REQUIRED COMPONENTS GL      # v3.8
                                        GLU     # v3.8
                                        GLX     # v3.10
                                        EGL     # v3.10
                                        OpenGL) # v3.10

The OpenGL SDK is highly platform dependent and is usually an OS component. It's not realistic to build from source for every platform.

WINDOWS: is part of the Windows SDK which this package installs.
LINUX: the SDK may be installed from your distro's repo or from 3rd parties manually. There are too many to count.
APPLE: consult your distribution vendor on the state of OpenGL support: https://support.apple.com/en-us/HT202823

#License

Not declared in the port manifest

#Supported Platforms

!uwp & !xbox

  • linux
  • osx
  • windows
  • uwp

#Features

No features defined.

#Dependencies

and one transitive dependency:

#Host Dependencies

No dependencies.

#Host Tool For

No ports use this.

#Contributors

  • Alexander Karatarakis's avatarAlexander Karatarakis
  • Robert Schumacher's avatarRobert Schumacher
  • Stefano Sinigardi's avatarStefano Sinigardi
  • Nagy-Egri Máté Ferenc's avatarNagy-Egri Máté Ferenc
  • Vitalii Koshura's avatarVitalii Koshura
  • Billy O'Neal's avatarBilly O'Neal
  • Nemirtingas's avatarNemirtingas
  • maz-1's avatarmaz-1
  • Alexander Neumann's avatarAlexander Neumann
  • Kai Pastor's avatarKai Pastor
  • reito's avatarreito
  • Chuck Walbourn's avatarChuck Walbourn

#Changelog

  • 7a4ca3fUWP toolchain fix and update some supports expressions for uwp/xbox (#30096)
  • c1d764a[community triplet] adds triplets for building for the Xbox platform (#29210)
  • 8c9416f[multiple-ports] Fix missing usage (#29345)
  • ce70fb4[baseline][opengl,mesa] Resolve ambiguities (#28160)
  • 1e2c7c3[qt] update port to 6.4 (#26693)
  • ae76307Audit use of TO_NATIVE_PATH. (#26201)
  • 436c860[opengl] install pkgconfig files for windows (#23536)
  • b295670Bulk convert control files. (#19986)
  • 18c93ab[opengl] port path fix when crosscompiling (#14724)
  • 8eda81c[opengl wincrypt winsock2] Use $ENV{WindowsSdkDir} instead of hard coding Windows SDK paths. (#12232)
Show 12 earlier changes