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 08-12-2009, 02:22   #1
Registered User
 
inSaNo's Avatar

Join Date: Dec 2009
Location: Almere, The Netherlands
Boat: Hallberg Rassy 31 Monsun #244 "Aquarius"
Posts: 24
Send a message via MSN to inSaNo
Compiling OpenCPN on Fedora 12

Hi all,

I'm new here, and i registered because of the program called openCPN.
I recently purchased an Asus EEEpc, with windows 7 starter on it. Only because of the navigation software, which only works on windows.

I read about openCPN, and i had to give it a try.. Wiped the EEEpc, and installed fedora 12

Currently i'm trying to compile openCPN, but it looks like something is borked in wx_widgets?

Here is my output:
Code:
[root@eeepc opencpn-1.3.4]# ./configure --prefix=/usr/local/opencpn
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for SSP support/disable... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for useable OpenGLU Library
checking for gluNewTess in -lGLU... yes
checking wxWidgets wx-config... wx-config
checking wxWidgets version... 2.8.10
checking for wxWidgets location... /usr
checking for wxWidgets release (major, minor) number... 2.8
checking for wxWidgets setup header... /usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h
checking for __WXX11__... no
checking for __WXGTK__... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes
checking for libgtk2.0-dev include files... yes
checking for cairo.h in include path... yes
checking for GTK+-2.0 test compile and run... 
checking for GTK+ version... 
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.18.3)
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
[root@eeepc opencpn-1.3.4]# make
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"opencpn\" -DVERSION=\"0.1\" -DINSTALL_PREFIX=\"/usr/local/opencpn\" -I. -I././include -I././src/nmea0183 -I/usr/X11R6/include -I././src/mygdal  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wall -g -DocpnUSE_GTK_OPTIMIZE -DUSE_S57 -DUSE_GLU_TESS  -Wall -g -fexceptions -fno-stack-protector -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -MT bbox.o -MD -MP -MF .deps/bbox.Tpo -c -o bbox.o `test -f 'src/bbox.cpp' || echo './'`src/bbox.cpp
mv -f .deps/bbox.Tpo .deps/bbox.Po
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"opencpn\" -DVERSION=\"0.1\" -DINSTALL_PREFIX=\"/usr/local/opencpn\" -I. -I././include -I././src/nmea0183 -I/usr/X11R6/include -I././src/mygdal  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wall -g -DocpnUSE_GTK_OPTIMIZE -DUSE_S57 -DUSE_GLU_TESS  -Wall -g -fexceptions -fno-stack-protector -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -MT ocpn_pixel.o -MD -MP -MF .deps/ocpn_pixel.Tpo -c -o ocpn_pixel.o `test -f 'src/ocpn_pixel.cpp' || echo './'`src/ocpn_pixel.cpp
mv -f .deps/ocpn_pixel.Tpo .deps/ocpn_pixel.Po
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"opencpn\" -DVERSION=\"0.1\" -DINSTALL_PREFIX=\"/usr/local/opencpn\" -I. -I././include -I././src/nmea0183 -I/usr/X11R6/include -I././src/mygdal  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wall -g -DocpnUSE_GTK_OPTIMIZE -DUSE_S57 -DUSE_GLU_TESS  -Wall -g -fexceptions -fno-stack-protector -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -MT chart1.o -MD -MP -MF .deps/chart1.Tpo -c -o chart1.o `test -f 'src/chart1.cpp' || echo './'`src/chart1.cpp
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/nmea.h:94,
                 from src/chart1.cpp:221:
/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/nmea.h:94,
                 from src/chart1.cpp:221:
/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/nmea.h:94,
                 from src/chart1.cpp:221:
/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: *** [chart1.o] Error 1
Does anyone have this issue too, and how can it be resolved?
__________________
Hallberg Rassy 31 Monsun #244 "Aquarius"
Weblog: https://www.monsun.nl
inSaNo is offline   Reply With Quote
Old 08-12-2009, 02:45   #2
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
AFAIK, this is a known wxwidgets bug. This procedure here fixed it on my Ubuntu 9.10. Good luck.

Otherwise, you may wish to use one of the 1.3.4 release packages for testing?
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 08-12-2009, 02:53   #3
Registered User
 
inSaNo's Avatar

Join Date: Dec 2009
Location: Almere, The Netherlands
Boat: Hallberg Rassy 31 Monsun #244 "Aquarius"
Posts: 24
Send a message via MSN to inSaNo
Hi,

Yes, i found out that it was a bug.. GSocket was added from glib 2.22.x, and i this is a typedef conflict. It should be fixxed in the new wxGTK which i have installed, but it looks like its not..

I'm trying your workaround now.. as long as it works, im fine with that.

I have downloaded 1.3.4 from the website, so i assume this is the latest version?
__________________
Hallberg Rassy 31 Monsun #244 "Aquarius"
Weblog: https://www.monsun.nl
inSaNo is offline   Reply With Quote
Old 08-12-2009, 03:01   #4
Registered User
 
inSaNo's Avatar

Join Date: Dec 2009
Location: Almere, The Netherlands
Boat: Hallberg Rassy 31 Monsun #244 "Aquarius"
Posts: 24
Send a message via MSN to inSaNo
Ok, the program is installed, and running..
Now i have to figure out why the charts are not showing..

I added this folder:
1810 IJsselmeer met Randmeren en Noordzeekanaal/

and it has these charts:
18101.bmp
18101.wcd
18102.bmp
18102 het ij.bmp
18102 het ij.wcd
18102 houthaven.bmp
18102 houthaven.wcd
18102 ijmuiden.bmp
18102 ijmuiden.wcd
18102.wcd
18102 zaandam.bmp
18102 zaandam.wcd
18103 almere haven.bmp
18103 almere haven.wcd
18103.bmp
18103 durgerdam.bmp
18103 durgerdam.wcd
18103 hollandse brug.bmp
18103 hollandse brug.wcd
18103 huizen.bmp
18103 huizen.wcd
18103 muiden.bmp
18103 muiden.wcd
18103 muiderzand.bmp
18103 muiderzand.wcd
18103 naarden.bmp
18103 naarden.wcd
18103 uitdam.bmp
18103 uitdam.wcd
18103.wcd
18104 andijk.bmp
18104 andijk.wcd
18104.bmp
18104 breezanddijk.bmp
18104 breezanddijk.wcd
18104 den oever.bmp
18104 den oever.wcd
18104 enkhuizen.bmp
18104 enkhuizen.wcd
18104 hindeloopen.bmp
18104 hindeloopen.wcd
18104 kornwerderzand.bmp
18104 kornwerderzand.wcd
18104 lelystad2.bmp
18104 lelystad2.wcd
18104 lelystad.bmp
18104 lelystad.wcd
18104 lemmer.bmp
18104 lemmer.wcd
18104 makkum.bmp
18104 makkum.wcd
18104 medemblik.bmp
18104 medemblik.wcd
18104 oude zeug.bmp
18104 oude zeug.wcd
18104 stavoren.bmp
18104 stavoren.wcd
18104 urk.bmp
18104 urk.wcd
18104.wcd
18105.bmp
18105 broekerhaven.bmp
18105 broekerhaven.wcd
18105 edam.bmp
18105 edam.wcd
18105 gouwzee.bmp
18105 gouwzee.wcd
18105 hoorn.bmp
18105 hoorn.wcd
18105 marken.bmp
18105 marken.wcd
18105 monnickendam.bmp
18105 monnickendam.wcd
18105 volendam.bmp
18105 volendam.wcd
18105.wcd
18106.bmp
18106 eemmond.bmp
18106 eemmond.wcd
18106 harderwijk.bmp
18106 harderwijk.wcd
18106 nijkerk.bmp
18106 nijkerk.wcd
18106 nulde.bmp
18106 nulde.wcd
18106 spakenburg.bmp
18106 spakenburg.wcd
18106.wcd
18106 wolderwijd.bmp
18106 wolderwijd.wcd
18106 zeewolderhoek.bmp
18106 zeewolderhoek.wcd
18107.bmp
18107 bremerbergsehoek.bmp
18107 bremerbergsehoek.wcd
18107 elburg.bmp
18107 elburg.wcd
18107 harderwijk.bmp
18107 harderwijk.wcd
18107 riviera beach.bmp
18107 riviera beach.wcd
18107 roggebotsluis.bmp
18107 roggebotsluis.wcd
18107.wcd
18108.bmp
18108 kampen.bmp
18108 kampen.wcd
18108 ketelmond.bmp
18108 ketelmond.wcd
18108 schokkerhaven.bmp
18108 schokkerhaven.wcd
18108.wcd

Why does the tool say "No chart available" ?
__________________
Hallberg Rassy 31 Monsun #244 "Aquarius"
Weblog: https://www.monsun.nl
inSaNo is offline   Reply With Quote
Old 08-12-2009, 03:21   #5
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
I assumed youre compiling from CVS, you could take the precompiled package otherwise..

The Dutch charts are published for free aren't they? Just make sure you get the vector version, I think the ones you've got are raster charts in a format unsupported by opencpn.. unless you manage to convert them to BSB format in some fashion.

By the way I took a [German] sailing exam up in Stavoren the other day, quite enjoyable setting
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 08-12-2009, 03:26   #6
Registered User
 
inSaNo's Avatar

Join Date: Dec 2009
Location: Almere, The Netherlands
Boat: Hallberg Rassy 31 Monsun #244 "Aquarius"
Posts: 24
Send a message via MSN to inSaNo
I downloaded the source file from sourceforge.

These charts are not free, but they are raster charts.. Too bad they are not supported. So now i need to figure out how to convert them..

The risserver.nl charts are experimental, and i tried downloading some before, but could not use them in my windows based application, i'll try to use one in openCPN.

This thread was about compiling openCPN, and that works. So this one can be closed.. Tnx
__________________
Hallberg Rassy 31 Monsun #244 "Aquarius"
Weblog: https://www.monsun.nl
inSaNo is offline   Reply With Quote
Old 08-12-2009, 03:34   #7
Registered User
 
inSaNo's Avatar

Join Date: Dec 2009
Location: Almere, The Netherlands
Boat: Hallberg Rassy 31 Monsun #244 "Aquarius"
Posts: 24
Send a message via MSN to inSaNo
Ah, i tried the risserver charts, and they work: but, there is less information on these charts than on the ones i bought.. so i dont recommend using these charts for real!
Some shallow parts are not even specified on these maps..
__________________
Hallberg Rassy 31 Monsun #244 "Aquarius"
Weblog: https://www.monsun.nl
inSaNo is offline   Reply With Quote
Old 08-12-2009, 03:41   #8
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
What's the WCL chart format? I think it works in Seaclear doesn't it?
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 08-12-2009, 04:02   #9
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
I've just realised its wci from seaclear, there's a thread here for conversion (recalibration) to BSB standards
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 08-12-2009, 04:09   #10
Registered User
 
inSaNo's Avatar

Join Date: Dec 2009
Location: Almere, The Netherlands
Boat: Hallberg Rassy 31 Monsun #244 "Aquarius"
Posts: 24
Send a message via MSN to inSaNo
Oh, nice.. reading that thread now..

The charts where provided with a tool called waypointsGPS.

A .wcd file looks like this:
Code:
#WaypointsGPS2#
Name = 1810.01 Overzichtskaart IJsselmeer
File = 18101.bmp
Datum = WGS-84
DateRevision = 0:00:00
Description = Overzichtskaart IJsselmeer
Width =  2232
Height =  3177
Lat1 =  53.3333244167471
Lon1 =  4.66666666666667
Lat2 =  52.0833243068799
Lon2 =  6
Projection = Mercator
Grid = Geo
X1 =  252
Y1 =  266
X2 =  2028
Y2 =  3007
EdgeLeft =  128
EdgeTop =  117
EdgeRight =  2104
EdgeBottom =  3037
Level =  1
__________________
Hallberg Rassy 31 Monsun #244 "Aquarius"
Weblog: https://www.monsun.nl
inSaNo is offline   Reply With Quote
Reply


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 General bdbcat OpenCPN 1918 20-04-2024 07:12
OpenCPN bdbcat OpenCPN 1343 19-09-2009 15:59
OpenCPN with BSB v4 selkie Navigation 4 03-08-2009 11:32

Advertise Here


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


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.