Message boards : Server programs : Installation problem
Message board moderation
Author | Message |
---|---|
Send message Joined: 30 Oct 08 Posts: 3 |
I am attempting to install the boinc server on Ubuntu8.04. The autosetup an configure --disable-client steps work fine but during the make stage I get the following error: Making all in samples/example_app make[2]: Entering directory `/server_stable/samples/example_app' g++ -g -DAPP_GRAPHICS -I../.. -I../../lib -I../../api -L../../api -L../../lib -L /usr/X11R6/lib -L. -c -o uc2_graphics.o uc2_graphics.cpp In file included from uc2_graphics.cpp:39: ../../api/txf_util.h:35: error: ‘GLfloat’ has not been declared uc2_graphics.cpp: In function ‘void init_lights()’: uc2_graphics.cpp:62: error: ‘GLfloat’ was not declared in this scope uc2_graphics.cpp:62: error: expected `;' before ‘ambient’ uc2_graphics.cpp:63: error: expected `;' before ‘position’ uc2_graphics.cpp:64: error: expected `;' before ‘dir’ uc2_graphics.cpp:65: error: ‘GL_LIGHT0’ was not declared in this scope uc2_graphics.cpp:65: error: ‘GL_AMBIENT’ was not declared in this scope uc2_graphics.cpp:65: error: ‘ambient’ was not declared in this scope uc2_graphics.cpp:65: error: ‘glLightfv’ was not declared in this scope uc2_graphics.cpp:66: error: ‘GL_POSITION’ was not declared in this scope uc2_graphics.cpp:66: error: ‘position’ was not declared in this scope uc2_graphics.cpp:67: error: ‘GL_SPOT_DIRECTION’ was not declared in this scope uc2_graphics.cpp:67: error: ‘dir’ was not declared in this scope uc2_graphics.cpp: In function ‘void draw_text()’: uc2_graphics.cpp:92: error: cannot convert ‘float*’ to ‘int*’ for argument ‘6’ to ‘void txf_render_string(float, double, double, double, float, int*, int, char*)’ uc2_graphics.cpp:94: error: cannot convert ‘float*’ to ‘int*’ for argument ‘6’ to ‘void txf_render_string(float, double, double, double, float, int*, int, char*)’ uc2_graphics.cpp:96: error: cannot convert ‘float*’ to ‘int*’ for argument ‘6’ to ‘void txf_render_string(float, double, double, double, float, int*, int, char*)’ uc2_graphics.cpp:98: error: cannot convert ‘float*’ to ‘int*’ for argument ‘6’ to ‘void txf_render_string(float, double, double, double, float, int*, int, char*)’ uc2_graphics.cpp:104: error: cannot convert ‘float*’ to ‘int*’ for argument ‘6’ to ‘void txf_render_string(float, double, double, double, float, int*, int, char*)’ uc2_graphics.cpp:106: error: cannot convert ‘float*’ to ‘int*’ for argument ‘6’ to ‘void txf_render_string(float, double, double, double, float, int*, int, char*)’ uc2_graphics.cpp:109: error: cannot convert ‘float*’ to ‘int*’ for argument ‘6’ to ‘void txf_render_string(float, double, double, double, float, int*, int, char*)’ uc2_graphics.cpp: In function ‘void set_viewpoint(double)’: uc2_graphics.cpp:135: error: ‘GL_MODELVIEW’ was not declared in this scope uc2_graphics.cpp:135: error: ‘glMatrixMode’ was not declared in this scope uc2_graphics.cpp:136: error: ‘glLoadIdentity’ was not declared in this scope uc2_graphics.cpp:141: error: ‘gluLookAt’ was not declared in this scope uc2_graphics.cpp:142: error: ‘glRotated’ was not declared in this scope uc2_graphics.cpp: In function ‘void init_camera(double)’: uc2_graphics.cpp:147: error: ‘GL_PROJECTION’ was not declared in this scope uc2_graphics.cpp:147: error: ‘glMatrixMode’ was not declared in this scope uc2_graphics.cpp:148: error: ‘glLoadIdentity’ was not declared in this scope uc2_graphics.cpp:154: error: ‘gluPerspective’ was not declared in this scope uc2_graphics.cpp: In function ‘void app_graphics_render(int, int, double)’: uc2_graphics.cpp:165: warning: deprecated conversion from string constant to ‘char*’ uc2_graphics.cpp:171: error: ‘GL_COLOR_BUFFER_BIT’ was not declared in this scope uc2_graphics.cpp:171: error: ‘GL_DEPTH_BUFFER_BIT’ was not declared in this scope uc2_graphics.cpp:171: error: ‘glClear’ was not declared in this scope uc2_graphics.cpp: In function ‘void app_graphics_resize(int, int)’: uc2_graphics.cpp:198: error: ‘glViewport’ was not declared in this scope uc2_graphics.cpp: In function ‘void app_graphics_init()’: uc2_graphics.cpp:237: error: ‘glClearColor’ was not declared in this scope uc2_graphics.cpp:239: warning: deprecated conversion from string constant to ‘char*’ make[2]: *** [uc2_graphics.o] Error 1 make[2]: Leaving directory `/server_stable/samples/example_app' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/server_stable' make: *** [all] Error 2 Any thoughts to get past this error? |
Send message Joined: 19 Jan 07 Posts: 1179 |
Currently the only way is editing the samples/example_app/Makefile.am to remove "uc2_graphics", or editing the root makefile so that the example_app isn't built at all. |
Send message Joined: 30 Oct 08 Posts: 3 |
Removing example_app from Makefile.am seems to have worked. Many thanks. |
Send message Joined: 12 Feb 06 Posts: 232 |
It seems that the example app also relies on having the graphics libraries under /usr/local/lib rather than allowing the use of system versions of those libraries. That seems to be a bit of an overconstraint. -- Eric Myers "Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats |
Send message Joined: 30 Oct 08 Posts: 3 |
Added the graphics libraries to /usr/lib but still no luck with the example_app. Just out of curiosity, why would you say that currently the only way is to remove it from the makefile? Is there a known bug? |
Send message Joined: 19 Jan 07 Posts: 1179 |
Added the graphics libraries to /usr/lib See [trac]ticket:771[/trac]. It's fixed in the last revision. |
Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.