How to confirm Cinder is Working

Hey Community, I have tried to build Cinder with this Guide:
https://libcinder.org/docs/guides/linux-notes/ubuntu.html

How ever:
I have installed the Dependencies without any Error Information.
I have done the cmake … and the make .j 8.

But I can not build the example Application.
But I need to know if my Cinder is working.
This will give me the power to invest my Time to learn Cinder.

So It will bee hapy for me to see / make a “Hello World” Example to
verrify my building. I will be happy with every Sugestion to see it is running.

I hope of Help
CreCoProject

I have tried the Instructions from the Section “Building and Running BasicApp”
but when I try cmake …


(base) crecoproject@crecoproject-HP-250-G4-Notebook-PC:~/MeinCinderBeispiel/build$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is Clang 18.1.3
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:9 (find_package):
  Could not find a package configuration file provided by "Cinder" with any
  of the following names:

    CinderConfig.cmake
    cinder-config.cmake

  Add the installation prefix of "Cinder" to CMAKE_PREFIX_PATH or set
  "Cinder_DIR" to a directory containing one of the above files.  If "Cinder"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

Are you using Cinder from github? Or the release downloaded from the website? Use the former.

And make sure you have the original directory structure of Cinder, don’t copy BasicApp to another folder, because it won’t find the library.

-Gabor

Dear Gabor_papp,
I used the explicite Commandos listed in the Website I have linked.
I have think it would been the Version from the GitHUb Repository.
When it gives there a difference, please let me know the precise Commandos, to do it the way you will sugest me.

Dear Gabor_papp,
I have searched for the Github Repository for Cinder.
The Problem is tath there are the same Instructions for cloning the Repository, as I have done following the Instructions from the linked Manual for Installation.

Run these commands to build Cinder:

cd Cinder
mkdir build && cd build
cmake ..
make -j

Check if it builds without any error, and make sure that at the end there is the cinder library built in the Cinder/lib/linux folder.

Otherwise please send the messages you get during build.

-Gabor

Exact this Commands I have tried.
And are running without any Error-Message.
But the Example to verrify this building will get me the Error Message I have posted.

Excuse me,
I’m blind.

cmake …

gives following warnings:

CMake Warning (dev) at /usr/share/cmake-3.28/Modules/FindOpenGL.cmake:381 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run “cmake --help-policy CMP0072” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

FindOpenGL found both a legacy GL library:

OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

and GLVND libraries for OpenGL and GLX:

OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

OpenGL_GL_PREFERENCE has not been set to “GLVND” or “LEGACY”, so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
proj/cmake/platform_linux.cmake:100 (find_package)
CMakeLists.txt:29 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

– using MPG123 headers at: /usr/include
– using SNDFILE headers at: /usr/include
CMake Warning (dev) at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (GLIB) does
not match the name of the calling package (Glib). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
proj/cmake/modules/FindGlib.cmake:107 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
proj/cmake/platform_linux.cmake:154 (find_package)
CMakeLists.txt:29 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring done (2.0s)
– Generating done (0.9s)
– Build files have been written to: /home/crecoproject/Cinder/build

Execuse me again,
I have repeated the Doing for my Installation.
Now the make -j will crash.
It prints out a lot of Messages and then the whole Computer is blocked.
This Behavior I see just the first Time.

Try make -j 8 instead. I have never seen make -j crash on a desktop computer, only on a Raspberry Pi. Did you manage to build the Cinder library at the end?

Ok,
I have done the Installation Process a second time.
New Is all Working.
The Example App runs too.
But I have no sugestion what would been the Difference.
So for me this Theme has found his Solution

A verry happy
CreCoProject

1 Like