Cruisers Forum
 


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 24-12-2014, 14:00   #286
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: OpenCPN Beta Version 3.3.2410 Released

Quote:
Originally Posted by bdbcat View Post
nkiesel...

San Mateo buoys...

I made a correction in the latest github.

Does the problem still exist?

Dave
This does not compile for me because of commit 4f98759 which changed code to unconditionally call UseAlpha which is no longer available in (Ubuntu's version of) wx-3.0. (change replaces #if condition around that with 1)

I reverted that single line change, and the resulting binary no longer has the problem. Good work! What was the bug/fix?
nkiesel is offline   Reply With Quote
Old 24-12-2014, 14:07   #287
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,625
Images: 2
Re: OpenCPN Beta Version 3.3.2410 Released

San Mateo Issue
Now I am convinced it is a layering problem. Order of rendering.... background textures then bouys last.

Have now compiled the commits from last 3 of Dec 23 and Dec 24.
Will check again.

No. The problem still exists. I turn off opengl, shutdown, open opencpn,
turn on opengl, slow pan up to the bouys. ...the bouys don't show at all this time. I hit page up and the elements of the chart are redrawn in the proper order and the bouys show.

It is a layering problem, order of rendering.
Problem still exists in Windows.

Could add the two screenshots for you, but they'd be similar to the ones above. If you want them, let me know.
rgleason is online now   Reply With Quote
Old 24-12-2014, 14:41   #288
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: OpenCPN Beta Version 3.3.2410 Released

Pavel,
I have made a local change to allow me to compile and test some mods I have submitted. I have not pushed this changes up with the mods I have made, I just wanted to note that there was a change that may not work. The change in styles.cpp effectively comments out a version check of wxWidgets. The version check is for 2.9.4.

I will see if I can change back to version 2.8 of wxWidgets.

Jon
jongough is offline   Reply With Quote
Old 24-12-2014, 15:05   #289
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: OpenCPN Beta Version 3.3.2410 Released

Quote:
Originally Posted by jongough View Post
Pavel,
I have made a local change to allow me to compile and test some mods I have submitted. I have not pushed this changes up with the mods I have made, I just wanted to note that there was a change that may not work. The change in styles.cpp effectively comments out a version check of wxWidgets. The version check is for 2.9.4.

I will see if I can change back to version 2.8 of wxWidgets.

Jon
I think that commit has to be reverted or reworked, because I can't see that we really want to drop support for wx-3.0 becuase of this. If anything, we should try to drop support for wx-2.8...
nkiesel is offline   Reply With Quote
Old 24-12-2014, 15:10   #290
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: OpenCPN Beta Version 3.3.2410 Released

We never (officially) supported wx3.0 on Linux and Windows. If it's just a question of one #ifdef, the fix is trivial.

Pavel
nohal is offline   Reply With Quote
Old 24-12-2014, 15:18   #291
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: OpenCPN Beta Version 3.3.2410 Released

It is a change to an ifdef, however, there are two files in the commit which was to try and fix a rendering issue. There is a co-requisite change to toolbar.cpp as well, so Dave may need to have another look at it.

Jon

Quote:
Originally Posted by nohal View Post
We never (officially) supported wx3.0 on Linux and Windows. If it's just a question of one #ifdef, the fix is trivial.

Pavel
jongough is offline   Reply With Quote
Old 24-12-2014, 15:35   #292
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: OpenCPN Beta Version 3.3.2410 Released

Happy Christmas.

The above commit doesn't hurt on Mac OS X which HAS TO compiled with wxWidgets >3.0.
However users are soon waiting now 2 years for a new stable version of OpenCPN...
Gerhard
CarCode is offline   Reply With Quote
Old 24-12-2014, 15:59   #293
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: OpenCPN Beta Version 3.3.2410 Released

As far as I can tell
Code:
diff --git a/src/styles.cpp b/src/styles.cpp
index 46930de..e15dce3 100644
--- a/src/styles.cpp
+++ b/src/styles.cpp
@@ -53,7 +53,7 @@ void bmdump(wxBitmap bm, wxString name)
 wxBitmap MergeBitmaps( wxBitmap back, wxBitmap front, wxSize offset )
 {
     wxBitmap merged( back.GetWidth(), back.GetHeight(), back.GetDepth() );
-#if 1 // (!wxCHECK_VERSION(2,9,4) && (defined(__WXGTK__) || defined(__WXMAC__)))
+#if !wxCHECK_VERSION(2,9,4)
 
     // Manual alpha blending for broken wxWidgets platforms.
     merged.UseAlpha();
should make everybody happy, assuming that wx3.0+ is not broken anymore on Linux and Windows, which I can't test...

Pavel
nohal is offline   Reply With Quote
Old 24-12-2014, 15:59   #294
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: OpenCPN Beta Version 3.3.2410 Released

Quote:
Originally Posted by jongough View Post
It is a change to an ifdef, however, there are two files in the commit which was to try and fix a rendering issue. There is a co-requisite change to toolbar.cpp as well, so Dave may need to have another look at it.

Jon
Some googling and looking at the wx-3.0 files seems to indicate that the UseAlpha calls can simply be omitted for 3.0. So one approach would be to rework that commit to have explicit #if just around these.
nkiesel is offline   Reply With Quote
Old 24-12-2014, 16:40   #295
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,395
Re: OpenCPN Beta Version 3.3.2410 Released

rgleason...

Rick.

San Mateo
Please attach your logfile with recent OpenGL entries only.

Thanks
Dave
bdbcat is online now   Reply With Quote
Old 24-12-2014, 17:03   #296
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: OpenCPN Beta Version 3.3.2410 Released

Quote:
Originally Posted by nohal View Post
Jon...
We don't support wx3.0 on Linux as it is still not available on all the mainstream distros, you will have to downgrade to wx2.8 (or put some more #ifdefs in place).

Pavel
Hmm, wx-3.0 used to work for me on Linux for quite some time now (and I removed wx-2.8 some time ago and nerv looked back). This `#if 1` in the source code anyway looks more like a hack than a real fix to me. The proposed

Code:
+#if !wxCHECK_VERSION(2,9,4)
would definitely work for me.
nkiesel is offline   Reply With Quote
Old 24-12-2014, 17:04   #297
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,395
Re: OpenCPN Beta Version 3.3.2410 Released

Folks...

Re wxBitmap::UseAlpha()...

Pavel has the right of it. It seems that alpha channel bitmap support is broken everywhere on wx2.8. We just did not notice it on Windows until I cleaned up the ghosts on the toolbar. Look carefully at the corners of the "Tide" toolbar icon when it is activated. You should "see" transparent pixels making the rounded corners. If you don't then let me know.

Alpha channel bitmap support clearly works on wx3.0.2 for Mac, which is the only wx3 platform we support. Probably OK on Win and linux, too. But right now we don't care about those. Next month maybe...

In github now...

Related comment: If you are building locally and submitting bug reports, please use the same wxWidgets library versions that we will use in production. We are looking for OCPN bugs, not wxWidgets bugs.

You know who you are.....


Thanks
Dave
bdbcat is online now   Reply With Quote
Old 24-12-2014, 17:06   #298
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: OpenCPN Beta Version 3.3.2410 Released

I don't want to hijack this thread but I just tried to check the "wx-3.0 is not officially supported under Linux" on the ocpn web site but links like `http://opencpn.org/ocpn/compiling_source_windows` are broken. I see a Drupal error page instead. Anyone knows what's going on?
nkiesel is offline   Reply With Quote
Old 24-12-2014, 17:14   #299
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: OpenCPN Beta Version 3.3.2410 Released

I got the following warning after a `git pull`:

/home/nkiesel/Projects/OpenCPN/po/opencpn_it_IT.po:4037: format specifications in 'msgid' and 'msgstr' for argument 1 are not the same
/usr/bin/msgfmt: found 1 fatal error

The lines there are

#: src/pluginmanager.cpp:692
#, c-format
msgid "PlugIn [ %s ] version %i.%i"
msgstr "%i.%i versione PlugIn [%s]"

I guess it does not like the argument reordering going on here.
nkiesel is offline   Reply With Quote
Old 24-12-2014, 18:04   #300
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,395
Re: OpenCPN Beta Version 3.3.2410 Released

nkiesel...

I "fixed" the Italian .po file.

In github now

Thanks
Dave
bdbcat is online now   Reply With Quote
Reply

Tags
enc, lease, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
OpenCPN Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 07:43
OpenCPN Beta Version 3.1.802 Released bdbcat OpenCPN 158 14-08-2012 10:07
OpenCPN Beta Version 3.1.714 Released bdbcat OpenCPN 91 01-08-2012 17:08

Advertise Here


All times are GMT -7. The time now is 20:18.


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.