[osg-users] First recipe from cookbook won't compile with given source code

Rodrigo Dias rodrigo1406 at gmail.com
Fri Jan 18 18:23:55 PST 2019


Thank you, Julien.

Though there are two different CMakeLists.txt files (https://github.com/xarray/osgRecipes/CMakeLists.txt and https://github.com/xarray/osgRecipes/tree/master/cookbook/CMakeLists.txt), I tried with the first one, because you said so. I had to give a value to the OPENSCENEGRAPH_LIB_DIR (/usr/local/lib64) in CMake, but it still gives me an error:


> Could NOT find OpenCV (missing:  OpenCV_ROOT_DIR OpenCV_LIBRARIES_RELEASE OpenCV_LIBRARIES_DEBUG OpenCV_LIBRARIES) 
> Could NOT find ALVAR (missing:  ALVAR_ROOT_DIR ALVAR_INCLUDE_DIRS ALVAR_LIBRARIES_RELEASE ALVAR_LIBRARIES_DEBUG ALVAR_LIBRARIES) 
> CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake files:
> GLEW_LIBRARY
>     linked by target "osgnanovg" in directory /home/rodrigo/Videos/osg/rodrigo/osgRecipes-master/integrations/osgnanovg
> 
> Configuring incomplete, errors occurred!
> See also "/home/rodrigo/Videos/osg/rodrigo/osgRecipes-build/CMakeFiles/CMakeOutput.log".
> See also "/home/rodrigo/Videos/osg/rodrigo/osgRecipes-build/CMakeFiles/CMakeError.log".
> 


And with this I cannot "make" or "make install" it. The readme gives an even more incomplete direction (say nothing about the OPENSCENEGRAPH_LIB_DIR variable, and why not use the default set by OSG?). Going the way I was going, I managed to compile and run most of the recipes in chapter 2. I wouldn't mind giving up one recipe or another just because I didn't install some obscure library. So, maybe using g++ is an easier option? (This includes me losing years with Borland Delphi, instead of learning and dominating C++ and CMake stuff. Shame on me!)

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75511#75511







More information about the osg-users mailing list