cglm
cglm copied to clipboard
Install via Package Managers
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.
Update:
Homebrew package has been approved! Now cglm can be installed on macOS via brew like:
$ brew install cglm
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.
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.
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 Awesome 🎉 🤗🤗🤗 Thank you for becoming a maintainer for this library.
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 many thanks 🤗 The docs build seems broken, I'll try to fix it asap