<div dir="ltr"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Howdy Romulans & Vulcans,<br></div><div dir="ltr"><span style="background-color:rgb(255,255,255)"><span></span></span><br></div><div>Newbie to OSG, trying to compile sample program osgWidget, get the following error ... any help is appreciated.<br></div><div dir="ltr"><br>undefined reference to `osgWidget::Widget::addColor(float, float, float, float, osgWidget::Widget::Corner)'<br><br>######################################<br>#cmake file - For ALL myProjects<br>#<br>cmake_minimum_required(VERSION 2.8)<br>set(PROJECT_VERSION "1.0")<br>set(EXECUTABLE_OUTPUT_PATH "./" )<br>set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/local/lib/cmake/" "/usr/lib/cmake")<br>set(PROJECT_NAME home-prj01)<br>#<br>project(${PROJECT_NAME})<br>#<br>include_directories(${GNULIBS_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${GLUT_INCLUDE_DIRS} <br>                    ${AR_DIRS} ${OpenCV_INCLUDE_DIRS} ${OPENSCENEGRAPH_INCLUDE_DIRS} "./dep/include")<br># Find Packages<br>FIND_PACKAGE(OpenGL         REQUIRED)<br>FIND_PACKAGE(OpenSceneGraph REQUIRED)<br>FIND_PACKAGE(osg            REQUIRED)<br>FIND_PACKAGE(osgDB          REQUIRED)<br>FIND_PACKAGE(osgGA          REQUIRED)<br>FIND_PACKAGE(osgViewer      REQUIRED)<br>FIND_PACKAGE(osgWidget      REQUIRED)<br>FIND_PACKAGE(osgUtil        REQUIRED)<br>FIND_PACKAGE(OpenThreads    REQUIRED)<br>FIND_PACKAGE(OpenCV         REQUIRED)<br>FIND_PACKAGE(aruco          REQUIRED)<br>#<br>file( GLOB SOURCE "*.h" "osgWidgetCanvas.cpp" )<br>#<br>set(myOGL_LIBS ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES})<br>set(myOSG_LIBS ${OSG_LIBRARY} ${OSG_LIBS} ${OSGGA_LIBRARY} ${OSGDB_LIBRARY} <br>             ${OSGVIEWER_LIBRARY} ${OSGUTIL_LIBRARY} ${OSG}<br>             ${OPENSCENEGRAPH_LIBRARIES} ${OPENTHREADS_LIBRARY})<br>set(myAR_LIBS ${aruco_LIBS})<br>set(myOCV_LIB ${OpenCV_LIBS})<br>set(ALL_LIBRARIES ${myOGL_LIBS} ${myOSG_LIBS} ${myOCV_LIBS} ${myAR_LIBS})<br>#<br>link_directories(${OpenCV_LIB_DIR} ${OPENSCENEGRAPH_LIBRARY_DIR} "./dep/lib")<br>add_executable(${PROJECT_NAME} ${SOURCE})<br>target_link_libraries(${PROJECT_NAME} ${ALL_LIBRARIES})<br># end<br>############################################################################<br><br><br></div><div>What library  am I missing ?<br></div><div dir="ltr"><br><br>Cheers,<br>-Joshua Robinson<br></div><div><span><img src="https://docs.google.com/uc?export=download&id=0B73x17sTfMvKamNaUUNPanFoZ2s&revid=0B73x17sTfMvKYS81eVVUZWhCTDRRYXdnTkswSzdKeDg2SDhnPQ"></span>"Live long and prosper" - Spock, a volcan.<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>