Problem building Boinc from the sources (stable and development versions)

Message boards : BOINC client : Problem building Boinc from the sources (stable and development versions)
Message board moderation

To post messages, you must log in.

AuthorMessage
vitaly_repin
Avatar

Send message
Joined: 11 Jul 06
Posts: 1
Russia
Message 4961 - Posted: 11 Jul 2006, 5:34:09 UTC
Last modified: 11 Jul 2006, 6:09:04 UTC

Problem with the deelopment version:

Operation system: linux
Compiler: gcc
GLUT: freeglut
Boinc: latest (11-Jul-2006) version from the cvs.

make complains about missing MainFrame.cpp source file:

Making all in clientgui
make[2]: Entering directory `/usr/local/stuff/DISK-SW/unix/boinc/boinc/clientgui'
make[2]: Leaving directory `/usr/local/stuff/DISK-SW/unix/boinc/boinc/clientgui'
make[2]: *** No rule to make target `MainFrame.cpp', needed by `boinc_gui-MainFrame.o'. Stop.
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/stuff/DISK-SW/unix/boinc/boinc'
make: *** [all] Error 2

=============================================================================

Problem with the stable version:

Operation system: linux
Compiler: gcc
GLUT: freeglut
Boinc: latest (11-Jul-2006) _stabe_ version from the cvs.

After 'cvs co', "autoreconf" was issued. All was fine.

The command './configure --prefix=/usr/local/boinc' was issued.
All was fine.

Output realted to the GL:

=======================================================
checking for OpenGL library... -lGL
checking for OpenGL Utility library... -lGLU
checking for GLUT library... -lglut
checking gl.h usability... no
checking gl.h presence... no
checking for gl.h... no
checking glu.h usability... no
checking glu.h presence... no
checking for glu.h... no
checking glut.h usability... no
checking glut.h presence... no
checking for glut.h... no
checking glaux.h usability... no
checking glaux.h presence... no
checking for glaux.h... no
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking GL/glaux.h usability... no
checking GL/glaux.h presence... no
checking for GL/glaux.h... no
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking OpenGL/glu.h usability... no
checking OpenGL/glu.h presence... no
checking for OpenGL/glu.h... no
checking OpenGL/glut.h usability... no
checking OpenGL/glut.h presence... no
checking for OpenGL/glut.h... no
checking OpenGL/glaux.h usability... no
checking OpenGL/glaux.h presence... no
checking for OpenGL/glaux.h... no
checking GLUT/glut.h usability... no
checking GLUT/glut.h presence... no
checking for GLUT/glut.h... no
checking MesaGL/gl.h usability... no
checking MesaGL/gl.h presence... no
checking for MesaGL/gl.h... no
checking MesaGL/glu.h usability... no
checking MesaGL/glu.h presence... no
checking for MesaGL/glu.h... no
checking MesaGL/glut.h usability... no
checking MesaGL/glut.h presence... no
checking for MesaGL/glut.h... no
checking MesaGL/glaux.h usability... no
checking MesaGL/glaux.h presence... no
checking for MesaGL/glaux.h... no
===================================================

After issuing "make" command, build process is finished with the follwoing error message:

/bin/sh ../libtool --tag=CXX --mode=link g++ -fPIC -DPIC -I../lib -I../api -I../db -I../client -I../tools -I../sched -I/usr/local/include/mysql -pthread -g -O2 -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -pthread -L/usr/local/lib -L/usr/local/ssl/lib -L/usr/local/ssl/lib -o upper_case upper_case.o -L../lib -L../api -lboinc_api -lboinc -lssl -lcrypto -ldl -lnsl -lz -L/usr/local/lib -lcurl -L/usr/local/ssl/lib -lidn -lssl -lcrypto -ldl -lz -lpthread -lm -lstdc++ -lgcc_eh -lgcc -lc
g++ -fPIC -DPIC -I../lib -I../api -I../db -I../client -I../tools -I../sched -I/usr/local/include/mysql -g -O2 -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -o upper_case upper_case.o -pthread -L/usr/local/lib -L/usr/local/ssl/lib -L/usr/local/stuff/DISK-SW/unix/boinc/boinc/lib -L/usr/local/stuff/DISK-SW/unix/boinc/boinc/api -lboinc_api -lboinc -lnsl /usr/local/lib/libcurl.so /usr/local/lib/libidn.so /usr/local/lib/libiconv.so -lssl -lcrypto -ldl -lz -lpthread /usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so -L/usr/local/stuff/DISK-SW/unix/development/objdir/i686-pc-linux-gnu/libstdc++-v3/src -L/usr/local/stuff/DISK-SW/unix/development/objdir/i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/usr/local/stuff/DISK-SW/unix/development/objdir/./gcc -L/usr/local/i686-pc-linux-gnu/bin -L/usr/local/i686-pc-linux-gnu/lib -L/usr/local/lib/gcc/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib -L/usr/local/lib/gcc/i686-pc-linux-gnu/../.. -lm -lgcc_s -lgcc_eh -lgcc -lc -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib

upper_case.o: In function `app_render(int, int, double)':
/usr/local/stuff/DISK-SW/unix/boinc/boinc/apps/upper_case.C:256: undefined reference to `glClear'
/usr/local/stuff/DISK-SW/unix/boinc/boinc/apps/upper_case.C:257: undefined reference to `glLoadIdentity'
/usr/local/stuff/DISK-SW/unix/boinc/boinc/apps/upper_case.C:258: undefined reference to `glColor3f'
/usr/local/stuff/DISK-SW/unix/boinc/boinc/apps/upper_case.C:260: undefined reference to `glRasterPos2f'
/usr/local/stuff/DISK-SW/unix/boinc/boinc/apps/upper_case.C:268: undefined reference to `glRasterPos2f'
/usr/local/stuff/DISK-SW/unix/boinc/boinc/apps/upper_case.C:271: undefined reference to `glRasterPos2f'
/usr/local/stuff/DISK-SW/unix/boinc/boinc/apps/upper_case.C:274: undefined reference to `glRasterPos2f'
upper_case.o: In function `main':
/usr/local/stuff/DISK-SW/unix/boinc/boinc/apps/upper_case.C:241: undefined reference to `boinc_init_graphics'
collect2: ld returned 1 exit status
make[2]: *** [upper_case] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Can anybody help me? What additional opengl libraries should I install to build boinc?
WBR & WBW, Vitaly
ID: 4961 · Report as offensive
Gabriel Burt

Send message
Joined: 2 Aug 06
Posts: 3
United States
Message 5193 - Posted: 2 Aug 2006, 18:00:58 UTC

I get the same error. I can get rid of the GL errors by adding -lglut -lGL -lGLU to the /bin/sh ../libtool command. But I still get the undefined references to `boinc_init_graphics`.
ID: 5193 · Report as offensive
Gabriel Burt

Send message
Joined: 2 Aug 06
Posts: 3
United States
Message 5194 - Posted: 2 Aug 2006, 20:35:33 UTC

Switched over to the development branch (HEAD) and now everything works fine.
ID: 5194 · Report as offensive
Marc Seil

Send message
Joined: 9 Dec 05
Posts: 6
Luxembourg
Message 7680 - Posted: 21 Jan 2007, 11:47:19 UTC

Hy,

After checking the source code of upper_case.c I removed the line #define BOINC_APP_GRAPHICS as I am not interested in a graphical compliant work unit application. Even I don't get the point why this define is included in the source code and is not passed as a compiler flag or through the configure script. Nevertheless it works fine now in my case for the boinc_core_release_5_4_11. Maybe this can help someone else.

ID: 7680 · Report as offensive

Message boards : BOINC client : Problem building Boinc from the sources (stable and development versions)

Copyright © 2024 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.