Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

unable to compile RGBDemo on Ubuntu 14.04 with Opencv 3.0

47 views
Skip to first unread message

Kamble Tanaji

unread,
Jul 27, 2016, 9:56:20 AM7/27/16
to rgbdemo
after runing make it will  give me the following error.  I have already installed OpenGL but why this error is coming m not getting that.. Please help me if anybody knows that


Linking CXX executable ../../../../../../bin/Sample-Players
cd /home/sincos/RGBDemo-0.7.0-Source/build/nestk/deps/openni/Nite/Samples/Players && /usr/bin/cmake -E cmake_link_script CMakeFiles/Sample-Players.dir/link.txt --verbose=1
/usr/bin/c++    -fPIC -O2 -g -DNDEBUG    CMakeFiles/Sample-Players.dir/SceneDrawer.cpp.o CMakeFiles/Sample-Players.dir/signal_catch.cpp.o CMakeFiles/Sample-Players.dir/kbhit.cpp.o CMakeFiles/Sample-Players.dir/main.cpp.o  -o ../../../../../../bin/Sample-Players  -L/home/sincos/RGBDemo-0.7.0-Source/nestk/deps/openni/Nite/Lib/Linux64 -rdynamic ../../../../../../lib/libOpenNI.so -lglut -lusb-1.0 -ldl ../../../../../../lib/libTinyXml.a -Wl,-rpath,/home/sincos/RGBDemo-0.7.0-Source/nestk/deps/openni/Nite/Lib/Linux64:/home/sincos/RGBDemo-0.7.0-Source/build/lib
/usr/bin/ld: CMakeFiles/Sample-Players.dir/main.cpp.o: undefined reference to symbol 'glOrtho'
//usr/lib/x86_64-linux-gnu/mesa/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

make[2]: *** [bin/Sample-Players] Error 1
make[2]: Leaving directory `/home/sincos/RGBDemo-0.7.0-Source/build'
make[1]: *** [nestk/deps/openni/Nite/Samples/Players/CMakeFiles/Sample-Players.dir/all] Error 2
make[1]: Leaving directory `/home/sincos/RGBDemo-0.7.0-Source/build'
make: *** [all] Error 2



Thanks in advance

须贺横

unread,
Sep 9, 2019, 11:46:42 PM9/9/19
to rgbdemo
1. locate Error
/home/sincos/RGBDemo-0.7.0-Source/build/nestk/deps/openni/Nite/Samples/Players

find the file path, and change the CMakeList.txt file:

# And make it link against these libs.
# ---------------------------------------
find_library
(OpenGL GLUT_LIB glut)
if(DEFINED OPENNI_PLATFORM_APPLE)
 find_library
(OPENGL_LIB OpenGL)
endif
(DEFINED OPENNI_PLATFORM_APPLE)


target_link_libraries
(
 $
{VIEWER_EXE}
 $
{OPENNI_LIB_NAME}
 $
{GLUT_LIB}
 $
{OPENGL_LIB}
 $
{OPENGL_LIBRARIES}  #libGL new add line
)


if you find the same error, you can solve it by the method!
Cause: The link library file could not be found

在 2016年7月27日星期三 UTC+8下午9:56:20,Kamble Tanaji写道:

Kamble Tanaji

unread,
Sep 10, 2019, 2:39:05 AM9/10/19
to rgbdemo
Thanks for reply. After 3 years somebody replied. 

须贺横

unread,
Sep 12, 2019, 10:02:43 PM9/12/19
to rgb...@googlegroups.com
It took me a week to compile it! The result runs with a segment error! I am helpless.

Kamble Tanaji <tanajik...@gmail.com> 于2019年9月10日周二 下午2:39写道:
--
You received this message because you are subscribed to the Google Groups "rgbdemo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rgbdemo+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rgbdemo/f5a60da4-468a-43db-83d6-98b6f6c102d7%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages