climateprediction.net (CPDN) home page
Thread 'Building from source on 20.04'

Thread 'Building from source on 20.04'

Questions and Answers : Unix/Linux : Building from source on 20.04
Message board moderation

To post messages, you must log in.

AuthorMessage
ProfileDave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4540
Credit: 19,016,442
RAC: 21,024
Message 62684 - Posted: 7 Sep 2020, 10:48:12 UTC
Last modified: 7 Sep 2020, 17:29:23 UTC

Has anyone managed this successfully? I have tried the BOINC forums with no luck so far. I can do it if I don't include the manager at the ./configure stage but as soon as I try to include it I get lots of undefined reference to `wxWebViewNameStr' and similar messages all to to with WebView undefined references at the make stage.

Of course in an ideal world, if it was going to fall over at make, it would fall over at ./configure with a more helpful error message.

I have built BOINC including manager a number of times on 19.10 and am assuming it is some change in the latest version of Ubuntu and WXwigits that is responsible but for the life of me I can not work out what it is.

Edit: there has since been a post on git-hub from someone failing to get it to compile.
ID: 62684 · Report as offensive     Reply Quote
lazlo_vii

Send message
Joined: 11 Dec 19
Posts: 108
Credit: 3,012,142
RAC: 0
Message 62691 - Posted: 8 Sep 2020, 3:03:33 UTC - in response to Message 62684.  

In Ubuntu 20.04 and beyond all packages are install from the Snap Store. This could be the root cause of your issue if something you have installed is packaged with the wrong version of the files you need to compile against. On the other hand, it's really simple to launch a LXD container running Ubuntu 18.04 so you could use the container as your build environment and see if resulting binary would run on 20.04.
ID: 62691 · Report as offensive     Reply Quote
ProfileDave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4540
Credit: 19,016,442
RAC: 21,024
Message 62694 - Posted: 9 Sep 2020, 8:28:04 UTC - in response to Message 62691.  

sudo apt install libwxgtk-webview3.0-gtk3-dev freeglut3-dev libxss-dev


Turned out to be what I needed. A few minor problems followed before manager would connect to the client.
ID: 62694 · Report as offensive     Reply Quote
Les Bayliss
Volunteer moderator

Send message
Joined: 5 Sep 04
Posts: 7629
Credit: 24,240,330
RAC: 0
Message 62695 - Posted: 9 Sep 2020, 8:47:11 UTC

Good one, Dave.
ID: 62695 · Report as offensive     Reply Quote
ProfileDave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4540
Credit: 19,016,442
RAC: 21,024
Message 62696 - Posted: 9 Sep 2020, 10:24:15 UTC
Last modified: 9 Sep 2020, 10:26:51 UTC

Most I suspect think I have used a sledgehammer to crack a nut. The nut in question being the loss of functionality in the latest packaged versions of BOINC which assume that the client will run as a service and the user doesn't need to have control to stop and start it when exiting the manager. It is the packagers that do this with the source code at git-hub still having full functionality.

Edit: I assume that the problem not showing up at

./configure --disable-server
Is due to some sloppy programming somewhere in the source code. In the past, building from source config hasn't completed but has told me what I need. (Even if not how to find it!)
ID: 62696 · Report as offensive     Reply Quote
Profilegeophi
Volunteer moderator

Send message
Joined: 7 Aug 04
Posts: 2187
Credit: 64,822,615
RAC: 5,275
Message 62699 - Posted: 9 Sep 2020, 22:17:32 UTC - in response to Message 62696.  

Or just do what I do and download the berkeley version at https://boinc.berkeley.edu/dl/boinc_ubuntu_7.16.6_x86_64-pc-linux-gnu.sh

It says 7.16.6 on the download but in Help > About it says 7.17.0 It says development version but I've had no issues with it after using it for a few months.

I got sick of the service install of boinc in the Ubuntu package manager as I like the ease of control when running the berkeley packaged version.
ID: 62699 · Report as offensive     Reply Quote
lazlo_vii

Send message
Joined: 11 Dec 19
Posts: 108
Credit: 3,012,142
RAC: 0
Message 62711 - Posted: 10 Sep 2020, 13:31:44 UTC - in response to Message 62699.  
Last modified: 10 Sep 2020, 13:35:48 UTC

$ sudo systemctl disable boinc-client.service
Synchronizing state of boinc-client.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable boinc-client
Removed /etc/systemd/system/multi-user.target.wants/boinc-client.service.


That should solve any problems you have with BOINC auto starting in Ubuntu. After that you can use start or stop instead of disable to control it manually.
ID: 62711 · Report as offensive     Reply Quote
ProfileDave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4540
Credit: 19,016,442
RAC: 21,024
Message 62714 - Posted: 10 Sep 2020, 16:36:54 UTC - in response to Message 62699.  

The one I have built is 7.17.0 So far no problems with it. Unlike some of my previous builds, I have managed this one without adding any extra repositories so am hoping there are fewer opportunities for things to break next time I do a release upgrade.
ID: 62714 · Report as offensive     Reply Quote

Questions and Answers : Unix/Linux : Building from source on 20.04

©2024 cpdn.org