kbale / osgocean

An ocean rendering nodekit for OpenSceneGraph
GNU Lesser General Public License v3.0
109 stars 56 forks source link

CMake error #54

Open ncrasta opened 5 years ago

ncrasta commented 5 years ago

When I try to build it on ubuntu 18.04, I get the following error. Any suggestion to fix it? Thanks.

CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find osg (missing: OSG_LIBRARY OSG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.10/Modules/Findosg.cmake:50 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:26 (find_package)

-- Configuring incomplete, errors occurred!

as14g18 commented 3 years ago

Looks like cmake isn't able to find the OpenSceneGraph build location. Try doing cmake -DCMAKE_SYSTEM_PREFIX_PATH=<path to osg>