Message boards : API : Trouble compiling BOINC client from source.
Message board moderation
Author | Message |
---|---|
Send message Joined: 10 Jun 08 Posts: 2 |
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/ ================================================================================ --- |
Send message Joined: 19 Jan 07 Posts: 1179 |
config.log is your friend to start tracking it down. |
Send message Joined: 10 Jun 08 Posts: 2 |
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. |
Send message Joined: 19 Jan 07 Posts: 1179 |
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. |
Send message Joined: 17 Dec 07 Posts: 4 |
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 |
Send message Joined: 19 Jan 07 Posts: 1179 |
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. |
Send message Joined: 1 Jun 07 Posts: 36 |
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.
|
Send message Joined: 1 Jun 07 Posts: 36 |
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 |
Send message Joined: 19 Jan 07 Posts: 1179 |
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. |
Send message Joined: 1 Jun 07 Posts: 36 |
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. |
Send message Joined: 1 Jun 07 Posts: 36 |
Building BoincManagerGUI 6.2.23 on Ubuntu 8.10 beta i386 fails:
|
Send message Joined: 19 Jan 07 Posts: 1179 |
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). |
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.