Thread 'Trouble compiling BOINC client from source.'

Message boards : API : Trouble compiling BOINC client from source.
Message board moderation

To post messages, you must log in.

AuthorMessage
mike3

Send message
Joined: 10 Jun 08
Posts: 2
United States
Message 17766 - Posted: 10 Jun 2008, 21:40:35 UTC
Last modified: 10 Jun 2008, 21:41:09 UTC

Hi.

I was trying to compile the BOINC client (version 5.10) from source on Debian GNU/Linux, but it does not seem to want to recognize the wxWidgets installation that I have. Why is that? I have wxWidgets 2.8.7 installed.

Excerpt from "./configure" output:

---
checking for wx-libs ...
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.0... no
configure: WARNING:
================================================================================
WARNING: A suitable installation of wxWidgets could not be found
==> building client without clientgui.

If you add wxWidgets to your system, then this configure script will also
configure your system to build the BOINC graphical client (clientgui).

If wxWidgets is installed on your system, please check that wx-config is
in the path, that the directory where wxWidgets libraries are installed
(returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH (or equivalent),
and that wxWidgets version is 2.6.0 or above. Currently wxWidgets version
2.6.0 (gtk based) is known to work with boinc_gui under Linux. You can
use wx-config --version to find what version you have currently installed.

NOTE: if building a portable client-release, you need the *static* version
of the wx-libs installed!

You can get wxWidgets by following the DOWNLOAD link at:
http://www.wxwindows.org/
================================================================================
---
ID: 17766 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 17770 - Posted: 11 Jun 2008, 3:46:41 UTC

config.log is your friend to start tracking it down.
ID: 17770 · Report as offensive
mike3

Send message
Joined: 10 Jun 08
Posts: 2
United States
Message 17783 - Posted: 11 Jun 2008, 19:11:01 UTC - in response to Message 17770.  

config.log is your friend to start tracking it down.


What should I look for in there? I only found this when searching for "wxWidgets":

---
configure:35031: checking for wx-config
configure:35050: found /usr/bin/wx-config
configure:35063: result: /usr/bin/wx-config
configure:35078: checking for wxWidgets version >= 2.6.0
configure:35178: result: no
configure:35240: WARNING:
================================================================================
WARNING: A suitable installation of wxWidgets could not be found
==> building client without clientgui.

If you add wxWidgets to your system, then this configure script will also
configure your system to build the BOINC graphical client (clientgui).

If wxWidgets is installed on your system, please check that wx-config is
in the path, that the directory where wxWidgets libraries are installed
(returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH (or equivalent),
and that wxWidgets version is 2.6.0 or above. Currently wxWidgets version
2.6.0 (gtk based) is known to work with boinc_gui under Linux. You can
use wx-config --version to find what version you have currently installed.

NOTE: if building a portable client-release, you need the *static* version
of the wx-libs installed!

You can get wxWidgets by following the DOWNLOAD link at:
http://www.wxwindows.org/
================================================================================
---

As you can see, this isn't really much different from what I got straight out of "./configure" itself.
ID: 17783 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 18150 - Posted: 2 Jul 2008, 3:16:29 UTC

When trying to compile it myself, I added some debugging messages to the configure script and found the cause. If your installed wxWidgets library is Unicode, the configure script won't find it, unless you pass --enable-unicode.
ID: 18150 · Report as offensive
Stoffel

Send message
Joined: 17 Dec 07
Posts: 4
Germany
Message 18165 - Posted: 2 Jul 2008, 16:11:46 UTC

Try:

wx-config --libs --static=yes

and as a result you should get a list of the libraries with path-info.
If you get a warning (?!) you have to install the !!_static_!! version (devel libs) of wxWidgets.

Unicode? Try:
wx-config --libs --static=yes --unicode=yes
If you get a list of libraries you have to use:
./configure --enable-unicode [and other opts]
in the other case you !!_cannot_!! use the --enable-unicode option.

------------
Rechenaugust
ID: 18165 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 18334 - Posted: 9 Jul 2008, 23:27:01 UTC - in response to Message 18165.  

If you get a warning (?!) you have to install the !!_static_!! version (devel libs) of wxWidgets.

You only need the static version if you want to make a portable redistributable BOINC Manager binary that runs on computers without wxWidgets installed. If you just want to compile it for yourself, the dynamic library works just fine.

ID: 18334 · Report as offensive
Chris
Avatar

Send message
Joined: 1 Jun 07
Posts: 36
Message 20699 - Posted: 6 Oct 2008, 22:53:03 UTC

ManagerGUI compile error:

It happens also without "o3" flag on Ubuntu 8.10 (gcc Ubuntu 4.3.2-1ubuntu8), tested several times last week from trunk (today Rev. 16145). The coreclients from trunk are OK.


g++ -DHAVE_CONFIG_H -I. -I.. -I../lib -I../api -I../db -I../client -I../tools -I../sched -I../lib/mac -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/usr/local/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -O3 -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -MT boinc_gui-ViewWork.o -MD -MP -MF .deps/boinc_gui-ViewWork.Tpo -c -o boinc_gui-ViewWork.o `test -f 'ViewWork.cpp' || echo './'`ViewWork.cpp
ViewWork.cpp: In member function ‘void CViewWork::GetDocStatus(wxInt32, wxString&) const’:
ViewWork.cpp:1016: error: call of overloaded ‘wxString(const char*)’ is ambiguous
/usr/include/wx-2.8/wx/string.h:722: note: candidates are: wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.8/wx/string.h:692: note: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.8/wx/string.h:690: note: wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.8/wx/string.h:682: note: wxString::wxString(int) <near match>
ViewWork.cpp:1041: error: call of overloaded ‘wxString(const char*)’ is ambiguous
/usr/include/wx-2.8/wx/string.h:722: note: candidates are: wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.8/wx/string.h:692: note: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.8/wx/string.h:690: note: wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.8/wx/string.h:682: note: wxString::wxString(int) <near match>
make[2]: *** [boinc_gui-ViewWork.o] Error 1
make[2]: Leaving directory `/home/rueger/dok23/boinc/clientgui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rueger/dok23/boinc'
make: *** [all] Error 2
ID: 20699 · Report as offensive
Chris
Avatar

Send message
Joined: 1 Jun 07
Posts: 36
Message 20770 - Posted: 12 Oct 2008, 16:46:30 UTC - in response to Message 20699.  

Building BoincmanagerGUI 6.3.14 Rev. 16189 now works fine.

The project list in "Attach to project" window is a little bit squezzed, may be a WxWidgets 2.8.8 issue. With 6.2.18 and 6.2.19 builds on Ubuntu 8.10 beta or the boincmgr 6.2.18 executable 6.2.18 from debian experimental it is similar. The Berkeley builds are OK.

Screenshot
ID: 20770 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 20779 - Posted: 13 Oct 2008, 5:19:13 UTC - in response to Message 20770.  

The project list in "Attach to project" window is a little bit squezzed, may be a WxWidgets 2.8.8 issue.

Try the simple view :) That really breaks with wxWidgets 2.8.
ID: 20779 · Report as offensive
Chris
Avatar

Send message
Joined: 1 Jun 07
Posts: 36
Message 20780 - Posted: 13 Oct 2008, 11:22:33 UTC - in response to Message 20779.  

Hmmm...

CoreClient Rev. 16189 doesn't work fine. Scheduler ist running only one CPU on Pentium 4 Hyperthreading with two virtual CPUs. It's good to have an old copy of 6.2.19.

ID: 20780 · Report as offensive
Chris
Avatar

Send message
Joined: 1 Jun 07
Posts: 36
Message 20836 - Posted: 16 Oct 2008, 17:16:02 UTC

Building BoincManagerGUI 6.2.23 on Ubuntu 8.10 beta i386 fails:


g++ -DHAVE_CONFIG_H -I. -I.. -I../lib -I../api -I../db -I../client -I../tools -I../sched -I../lib/mac -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I/usr/local/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -O3 -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -MT boinc_gui-WelcomePage.o -MD -MP -MF .deps/boinc_gui-WelcomePage.Tpo -c -o boinc_gui-WelcomePage.o `test -f 'WelcomePage.cpp' || echo './'`WelcomePage.cpp
In file included from WelcomePage.cpp:43:
hyperlink.h:15: warning: #pragma implementation for ‘hyperlink.h’ appears after file is included
WelcomePage.cpp: In member function ‘void CWelcomePage::CreateControls()’:
WelcomePage.cpp:224: error: conversion from ‘const char [53]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match>
WelcomePage.cpp: In member function ‘void CWelcomePage::OpenWCG(wxCommandEvent&)’:
WelcomePage.cpp:528: error: conversion from ‘const char [55]’ to ‘wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match>
make[2]: *** [boinc_gui-WelcomePage.o] Fehler 1
make[2]: Verlasse Verzeichnis '/home/rueger/dok23/boinc_core_release_6_2/clientgui'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/rueger/dok23/boinc_core_release_6_2'
make: *** [all] Fehler 2

ID: 20836 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 20951 - Posted: 24 Oct 2008, 14:27:17 UTC - in response to Message 20836.  

Building BoincManagerGUI 6.2.23 on Ubuntu 8.10 beta i386 fails:

That was fixed in [trac]changeset:16230[/trac]. A workaround is using non-Unicode wxWidgets (but I think it would be easier to even manually apply the 16230 fix).
ID: 20951 · Report as offensive

Message boards : API : Trouble compiling BOINC client from source.

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.