Cruisers Forum
 


Join CruisersForum Today

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 14-04-2010, 08:45   #181
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
Images: 57
Send a message via Skype™ to sinbad7
Dave..

Here is the actual New York-old.kap file if you want to compare:
__________________

__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline  
Old 14-04-2010, 10:02   #182
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
Quote:
Originally Posted by SethDart View Post
While playing with cmake, I had problems compiling because of the GSocket bug already patched a few months ago. IMHO the previous patch is not correct, include wx/socket should be out of the undef:

Code:
Index: include/ais.h
===================================================================
RCS file: /cvsroot/opencpn/opencpn/include/ais.h,v
retrieving revision 1.30
diff -u -r1.30 ais.h
--- include/ais.h    29 Mar 2010 03:17:36 -0000    1.30
+++ include/ais.h    12 Apr 2010 23:47:27 -0000
@@ -144,11 +144,9 @@
 #define GSocket GlibGSocket
 #include <gtk/gtk.h>
 //#include <glib.h>
-#include "wx/socket.h"
 #undef GSocket
-#else
-#include "wx/socket.h"
 #endif
+#include "wx/socket.h"
 ///////////TH100126////////////////
 #include "wx/sound.h"
 
Index: include/nmea.h
===================================================================
RCS file: /cvsroot/opencpn/opencpn/include/nmea.h,v
retrieving revision 1.28
diff -u -r1.28 nmea.h
--- include/nmea.h    29 Mar 2010 02:59:02 -0000    1.28
+++ include/nmea.h    12 Apr 2010 23:47:27 -0000
@@ -121,11 +121,9 @@
 #define GSocket GlibGSocket
 #include <gtk/gtk.h>
 //#include <glib.h>
-#include "wx/socket.h"
 #undef GSocket
-#else
-#include "wx/socket.h"
 #endif
+#include "wx/socket.h"
 ////////////////////TH100126/////////////////
 #include <wx/datetime.h>
Your version doesn't work for me on Kubuntu 9.10, which is why I wrote the original patch the way it is . I still get this compile error when running "make" using your suggestion:
Quote:
........
In file included from src/chcanv.cpp:84:
././include/grib.h:84: warning: ‘typedef’ was ignored in this declaration
In file included from /usr/include/wx-2.8/wx/sckaddr.h:20,
from /usr/include/wx-2.8/wx/socket.h:24,
from ././include/ais.h:152,
from src/chcanv.cpp:92:
/usr/include/wx-2.8/wx/gsocket.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
In file included from /usr/include/wx-2.8/wx/gsocket.h:179,
from /usr/include/wx-2.8/wx/sckaddr.h:20,
from /usr/include/wx-2.8/wx/socket.h:24,
from ././include/ais.h:152,
from src/chcanv.cpp:92:
/usr/include/wx-2.8/wx/unix/gsockunx.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
In file included from ././include/ais.h:152,
from src/chcanv.cpp:92:
/usr/include/wx-2.8/wx/socket.h: In member function ‘wxSocketError wxSocketBase::LastError() const’:
/usr/include/wx-2.8/wx/socket.h:118: error: ‘struct _GSocket’ has no member named ‘GetError’
make: *** [chcanv.o] Error 1
Possibly this could have something to do with differences between the wx installation on Debian/Ubuntu and Fedora! Can you see any way around this using Cmake?

I will have a look at your Cmake file. I have Cmake 2.6 installed on Kubuntu 9.10, but the upcoming Ubuntu 10.4 has 2.8.0 .

Thomas
__________________

__________________
cagney is offline  
Old 14-04-2010, 10:28   #183
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
Quote:
Originally Posted by cagney View Post
Your version doesn't work for me on Kubuntu 9.10, which is why I wrote the original patch the way it is . I still get this compile error when running "make" using your suggestion:
Possibly this could have something to do with differences between the wx installation on Debian/Ubuntu and Fedora! Can you see any way around this using Cmake?
Well, with my patch I still had compile error from time to time. I guess it depends on the order of compiling files.

I had no problems since with this new patch.
Code:
Index: include/ais.h
===================================================================
RCS file: /cvsroot/opencpn/opencpn/include/ais.h,v
retrieving revision 1.30
diff -u -r1.30 ais.h
--- include/ais.h    29 Mar 2010 03:17:36 -0000    1.30
+++ include/ais.h    14 Apr 2010 16:24:41 -0000
@@ -141,14 +141,11 @@
 // newer versions of glib define its own GSocket but we unfortunately use this
 // name in our own (semi-)public header and so can't change it -- rename glib
 // one instead
-#define GSocket GlibGSocket
 #include <gtk/gtk.h>
 //#include <glib.h>
-#include "wx/socket.h"
-#undef GSocket
-#else
-#include "wx/socket.h"
+#define GSocket GlibGSocket
 #endif
+#include "wx/socket.h"
 ///////////TH100126////////////////
 #include "wx/sound.h"
 
Index: include/nmea.h
===================================================================
RCS file: /cvsroot/opencpn/opencpn/include/nmea.h,v
retrieving revision 1.28
diff -u -r1.28 nmea.h
--- include/nmea.h    29 Mar 2010 02:59:02 -0000    1.28
+++ include/nmea.h    14 Apr 2010 16:24:41 -0000
@@ -118,14 +118,11 @@
 // newer versions of glib define its own GSocket but we unfortunately use this
 // name in our own (semi-)public header and so can't change it -- rename glib
 // one instead
-#define GSocket GlibGSocket
 #include <gtk/gtk.h>
 //#include <glib.h>
-#include "wx/socket.h"
-#undef GSocket
-#else
-#include "wx/socket.h"
+#define GSocket GlibGSocket
 #endif
+#include "wx/socket.h"
 ////////////////////TH100126/////////////////
 #include <wx/datetime.h>
If I understand the problem correctly here is what it does: Glib defines GSocket so there's conflict after when including wx/socket.h So we just need to rename Glib's GSochet prior to include wx/socket.h (we only need that one)

Quote:
Originally Posted by cagney View Post
I will have a look at your Cmake file. I have Cmake 2.6 installed on Kubuntu 9.10, but the upcoming Ubuntu 10.4 has 2.8.0 .
It've improved a lot since. I'll post a message with all changes in a few minutes. Thanks for reporting.
__________________
SethDart is offline  
Old 14-04-2010, 11:14   #184
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
CMake progress... (more)

Very easy to use:
Copy both VERSION.cmake & CMakeLists.txt in you CVS root
Copy POTFILES.in in po/
Code:
$ mkdir build
$ cd build
$ cmake ../
$ make
# make install
Features:
- PREFIX can be changed, default is /usr/local
Code:
cmake -DPREFIX=/usr ../
- uses embeded zlib & bzip2 if not found, dynamically linked elseway (this code is only compiled if necessary)
- GTK2 tests included (depend on CMake >= 2.8) easy to include module file in build tree (done here)
- option USE_S57 default ON to enable/disable this part of the code. If disabled, does not compile nor install any of the S57 resource files
- option USE_WIFI_CLIENT default OFF as in original Makefile (undocumented)
- make
compile opencpn and build *.mo in current build dir
- make pot-update
rebuild po/opencpn.pot from source files included in po/POTFILES.in (not yet available on CVS, easy to create with find)
- make po-update
merge each po/*.po with current po/opencpn.pot (updated)
- make i18n
create *.mo from po/*.po into build dir
- make install
install binary, ressources & locale files
- make package
build rpm & deb files ready to use, yes!

CPack for Debian is from Anton Martchukov (antonm)
The requires/depends is expected to be fine for both
I did the RPM part

Comments:
- no test for USE_GLU_TESS yet :-(
- OSX & Win untested
I took all the specific flags from the original file from Dave so it should work on Win ;-)
Attached Files
File Type: doc CMakeLists.txt.doc (18.1 KB, 49 views)
File Type: doc VERSION.cmake.doc (73 Bytes, 41 views)
File Type: doc POTFILES.in.doc (4.3 KB, 38 views)
__________________
SethDart is offline  
Old 15-04-2010, 07:22   #185
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Quote:
Originally Posted by SethDart View Post
Very easy to use:<br />
- OSX &amp; Win untested<br />
I've never used CMake but suppose this will be trivial to fix. When I tried to compile on Win the failure looks like:
Code:
C:\WORK\opencpn\opencpn_cvs\build>cmake ..\
-- Building for: Visual Studio 9 2008
-- Check for working C compiler using: Visual Studio 9 2008
-- Check for working C compiler using: Visual Studio 9 2008 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 9 2008
-- Check for working CXX compiler using: Visual Studio 9 2008 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Building opencpn 2.1.0b331 ***
-- Found wxWidgets: TRUE
-- Could NOT find ZLIB  (missing:  ZLIB_LIBRARIES ZLIB_INCLUDE_DIRS)
-- Could NOT find BZip2  (missing:  BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Using generic cpack package description file.
-- Writing spec file...
-- Configuring done
CMake Error: CMake can not determine linker language for target:zlib
CMake Error: CMake can not determine linker language for target:zlib
CMake Error: CMake can not determine linker language for target:zlib
CMake Error: CMake can not determine linker language for target:zlib
CMake Error: CMake can not determine linker language for target:zlib
-- Generating done
CMake Error: Unknown Target referenced : BZ2
CMake Error: Target: GRIB depends on unknown target: BZ2
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_cs_CZ.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_cs_CZ.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_da_DK.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_da_DK.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_de_DE.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_de_DE.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_es_ES.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_es_ES.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_fr_FR.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_fr_FR.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_it_IT.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_it_IT.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_nl_NL.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_nl_NL.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_pl_PL.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_pl_PL.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_pt_PT.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_pt_PT.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_ru_RU.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_ru_RU.po
CMake Error: Unknown Target referenced : C:/WORK/opencpn/opencpn_cvs/po/opencpn_sv_SE.po
CMake Error: Target: i18n depends on unknown target: C:/WORK/opencpn/opencpn_cvs/po/opencpn_sv_SE.po
-- Build files have been written to: C:/WORK/opencpn/opencpn_cvs/build
Pavel
__________________
nohal is online now  
Old 15-04-2010, 07:26   #186
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
Images: 57
Send a message via Skype™ to sinbad7
Dave..

I've done yet another .kap conversion with my normal converting tools and the resulting chart works perfectly in the 2.1.0 ver.

As I have made no changes to the conversion tools,which now produces readable charts, what could possibly be the reason for not reading most of my previous conversions?
Attached Thumbnails
Click image for larger version

Name:	COZUMEL.jpg
Views:	96
Size:	105.3 KB
ID:	15338  
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline  
Old 15-04-2010, 07:35   #187
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Hi , Dave

A small problem with Opencpn (both 136 and 210-331-window Vista and XP)
When creating a route , if clicking slowly without moving the cursor , it's easy to create 2 WPs whith exactly the same position .
If this route have been saved (exit and reopen or export and re import) and we delete it , one of double WP is not deleted and stay in the base
regards
Jean Pierre
__________________
Ptizef is offline  
Old 15-04-2010, 08:31   #188
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Hi ,

The route manager dialog don't work with windows
I have made some modifications .But ,first I must be clear : I am not a programmer , and I've done this just to learn and understand something about what is a C program . The code is certainly not good , and I do not pretend have solved all problems . Nevertheless , it works with vista and XP . But I do not know what append with others OS
So it's only to play with ...
For those interested , just load , unzip and replace the four files attached , compile and play
regards
Jean Pierre
Attached Files
File Type: doc routemanageredit.zip.doc (48.7 KB, 31 views)
__________________
Ptizef is offline  
Old 15-04-2010, 11:16   #189
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Beta Build 415

Hi, group!

opencpn 2.1.0 Beta 415 is ready for download.

http://www.southbaynetwork.com/opencpn/opencpn_210_setup.exe

Changelog:
40. Improve quilt alogorithm for highly under-zoomed quilts.
41. Correct cm93 cell offset logic. Warning....
42. Correct Makefile.am for new language support.
43. Correct logic for Delete Active track with RouteManager control...again...
44. Correct Down-Arrow key behavior
45. Correct error on logfile rename if no logfile is present.
46. Correct crash on right-click in blank area of quilt.
47. Correct quilt logic to preclude reentrancy/recursion on SENC build.
48. Load Bells sound files on demand only.
49. Tidy up CVS files. Requires build procedure change....
50. Improve small scale viewport algorithms, especially cm93 and chart outlines.
51. Correct BSB chart bug concerning corrupt embedded line index on some charts.
52. Correct COG Up mode on MSW build
53. Modify RouteManagerDialog for basic functionality.
54. Move "DeleteAllRoutes/Tracks" from context menu to RouteManagerDialog
55. Correct for AIS target speed > 102.2 Kts.
56. Correct ASI Query dialog for case where erroneous AIS transponder reports MMSI=0.
57. If AIS port is "None", do not show AIS tool in toolbar.
58. Implement ownship COG/SOG predictor length setting on Toolbox->Settings.
59. Implement basic quilting for cm93 charts.
60. Implement piotr's ideas for improved AIS icon visibility.
61. Implement AIS functionality recommendations regarding slow targets.


Notes:
CVS Updated.

41/59: Some F and G scale cm93 cells contain embedded offsets. These probably came from shifted datum on the original survey data. You can probe these by enabling M_COVR objects in Toolbox->VectorCharts->MarinersStandard->SelectAll, enable Meta objects, and then right click on cm93 chart and look at "coverage" item. Offsets are in attribute "wgsox, wgsoy". Usually zero, sometimes not....

If we apply those offsets univerally, we get the offset problems noted in the previous Beta. If we do not apply the offsets, then some F and G cells are offset in the wrong direction. This becomes clear with quilting of cm93 (item 59).
What to do? We may have reached the ultimate level of accuracy of the cm93 dataset.
Check out your favorite large scale cm93 area, looking for offsets They will be obvious, on the order of hundreds of meters......
This is a real problem, since the affected cells are simply wrong, and potentially dangerous.
Ideas and screenshots encouraged.

53. RouteManagerDialog has basic functionality now. Could do more in this dialog. Ideas encouraged.

Known TODOs:

a. Quilt for TMerc: This needs some discussion. We cannot accurately include a TMerc chart in a Mercator quilt without a costly reprojection of the TMerc chart into Mercator. On the other hand, if all the charts in the quilt are TMerc, then we can build a reasonable TMerc quilt. This will be the case in some Scandinavian areas. This needs coding...
So, how do we handle the mixed-projection case? Ideas?

b. Will (Manimaul) is designing some new icons and UI elements which look to be an improvement in usability, and some sweet eye-candy. Requires some coding to implement, coming next....

c. We could use a "WayPointManagerDialog", similar to the "RouteManagerDialog". Code template is right there. Any takers?

d. Convert to cmake build process. In parallel development/test now. Thanks to sethdart. Will be implemented by next Beta.

Thanks in advance for the feedback
Dave
__________________
bdbcat is offline  
Old 15-04-2010, 11:52   #190
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Hi , Dave
Many thanks for this new version
First test (windows vista) : lot of crashes with CM93 and quilting when wheel scrolling an moving maps
regards
Jen Pierre
__________________
Ptizef is offline  
Old 15-04-2010, 12:12   #191
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Quote:
Originally Posted by bdbcat View Post
...
a. Quilt for TMerc: This needs some discussion. We cannot accurately include a TMerc chart in a Mercator quilt without a costly reprojection of the TMerc chart into Mercator. On the other hand, if all the charts in the quilt are TMerc, then we can build a reasonable TMerc quilt. This will be the case in some Scandinavian areas. This needs coding...
So, how do we handle the mixed-projection case?
...
Dave
I hope better then it is done now...

I would not think to a reprojection in any case, but I guess you can easily handle TMerc with a minimum error (expecially for regional charts or plans).

Ciao, Marco.
__________________
GPS-Marco is offline  
Old 15-04-2010, 12:15   #192
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
Images: 57
Send a message via Skype™ to sinbad7
Thanks Dave... my charts functions again... BUT.. the AIS function is now PERMANENTLY off!! No AIS targets coming in or displaying.
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline  
Old 15-04-2010, 12:52   #193
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Dave
No menu displayed and opencpn blocks (and crashes) when right clicking with quilting and CM93 or BSB (or both)
regards
Jean Pierre
__________________
Ptizef is offline  
Old 15-04-2010, 13:11   #194
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
My posts #190 and 193 : the same results with Vista and XP ,
regards
Jean Pierre
__________________
Ptizef is offline  
Old 15-04-2010, 13:36   #195
Senior Cruiser
 
idpnd's Avatar

Cruisers Forum Supporter

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,551
415 Item 51

C-Map quilting works - in a way? (see attached screenshot)
Attached Thumbnails
Click image for larger version

Name:	Screenshot-1.png
Views:	106
Size:	159.6 KB
ID:	15354  
__________________

__________________
sv Libertalia
idpnd is offline  
Closed Thread

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Version 1.3.5 Beta Technical bdbcat OpenCPN 544 24-03-2010 11:34
OpenCPN Version 1.3.6 Release bdbcat OpenCPN 32 30-01-2010 06:07



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 01:55.


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.