theunreplicated / nvidia-widgets

Automatically exported from code.google.com/p/nvidia-widgets
0 stars 0 forks source link

make error #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
kubuntu 11.10
32 bit
nvidia card 220gt
on make get the following error:
make
[ 25%] Building CXX object 
src/nvwidgets/CMakeFiles/nvwidgets.dir/nvWidgets.cpp.o
[ 50%] Building CXX object 
src/nvwidgets/CMakeFiles/nvwidgets.dir/nvGLWidgets.cpp.o                        

In file included from 
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/nvGLWidgets.cpp:26:0:       

/home/adispi/Downloads/nvidia-widgets/src/nvglutils/nvShaderUtils.h: In 
function ‘GLuint nv::LinkGLSLProgram(GLuint, GLuint)’:
/home/adispi/Downloads/nvidia-widgets/src/nvglutils/nvShaderUtils.h:106:19: 
warning: format not a string literal and no format arguments [-Wformat-security]
In file included from 
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/nvGLWidgets.cpp:26:0:
/home/adispi/Downloads/nvidia-widgets/src/nvglutils/nvShaderUtils.h: In 
function ‘GLuint nv::LinkGLSLProgram(GLuint, GLuint, GLint, GLint, GLint, 
GLuint)’:
/home/adispi/Downloads/nvidia-widgets/src/nvglutils/nvShaderUtils.h:143:19: 
warning: format not a string literal and no format arguments [-Wformat-security]
[ 75%] Building CXX object 
src/nvwidgets/CMakeFiles/nvwidgets.dir/nvGlutWidgets.cpp.o
Linking CXX shared library libnvwidgets.so                                      

[ 75%] Built target nvwidgets                                                   

[100%] Building CXX object 
src/nvwidgets/examples/CMakeFiles/example.dir/example.cpp.o
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp: In 
function ‘void doUI()’:                                                     

/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:139:54:
 warning: format ‘%f’ expects argument of type ‘double’, but argument 3 
has type ‘int’ [-Wformat]
Linking CXX executable example
CMakeFiles/example.dir/example.cpp.o: In function `display()':                  

/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:43: 
undefined reference to 
`glutSwapBuffers'
CMakeFiles/example.dir/example.cpp.o: In function `idle':
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:48: 
undefined reference to `glutPostRedisplay'
CMakeFiles/example.dir/example.cpp.o: In function `main':
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:155: 
undefined reference to `glutInit'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:156: 
undefined reference to `glutInitWindowSize'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:157: 
undefined reference to `glutInitDisplayMode'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:158: 
undefined reference to `glutCreateWindow'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:175: 
undefined reference to `glutDisplayFunc'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:176: 
undefined reference to `glutMouseFunc'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:177: 
undefined reference to `glutMotionFunc'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:178: 
undefined reference to `glutPassiveMotionFunc'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:179: 
undefined reference to `glutIdleFunc'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:180: 
undefined reference to `glutKeyboardFunc'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:181: 
undefined reference to `glutSpecialFunc'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:182: 
undefined reference to `glutReshapeFunc'
/home/adispi/Downloads/nvidia-widgets/src/nvwidgets/examples/example.cpp:184: 
undefined reference to `glutMainLoop'
../libnvwidgets.so: undefined reference to `glutBitmapCharacter'
../libnvwidgets.so: undefined reference to `glutGetModifiers'
../libnvwidgets.so: undefined reference to `glutBitmapWidth'
../libnvwidgets.so: undefined reference to `glutBitmapHelvetica12'
collect2: ld returned 1 exit status
make[3]: *** [src/nvwidgets/examples/example] Error 1
make[2]: *** [src/nvwidgets/examples/CMakeFiles/example.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by adispi...@gmail.com on 9 Jan 2012 at 9:57

GoogleCodeExporter commented 9 years ago
Without an ubuntu system to diagnose the problem it's hard for me to say what's 
going on. Looks like libglut is missing, but it's hard to say why. I'd start 
taking a look at FindGLUT and the output produced by cmake when executing it.

Original comment by cast...@gmail.com on 9 Jan 2012 at 2:29