Commit Graph

1518 Commits

Author SHA1 Message Date
Gyusun
a5494db414 Generate Sources of master updated at Sun Dec 17 00:01:29 GMT 2023 2023-12-17 00:01:29 +00:00
Gyusun
e13dcc58e6 Generate Sources of master updated at Thu Dec 7 00:01:26 GMT 2023 2023-12-07 00:01:27 +00:00
Gyusun
b9f61b43b2 Merge https://github.com/nigels-com/glew.git into master HEAD at Sat Nov 11 00:00:54 GMT 2023 2023-11-11 00:00:54 +00:00
Nigel Stewart
e1a80a9f12 AWS Codebuild badge added 2023-11-10 12:53:13 +10:00
Nigel Stewart
4c6cb2f56d AWS Codebuild badge added 2023-11-10 12:53:13 +10:00
Gyusun
786430a248 Merge https://github.com/nigels-com/glew.git into master HEAD at Fri Nov 10 00:01:27 GMT 2023 2023-11-10 00:01:27 +00:00
Nigel Stewart
7fb9693bd8 Build support for SYSTEM=darwin-arm64 2023-11-10 08:35:40 +10:00
Nigel Stewart
c1985bb954 blacklist MESA_sampler_objects for now, collides with GL_ARB_sampler_objects 2023-11-10 08:32:46 +10:00
Gyusun
338306293e Merge https://github.com/nigels-com/glew.git into master HEAD at Mon Oct 16 00:01:34 GMT 2023 2023-10-16 00:01:34 +00:00
SpaceIm
f064fbfcb6 more cleanup 2023-10-15 21:08:17 +10:00
SpaceIm
f8023b362d fix initialization of CMakeLists and cleanup after bump of min cmake version 2023-10-15 21:08:17 +10:00
Gyusun
5aa27cf7d4 Merge https://github.com/nigels-com/glew.git into master HEAD at Sat Oct 7 00:01:15 GMT 2023 2023-10-07 00:01:15 +00:00
Kerby Geffrard
c43940a927 Shallow clone of registry repositories 2023-10-07 06:44:25 +10:00
Gyusun
906f8f7a6e Generate Sources of master updated at Sat Sep 30 00:01:22 GMT 2023 2023-09-30 00:01:22 +00:00
Gyusun
3cf29c57e9 Merge https://github.com/nigels-com/glew.git into master HEAD at Fri Sep 22 00:01:45 GMT 2023 2023-09-22 00:01:45 +00:00
grahamreeds
c2f7ab7f09 Bumped CMake version in README to 3.16. 2023-09-22 07:03:54 +10:00
grahamreeds
a4d8b2a2a3 Bump minimum cmake version to 3.16 matching the LTS release of Ubuntu 20.04 2023-09-22 07:03:54 +10:00
Gyusun
908ac2eb68 Generate Sources of master updated at Fri Sep 15 23:11:57 GMT 2023 2023-09-15 23:11:57 +00:00
Gyusun
0e6711a117 Merge https://github.com/nigels-com/glew.git into master HEAD at Fri Sep 15 23:11:36 GMT 2023 2023-09-15 23:11:36 +00:00
Gyusun Yeom
4abae5fd0c
Merge pull request #65 from Perlmint/latest_cmake
Run build test with latest cmake
2023-09-16 08:11:26 +09:00
Gyusun Yeom
7684bff43b Run build test with latest cmake 2023-09-16 08:09:34 +09:00
Gyusun Yeom
a13f8088ac Run build test with latest cmake 2023-09-15 22:25:42 +09:00
Gyusun Yeom
bae9d1a33d
Merge pull request #63 from Wohlstand/master
CMake: Fixed minimal version warning on recent CMake
2023-09-15 22:22:42 +09:00
Wohlstand
bfe27f1ed1 CMake: Fixed minimal version warning on recent CMake
```
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
```
2023-08-23 01:03:03 +03:00
Kekschen
a98195b83d Updated comment in cmake-testbuild.sh 2023-07-16 09:29:54 +10:00
Gyusun Yeom
9758219375
Merge pull request #62 from Wohlstand/master
CMake: Fixed symbolic link for builds with a debug postfix
2023-06-26 23:28:33 +09:00
Gyusun
61ff0a2a04 Generate Sources of master updated at Fri Jun 23 00:01:47 GMT 2023 2023-06-23 00:01:47 +00:00
Gyusun
4ed6aac84b Merge https://github.com/nigels-com/glew.git into master HEAD at Thu Jun 22 00:01:40 GMT 2023 2023-06-22 00:01:40 +00:00
Jean-Christophe Fillion-Robin
281c2936f3 cmake: Update install rules to support component-based installation 2023-06-22 07:47:53 +10:00
Gyusun
1eb8c92877 Generate Sources of master updated at Wed Jun 21 00:17:08 GMT 2023 2023-06-21 00:17:08 +00:00
Wohlstand
91cfa6a5c9
CMake: Fixed symbolic link for builds with a debug postfix 2023-06-21 03:10:16 +03:00
Gyusun
7f7e844cfc Merge https://github.com/nigels-com/glew.git into master HEAD at Tue Apr 25 00:01:44 GMT 2023 2023-04-25 00:01:44 +00:00
NoamDev
ef7d12ecb7 Added to .gitignore auto-checkout out repos 2023-04-24 20:20:17 +10:00
Gyusun
8f9a60f6aa Generate Sources of master updated at Sat Apr 1 00:01:52 GMT 2023 2023-04-01 00:01:52 +00:00
Gyusun
062db23216 Generate Sources of master updated at Thu Mar 16 00:01:57 GMT 2023 2023-03-16 00:01:57 +00:00
Gyusun
675b56a057 Merge https://github.com/nigels-com/glew.git into master HEAD at Thu Mar 16 00:01:33 GMT 2023 2023-03-16 00:01:33 +00:00
NoamDev
6a53a2a200 Added to .gitignore auto-checkout out repos 2023-03-15 22:28:40 +10:00
Ned Loynd
52ce1cc575 Check the macOS deployment target before using dlfcn 2023-03-15 22:28:10 +10:00
Or Dagmi
f266584c9a
Fixing test fs case sensitivity garbage files in the source dir (#61)
* Fixing test fs case sensitivity minor issue where files where not created in the CMAKE_BINARY_DIR

---------

Co-authored-by: DiGMi <digmi@convexum.com>
2023-02-27 21:00:25 +09:00
Gyusun Yeom
020831e5ad
Merge pull request #58 from JamesPerlman/patch-1
Use CMP0077
2023-02-23 15:22:47 +09:00
James Perlman
d9504ce13b Use CMP0077
Thanks so much for making this project!  I'm using CMake 3.24+, and I was getting some errors like in [this issue (zephyr/26142)](https://github.com/zephyrproject-rtos/zephyr/issues/26142), and fixed them using CMP0077 - Did I do this correctly?
2023-02-22 16:23:54 -08:00
Gyusun
94b823ee04 Generate Sources of master updated at Tue Feb 21 00:02:21 GMT 2023 2023-02-21 00:02:22 +00:00
Gyusun Yeom
ccc2ac3e40
Merge pull request #59 from Perlmint/fix/opengl_build
Fix build test
2023-02-19 13:23:06 +09:00
Gyusun Yeom
19ecc02312 Fix error on case insensitive fs 2023-02-19 13:09:58 +09:00
Gyusun Yeom
1a5db5d19b Fix configure error on non-GLVND linux environment 2023-02-19 13:09:58 +09:00
Gyusun
8260c05ee0 Generate Sources of master updated at Sun Aug 21 07:03:15 GMT 2022 2022-08-21 07:03:15 +00:00
Gyusun
9dc72dbd02 Merge https://github.com/nigels-com/glew.git into master HEAD at Sun Aug 21 07:02:53 GMT 2022 2022-08-21 07:02:53 +00:00
Gyusun Yeom
e392a7c26f Fix failure in maintain script 2022-08-21 16:01:58 +09:00
Nigel Stewart
5a2307fae3 Fix issue #355 - GL_NVX_progress_fence missing glCreateProgressFenceNVX 2022-06-13 12:22:45 +10:00
Marvin Schmidt
c8a2ddfbe1 cmake: Link libGLX when X11 support is requested
Using cmake (version 3.23.0) the build fails to link the utils
```
[...]
[ 87%] Linking C executable bin/visualinfo                                                                                                                      [113/5249]
/usr/x86_64-pc-linux-gnu/bin/cmake -E cmake_link_script CMakeFiles/visualinfo.dir/link.txt --verbose=1
/usr/host/bin/x86_64-pc-linux-gnu-cc -Wall -g -ggdb3 -O0 -rdynamic CMakeFiles/visualinfo.dir/home/marv/scm/github/glew/src/visualinfo.c.o -o bin/visualinfo  -Wl,-rpath,/h
ome/marv/scm/github/glew/build-obj/lib: lib/libGLEW.so.2.2.0 -lSM -lICE -lX11 -lXext -lOpenGL -lSM -lICE -lX11 -lXext
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/visualinfo.dir/home/marv/scm/github/glew/src/visualinfo.c.o: in function `main':
/home/marv/scm/github/glew/src/visualinfo.c:198: undefined reference to `glXQueryExtensionsString'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/visualinfo.dir/home/marv/scm/github/glew/src/visualinfo.c.o: in function `CreateContext':
/home/marv/scm/github/glew/src/visualinfo.c:1204: undefined reference to `glXQueryExtension'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /home/marv/scm/github/glew/src/visualinfo.c:1206: undefined reference to `glXChooseVisual'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /home/marv/scm/github/glew/src/visualinfo.c:1209: undefined reference to `glXCreateContext'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /home/marv/scm/github/glew/src/visualinfo.c:1221: undefined reference to `glXMakeCurrent'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/visualinfo.dir/home/marv/scm/github/glew/src/visualinfo.c.o: in function `DestroyContext':
/home/marv/scm/github/glew/src/visualinfo.c:1227: undefined reference to `glXDestroyContext'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: lib/libGLEW.so.2.2.0: undefined reference to `glXGetProcAddressARB'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: lib/libGLEW.so.2.2.0: undefined reference to `glXQueryVersion'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: lib/libGLEW.so.2.2.0: undefined reference to `glXGetClientString'
collect2: error: ld returned 1 exit status
```

Commit 2b50f4a ("CMake: Prefer GLVND if available") changed the cmake
policy CMP0072 to `NEW` in order to make the FindOpenGL module prefer the
GLVND libraries (libOpenGL and libGLX) over the legacy GL library (libGL).

The help of the CMP0072 policy states:

> CMP0072
> -------
>
> .. versionadded:: 3.11
>
> ``FindOpenGL`` prefers GLVND by default when available.
>
> The ``FindOpenGL`` module provides an ``OpenGL::GL`` target and an
> ``OPENGL_LIBRARIES`` variable for projects to use for legacy GL interfaces.
> When both a legacy GL library (e.g. ``libGL.so``) and GLVND libraries
> for OpenGL and GLX (e.g. ``libOpenGL.so`` and ``libGLX.so``) are available,
> the module must choose between them.  It documents an ``OpenGL_GL_PREFERENCE``
> variable that can be used to specify an explicit preference.  When no such
> preference is set, the module must choose a default preference.
>
> CMake 3.11 and above prefer to choose GLVND libraries.  This policy provides
> compatibility with projects that expect the legacy GL library to be used.
>
> The ``OLD`` behavior for this policy is to set ``OpenGL_GL_PREFERENCE`` to
> ``LEGACY``.  The ``NEW`` behavior for this policy is to set
> ``OpenGL_GL_PREFERENCE`` to ``GLVND``.
>
> This policy was introduced in CMake version 3.11.  CMake version
> 3.23.0 warns when the policy is not set and uses ``OLD`` behavior.
> Use the ``cmake_policy()`` command to set it to ``OLD`` or ``NEW``
> explicitly.
>
> .. note::
>   The ``OLD`` behavior of a policy is
>   ``deprecated by definition``
>   and may be removed in a future version of CMake.

The changes from the mentioned commit combined with the new behaviour of
the FindOpenGL module resulted in the glew library being linked against
`libOpenGL` instead of `libGL`, but not `libGLX`. Since `libOpenGL`
doesn't link against GLX compared to `libGL` the linker errors above
surfaced. Fix this by explicitly linking against libGLX if GLEW_X11 is
enabled
2022-06-13 12:22:14 +10:00