Cinder icon indicating copy to clipboard operation
Cinder copied to clipboard

Get all samples building and running with new cmake

Open richardeakin opened this issue 8 years ago • 6 comments

Moved over from #1481.

Most are resources that need to be added to the sample projects.

Need to test on both linux and Mac OS X.

Samples needing to be fixed:

  • [X] Earthquake (#1868)
  • [ ] Anything requiring Cairo (mostly stuff in samples/_svg folder).

richardeakin avatar Jun 16 '16 02:06 richardeakin

OS X and Ubuntu Trusty Currently produces:

verbose (CMakeLists.txt) -- adding sample: 1
CMake Error at CMakeLists.txt:54 (add_subdirectory):
  add_subdirectory given source
  "/Cinder/samples/1/proj/cmake" which is not an existing
  directory.

lucasvickers avatar Nov 20 '16 20:11 lucasvickers

What is the full cmake command?

richardeakin avatar Nov 20 '16 20:11 richardeakin

mkdir build
cd build
cmake .. -DCINDER_VERBOSE:BOOL=1 -DCMAKE_BUILD_TYPE=Release -DCINDER_BUILD_TESTS=1 -DCINDER_BUILD_SAMPLE=1

lucasvickers avatar Nov 20 '16 21:11 lucasvickers

I was afraid that this confusion might come up. You either want -DCINDER_BUILD_ALL_SAMPLES=1 or -DCINDER_BUILD_SAMPLE={sample name}.

richardeakin avatar Nov 20 '16 21:11 richardeakin

Got it. I don't think the naming is an issue as long as we document (and I read said documentation)

lucasvickers avatar Nov 20 '16 23:11 lucasvickers

I can look at this again for a few days. Have people stopped arguing over the desired CMake version yet?

alias-r-cummins avatar Feb 12 '22 21:02 alias-r-cummins