Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 29-06-2022, 08:15   #1
Registered User

Join Date: Apr 2022
Posts: 21
warning about building upon wxgtk3.1.x for linux

Hi

I use to build rpms of OpenCPN

I did this for OpenCPN 5.6.2 and its plugins
Built upon wxgtk3.0 everything works fine

But I found that building upon wxgtk 3.1.5 induces some problems that may appear in the next versions of flatpak builds (with wxgtk 3.1.5)
One plugin needs a patch to be built (Climatology_pi : I provided this patch in github)


I tested the stuff by installing plugins one by one (this is possible with a classical install)
1) When Logbook_pi is installed OpenCPN works but after having activated this plugin the simple fact of clicking on its icon in the icons tray induces a segfault

2) Worse the simple fact of installing the rpm of s63 induces an immediate segfault when launching OpenCPN (installing this plugin should add a line in the plugins tab of OpenCPN settings but something seems to go wrong for this)


The problem of wxgtk 3.1.5 is that it is not retro-compatible with wxgtk3.0
some instructions that worked well for wxgtk need to be rewritten !!!
OpenCPN is not alone to be impacted...
filochard is offline   Reply With Quote
Old 29-06-2022, 08:19   #2
Registered User

Join Date: Jun 2017
Posts: 404
Re: warning about building upon wxgtk3.1.x for linux

Quote:
Originally Posted by filochard View Post
Hi

I use to build rpms of OpenCPN

I did this for OpenCPN 5.6.2 and its plugins
Built upon wxgtk3.0 everything works fine

But I found that building upon wxgtk 3.1.5 induces some problems that may appear in the next versions of flatpak builds (with wxgtk 3.1.5)
One plugin needs a patch to be built (Climatology_pi : I provided this patch in github)


I tested the stuff by installing plugins one by one (this is possible with a classical install)
1) When Logbook_pi is installed OpenCPN works but after having activated this plugin the simple fact of clicking on its icon in the icons tray induces a segfault

2) Worse the simple fact of installing the rpm of s63 induces an immediate segfault when launching OpenCPN (installing this plugin should add a line in the plugins tab of OpenCPN settings but something seems to go wrong for this)


The problem of wxgtk 3.1.5 is that it is not retro-compatible with wxgtk3.0
some instructions that worked well for wxgtk need to be rewritten !!!
OpenCPN is not alone to be impacted...


WxWidgets will soon release 3.2.0. They already updated main branch and using version 3.2.0 in it. Their roadmap says this July.
mgrouch is offline   Reply With Quote
Old 29-06-2022, 08:37   #3
Registered User

Join Date: Apr 2022
Posts: 21
Re: warning about building upon wxgtk3.1.x for linux

Using WxWidgets 3.2.0 to build OpenCPN and its plugins will bring new funny things for several linux softwares...


Switching from WxWidgets 3.0 to 3.1.5 brought already the problems to OpenCPN I'm warning about...
(I asked to other projects to modify their code when we discovered that rebuilding with WxWidgets 3.1.5 caused segfaults when they were OK with WxWidgets 3.0)
filochard is offline   Reply With Quote
Old 29-06-2022, 08:59   #4
Registered User

Join Date: Jun 2017
Posts: 404
Re: warning about building upon wxgtk3.1.x for linux

Quote:
Originally Posted by filochard View Post
Using WxWidgets 3.2.0 to build OpenCPN and its plugins will bring new funny things for several linux softwares...


Switching from WxWidgets 3.0 to 3.1.5 brought already the problems to OpenCPN I'm warning about...
(I asked to other projects to modify their code when we discovered that rebuilding with WxWidgets 3.1.5 caused segfaults when they were OK with WxWidgets 3.0)


3.1.x is not considered production ready. It shouldn’t be in any stable distribution anyway
mgrouch is offline   Reply With Quote
Old 29-06-2022, 10:01   #5
Registered User

Join Date: Apr 2022
Posts: 21
Re: warning about building upon wxgtk3.1.x for linux

Hi mgrough

Wxgtk3.1.x versions are used to detect which problems may appear before wxgtk3.2 is published and used for building programs

It's useful for this : for the wxwidgets devs and for the softwares devs

For my personal stable releases of softwares I remain on wxgtk3.0

that doesn't prevent to test what may happen with the future versions and to inform devs :

the patch for Climatology_pi will be useful for the final release of wxgtk3.2.0 : need to add
include <GL/glx.h> inside ClimatologyOverlayFactory.cpp
so that it can be built !
filochard is offline   Reply With Quote
Old 29-06-2022, 12:37   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: warning about building upon wxgtk3.1.x for linux

All...
On linux, we cannot reasonably move to wx32 before it is generally available in linux distro repos. We do not want to package wxWidgets with the app, and we (probably) do not want to build and maintain an OCPN-private multi-arch, multi version, repo for wx32 libraries.


On Windows and MacOS, we bundle wxWidgets with the OCPN installer binary. So, we can move to wx32 on the next OCPN major release, if we want. This will, of course, be painful. All plugins must be rebuilt, and tested, for starters.


My opinion: Let's not be too hasty to move to wx32. Let's understand what features were fixed/improved in wx32 that OCPN actually uses. If there are few, and minor, perhaps no immediate update is needed.


Dave
bdbcat is offline   Reply With Quote
Old 29-06-2022, 15:18   #7
Registered User

Join Date: Apr 2022
Posts: 21
Re: warning about building upon wxgtk3.1.x for linux

Hi Dave
I agree with your cautious approach

The tests that have been done by myself for OpenCPN and its plugins and by other packagers trying to build some other programs upon wxwidgets 3.1.5 or 3.1.6, and to use them after that , revealed lots of problems..

(We explicitely strictly require wxgtk 3.0 to build and use those programs for stable releases)

I wanted only to ring the bell knowing that wxwidgets 3.2.0 will appear soon, and may motivate to switch to it too quickly (thinking about flatpak for instance)

Let's hope that the 3.0 version may remain beside 3.2.0 in linux distributions
filochard is offline   Reply With Quote
Old 04-07-2022, 08:59   #8
Registered User

Join Date: Jun 2017
Posts: 404
Re: warning about building upon wxgtk3.1.x for linux

https://www.wxwidgets.org/news/2022/...ase-candidate/

wxWidgets 3.2.0 Release Candidate
mgrouch is offline   Reply With Quote
Old 07-07-2022, 23:28   #9
Registered User

Join Date: Aug 2016
Posts: 152
Re: warning about building upon wxgtk3.1.x for linux

finally, after 9(!) long years, the next stable release



https://wxwidgets.org/news/2022/07/w...final-release/
BlackSea is offline   Reply With Quote
Reply

Tags
linux


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best boat to live upon? ZeroB12 Fishing, Recreation & Fun 19 24-01-2013 22:05
Casting Your ??????????? Upon the Waters eliems General Sailing Forum 16 20-03-2012 03:45
Can West System Be Trod Upon ? endoftheroad Construction, Maintenance & Refit 9 21-07-2010 14:49
Procedures for Escaping Being Dragged Upon forsailbyowner Seamanship & Boat Handling 7 11-01-2010 10:09
406 EPIRB Replacement upon Activation bruce in oz Health, Safety & Related Gear 10 02-11-2009 20:47

Advertise Here


All times are GMT -7. The time now is 12:04.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.