# Building cinder programs at command line

**URL:** <https://discourse.libcinder.org/t/building-cinder-programs-at-command-line/1114>\
**Category:** Using Cinder\
**Created:** [March 31, 2018, 11:34am UTC](https://discourse.libcinder.org/t/building-cinder-programs-at-command-line/1114 "2018-03-31T11:34:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mysterion](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mysterion](https://discourse.libcinder.org/u/Mysterion)\
**Post date:** [March 31, 2018, 11:34am UTC](https://discourse.libcinder.org/t/building-cinder-programs-at-command-line/1114/1 "2018-03-31T11:34:44Z")

</div>

Hi, I’m completely new to cinder and would like to learn it.

However, I like to keep my development environments minimal and build my programs from the command line, but I can’t figure out how to do with with cinder. I can compile it ok, but I can’t link it.

I am using a Mac and brew cask installed cinder to “/Applications/cinder\_0.9.1\_mac/”. My makefile looks kinda similar to [this](https://stackoverflow.com/questions/27195269/setting-up-c-cinder-project-from-scratch-with-make) one, except “-lcinder” isn’t found for me. If I instead try to manually link to the static archive in “/Applications/cinder\_0.9.1\_mac/lib/macosx/Release/libcinder.a”, I get a whole bunch of undefined symbols at linking time.

Can anyone help me with what I need to put in a makefile to build a cinder program? Thanks.

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [March 31, 2018, 1:49pm UTC](https://discourse.libcinder.org/t/building-cinder-programs-at-command-line/1114/2 "2018-03-31T13:49:03Z")

</div>

Hi,

Welcome to Cinder. Since the referenced stackoverflow post a command line CMake build system was developed for Cinder. You don’t have to write your own makefile anymore. Read more about it here:  
[https://libcinder.org/docs/branch/master/guides/cmake/cmake.html](https://libcinder.org/docs/branch/master/guides/cmake/cmake.html)

-Gabor

---

<div class="post-metadata">

**Author:** ![Mysterion](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mysterion](https://discourse.libcinder.org/u/Mysterion)\
**Post date:** [April 1, 2018, 10:42pm UTC](https://discourse.libcinder.org/t/building-cinder-programs-at-command-line/1114/3 "2018-04-01T22:42:35Z")

</div>

Thanks, I’ll check it out
