Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-01-2014, 04:16   #16
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: Optimized Opencpn: Testers Needed

Sean..
Test report; Attempt to build on Win32-XP
Cmake build: 3 warnings 3 errors.
Thereafter VC10 debug build after copying of needed files and dirs as of earlier versions.
Debug failed. The error:
Code:
pluginmanager.cpp
c:\builds\opencpn\opencpn.sean\include\chcanv.h(228): warning C4305: 'argument' : truncation from 'int' to 'bool'
..\src\pluginmanager.cpp(2754): error C2664: 'wxStaticBitmap::wxStaticBitmap(wxWindow *,wxWindowID,const wxGDIImage &,const wxPoint &,const wxSize &,long,const wxString &)' : cannot convert parameter 3 from 'wxImage' to 'const wxGDIImage &'
          Reason: cannot convert from 'wxImage' to 'const wxGDIImage'
          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  Generating Code...
========== Build: 5 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The complete log's attached.(delete .pdf)
I've no time for the moment to further investigations--will come back.
Please advice if I can change anything to solve the error.
Håkan
Attached Files
File Type: pdf VC10_Debug.txt.pdf (3.1 KB, 14 views)
__________________

__________________
Hakan is offline   Reply With Quote
Old 10-01-2014, 10:20   #17
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,294
Re: Optimized Opencpn: Testers Needed

Hello,

Where is it possible to download a compiled version for W 7 ?

Gilletarom.
__________________

__________________
Gilletarom is offline   Reply With Quote
Old 10-01-2014, 11:21   #18
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: Optimized Opencpn: Testers Needed

Gille...
I can serve you as soon as Sean has corrected some build errors.

Sean...
I managed to pass the error mentioned at #16 by a cast to wxGDIImage but then a couple of other errors occurred and I'm not the man tie them up. I happy to make a new W32 test if you push a new source for test?
Håkan
__________________
Hakan is offline   Reply With Quote
Old 10-01-2014, 11:39   #19
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: Optimized Opencpn: Testers Needed

These 2 fixes restore the compass window to normal. With the 3 fixes identified in post #6 you should have a working OpenCPN.

Code:
diff --git a/src/chart1.cpp b/src/chart1.cpp
index e6b7898..9d3a388 100644
--- a/src/chart1.cpp
+++ b/src/chart1.cpp
@@ -5400,8 +5400,7 @@ void MyFrame::UpdateGPSCompassStatusBox( bool b_force_new )
         
         // check to see if it would overlap if it was in its home position (upper right)
          tentative_pt_in_screen = g_FloatingCompassDialog->GetParent()->ClientToScreen(
-                wxPoint( parent_size.x - size_x - x_offset - cc1_edge_comp,
-                         parent_size.y - size_y + y_offset ) );
+                wxPoint( parent_size.x - size_x - x_offset - cc1_edge_comp, y_offset ) );
         
         tentative_rect = wxRect( tentative_pt_in_screen.x, tentative_pt_in_screen.y, size_x, size_y );
 
diff --git a/src/compasswin.cpp b/src/compasswin.cpp
index 32fc045..8215fe7 100644
--- a/src/compasswin.cpp
+++ b/src/compasswin.cpp
@@ -144,7 +144,7 @@ wxBitmap ocpnFloatingCompassWindow::CreateBmp( bool newColorScheme )
 
     bool b_need_refresh = false;
 
-    if( (bGPSValid && 0) ) {
+    if( (bGPSValid ) ) {
         if( g_bSatValid ) {
             gpsIconName = _T("gps3Bar");
             if( g_SatsInView <= 8 ) gpsIconName = _T("gps2Bar");
Chuck
__________________
ChuckSK is offline   Reply With Quote
Old 10-01-2014, 16:08   #20
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: Optimized Opencpn: Testers Needed

Chuck..
Very good - it works for debug and release. Some test results so far:

Debug:
WinXP OpenGL disabled in ini file:
Crash when enable OpenGl using default properties.
Code:
First-chance exception at 0x0056b2a7 in opencpn.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x0056b2a7 in opencpn.exe: 0xC0000005: Access violation reading location 0x00000000.
The program '[7320] opencpn.exe: Native' has exited with code 0 (0x0).
>Disabled OpenGL again in ini file. That's my normal set up due to low perfomance using OpenGL. But I can use it in earlier versions.


First release copied to standard OpenCPN directory.
WinXP OpenGL disabled in ini file:
Three tests:
> Network connection not working. I'm at home using a AIS feed: ais1.shipraiser.net:6492. No contact. When switching back to org. 3.3.1302 the connection was immediately established.
Log file says:23:44:28: Opening NMEA Datastream TCP:ais1.shipraiser.net:6492 but nothing happens.
> Local UDP connection, to portable original 3.3.1302 is working.
> Crash when enabled OpenGL, now with all preferences disabled. See crash-dump following this link: https://dl.dropboxusercontent.com/u/...9b432fdba2.zip

Gille...
My program file can be downloaded here: https://dl.dropboxusercontent.com/u/....Sean_3.3.1302
(Delete everything after .exe and copy to standard Opencpn dir.

zzzzz-time..
Thanks Håkan
__________________
Hakan is offline   Reply With Quote
Old 10-01-2014, 16:42   #21
Registered User

Join Date: Mar 2010
Location: Wandering around North America
Boat: Defever 43 - Gray Hawk
Posts: 602
Re: Optimized Opencpn: Testers Needed

If someone builds a Windoze exe I'll be happy to test it under W8 but I'm not smart enough to build it myself.
__________________
R.J.(Bob) Evans
M/V Gray Hawk, 43 Defever Offshore Cruiser
http://www.bobandmarilyn.ca
bobofthenorth is offline   Reply With Quote
Old 10-01-2014, 18:38   #22
Senior Cruiser
 
Opie91's Avatar

Join Date: Apr 2009
Location: CT
Boat: C&C 34
Posts: 811
Re: Optimized Opencpn: Testers Needed

Quote:
Originally Posted by bobofthenorth View Post
If someone builds a Windoze exe I'll be happy to test it under W8 but I'm not smart enough to build it myself.
Ditto, but W7
__________________
Opie91 is offline   Reply With Quote
Old 11-01-2014, 00:38   #23
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: Optimized Opencpn: Testers Needed

bobo...,Opie...
You're free to try mine. Use the link in post #20. I'm using WinXP that's true but it should be suitable even for never Windows. Since Chuck could run with OpenGL it could be nice to see if it works also for you. My OpenGL crash could be caused by a code not suitable for my rather stale graphic card.
Håkan
__________________
Hakan is offline   Reply With Quote
Old 11-01-2014, 02:03   #24
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: Optimized Opencpn: Testers Needed

Sean... & all
More observations to continue after notes in post #16:
-Still WinXP and no OpenGL
-I'm at home and alternate between VDR play and a hand-GPS (Serial->USB)
-All notes here are verified to work in original 3.3.1302 but not in 3.3.1302_Sean using the same circumstances.

>I can't say there's any significant difference in performance even if that's a feeling and not based on any statistical test method. But when I not use OpenGL that's possible obvious? The test method was to zoom in/out, moving the chart and toggle around with "F2". (CM93)
>Using VDR-play and switching to "Course UP Mode" works fine but switch back to north-up didn't worked. Course-up is still there irrespective of scale or move actions. Program stop and start did however returned back to north up.
>AIS CPA alarm is not working. The calculations are there since CPA is shown when I chose to view it but no alarm trigging.
>The GPS status indicator is not shown.

To be continued.../Håkan
__________________
Hakan is offline   Reply With Quote
Old 11-01-2014, 05:21   #25
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,294
Re: Optimized Opencpn: Testers Needed

Hello Sean, Hello Hakan,


Thank Hakan, I downloaded your W version that you placed in post #20, in this thread.

This morning (here it is 13h20)

First use with OpenGL ON : Ok
Whith VDR, I read a file : Ok
Then I install nederland ENC chart : Ok
I create a group for these charts : Ok
I displayed some charts : Ok
I use only NL ENC group of chart : Ok
I uncheck "Mosaïc" : Ok
I Zoom ----- and then after correct display, impossible to Zoom +, Impossible to move the chart.
Then Y try to shutdown OCPN and then crash.

A crash report was sent (with my mail adress)
__________________
Gilletarom is offline   Reply With Quote
Old 11-01-2014, 06:47   #26
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 407
Re: Optimized Opencpn: Testers Needed

Sean, hakan,

If you wish, I can create a project into Tracket/Flyspay to get all the reamrks, information, ... about this promising Version of O ?

Serge
__________________
AISEAG is offline   Reply With Quote
Old 11-01-2014, 13:25   #27
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Optimized Opencpn: Testers Needed

AISEAG, I think that would be a good idea. Sean, I am sorry haven't tried it yet, I've been busy. -- Will give it a spin when Hakan and ChuckSK finish testing... ...No, seriously I will try in the next couple of days.
__________________
rgleason is online now   Reply With Quote
Old 11-01-2014, 21:27   #28
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 1,674
Re: Optimized Opencpn: Testers Needed

In the past I have succeeded in building for the Mac (32 bit Intel) by using cmake to output the project to Xcode and then building. I tried using the link in the OP as the repository URL for creating a project with GitX, and it appeared to download a lot, into a folder I named seandepagnier. But the visible directory is empty; there is an invisible folder (.git) but I am not finding the familiar data as in the existing opencpn folder (previously downloaded with GitX and residing in the same directory as seandepagnier folder). GitX does seem to show that I do have it - but where?

I'm happy to make an attempt to build and test but I don't know how to get at the top level - any ideas? Also, does this support 32 and/or 64 bits?

Greg
__________________
CarinaPDX is offline   Reply With Quote
Old 12-01-2014, 01:57   #29
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Re: Optimized Opencpn: Testers Needed

Greg

It sounds to me like a problem with GitX.

You can get the code anyway. Go to https://github.com/seandepagnier/OpenCPN and press the button "Download ZIP".

Thomas
__________________
cagney is offline   Reply With Quote
Old 12-01-2014, 02:55   #30
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: Optimized Opencpn: Testers Needed

Greg,
try to use github.app from GitHub for Mac

Building 32bit or 64bit depends first on your compiler settings (arch i386 or arch x86_64) and second on the used wxWidgets version (2.8.12 for 32bit and 2.9 or higher for 64bit).

Gerhard
__________________

__________________
CarCode is online now   Reply With Quote
Reply

Tags
opencpn, enc

Thread Tools
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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.