Compiling glew library

Hello, I’m trying to compile the glew library, which is a dependency for my flatpak
With this settings

modules:
  - name: GLEW
    buildsystem: simple
    build-commands:
      - make
sources:
      - type: git
        url: https://github.com/nigels-com/glew.git

I get this error

Building module GLEW in /home/paul/Programming/proyectos/X/platform/flatpaks/ScreenDemo/.flatpak-builder/build/GLEW-6
========================================================================
Switched to branch 'master'
Running: make
mkdir lib
make: *** No rule to make target 'src/glew.c', needed by 'tmp/linux/default/shared/glew.o'.  Stop.
Error: module GLEW: Child process exited with code 2

Using this code

modules:
  - name: GLEW
    buildsystem: cmake
    build-commands:
      # https://github.com/nigels-com/glew?tab=readme-ov-file#using-cmake
      - cd build
      - cmake ./cmake --target glew_s # Build the static library?
      - make -j4

I get this error

Building module GLEW in /home/paul/Programming/proyectos/X/platform/flatpaks/ScreenDemo/.flatpak-builder/build/GLEW-7
========================================================================
Switched to branch 'master'
Error: module: GLEW: Can't find CMakeLists.txt

How can I compile this library? Tried the instructions from the official documentation

Seems to be available as a shared module:

1 Like

Added glu and glew from the repo and it compiled successfully, thanks!