![]() This allows for offscreen (desktop modern OpenGL) rendering on systems without a display or even a GPU attached. These are useful when you are building for something like the Raspberry Pi.ĬINDER_HEADLESS_GL: Configure Cinder with support for headless rendering. Usually defaults to ogl (desktop modern OpenGL), but other valid options are es2, es3, and es31. ).ĬINDER_TARGET_GL: Sets the target OpenGL version. This defaults to one appropriate for the current operating system, but in some cases, for example Android, you must set it manually (i.e. Some of the more common settings are listed below, take a look in the CMakeCache.txt file for a full and updated list.ĬINDER_VERBOSE: prints out verbose information from within Cinder's CMake scripts during configuration.ĬINDER_TARGET: Sets the target to compile to. All settings related to cinder are prefixed with CINDER_. There are a few project configuration settings you can change by either editing the CMakeCache.txt file (or using some GUI to do this), or from the command line with the -D option. lib/macosx/Debug/libcinder.a and lib/macosx/Release/libcinder.a), so multiple configurations can live side by side. The runtime output directory for different configurations will automatically end up within different folders (e.g. By default you'll be building for Debug configuration, to build release you change the above cmake command to: cmake -DCMAKE_BUILD_TYPE=Release. Upon completion, this will generate a static libcinder binary within the $(CINDER_PATH)/lib folder for your application to link against. ![]() Then the process is similar to most other cmake projects you may have used, for example you can do the following from within the main cinder repo path: mkdir build To build libcinder from the command line, first make sure you have CMake version 2.8 or later installed. Assign compiler configurations to targets.Running a Cinder sample directly from Cinder's main project. ![]() Using CLion to build libcinder and your application.Writing CMake support for a CinderBlock.Printing verbose information when building your application.See the section on platform-specific notes for details. This is Cinder's officially supported build system on most POSIX platforms, though in general you can use cinder's cmake system on any platform. This document describes how you can build libcinder and your application using cmake. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |