How to build glad as library

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, cmake
Domain
build-system

Research direction

Start by reproducing the commands in the repository's glad/build directory and inspect the CMake configuration and available Ninja targets. Determine why configuration generates no work, then verify that a build target produces the requested library and that ninja install installs it under /opt/arrayfire.

Written by the indexing model from the issue text.

Description

Dear,
in order to avoid the use of git from arrayfire/forge, I would like to build glad as library. But to my understanding it miss something

GLAD_DEPS='clang ninja-build cmake'
CC="/usr/bin/clang"
CXX="/usr/bin/clang++"
export CC
export CXX
dnf install -y ${GLAD_DEPS}
mkdir glad/build
pushd glad/build
  cmake -DCMAKE_INSTALL_PREFIX=/opt/arrayfire -GNinja ..
  # build
  ninja
  # install
  ninja install
popd

but ninja command do nothing

# ninja              
ninja: no work to do.
Dominant language
C
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.