cglm icon indicating copy to clipboard operation
cglm copied to clipboard

Install via Package Managers

Open recp opened this issue 7 years ago • 11 comments

I created CocoaPods spec, so now Xcode users can import cglm to their project via CocoaPods.

target 'MyApp' do
  # use_frameworks!

  pod 'cglm', '~> 0.4' 

  # or latest version
  pod 'cglm' 
end

If you use use_frameworks! in Podfile, it will create cglm.framework and you will have to include headers as #include <cglm/cglm/cglm.h> or @import cglm;, @import cglm.cglm;, @import cglm.call;, @import cglm.mat4;...

Import framework header syntax: #import <FrameworkName/Header.h>, since there is extra cglm folder you will need to use cglm twice.

Without use_frameworks! it will create libcglm.a and you can include headers as #include <cglm/cglm.h>

Cocoapods will link cglm to your project automatically.

  • [x] cglm for Cocoapods for Xcode (macOS)
  • [x] cglm for Homebrew (macOS)
  • [ ] cglm for Nuget for Visual Studio (Windows)
  • [ ] cglm for Linux distros (Fedora, Debian, Ubuntu..)
  • [x] cglm for MSYS2 (Thanks for @podsvirov)
  • [x] cglm for Debian and Ubuntu (Thanks for @lmarz)

Any help for Nuget and Linux packages would be appreciated. Especially I want to automate these in Travis CI and AppVeyor after build is completed.

recp avatar Apr 22 '18 09:04 recp

Update:

Homebrew package has been approved! Now cglm can be installed on macOS via brew like:

$ brew install cglm

recp avatar May 01 '18 16:05 recp

Hello @recp, since https://github.com/msys2/MINGW-packages/pull/6336 merged, the cglm package available to installing via MSYS2 software distro on Windows by pacman package manager. Hope my efforts help to others easy get and use your library.

podsvirov avatar Apr 04 '20 13:04 podsvirov

Hello @podsvirov,

Thank you very much for your efforts and porting cglm to MSYS2 🤗 🎉

I saw a sphinx warning on that PR, I hope, I or someone else will fix that asap. Feel free to ask anything or contribute by creating an issue/PR...

best, r.

recp avatar Apr 04 '20 14:04 recp

cglm is now in Debian and Ubuntu. It will be included in their next release. You can look at it on the Debian Package Tracker. I'm the Maintainer, so if you find a problem with the packaging, contact me (or write a Debian Bug Report).

lmarz avatar Jul 30 '20 09:07 lmarz

@lmarz Awesome 🎉 🤗🤗🤗 Thank you for becoming a maintainer for this library.

recp avatar Jul 30 '20 13:07 recp

Working on getting cglm into build2's main repositories, you can try it via the queue repository.

https://queue.cppget.org/cglm

build2 is a cargo-like build toolchain for c/c++, with their package manager, you have something like this depends: cglm ^0.9.1, and the right version will be pulled into your project

duarm avatar Dec 11 '23 18:12 duarm

@duarm many thanks 🤗 The docs build seems broken, I'll try to fix it asap

recp avatar Dec 11 '23 18:12 recp