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 13-02-2012, 16:52   #1
Marine Service Provider

Join Date: Feb 2012
Location: Vienna, Austria
Boat: Vagabond 47
Posts: 928
OpenCPN Coding

I'm in an early state of an idea an I really want to code a Plugin.
As the whole project is relying on very special hardware I have to
set the first attempt building the plugin for linux only.

BUT:
I tried to compile opencpn-git - latest release with MS-VC 2008 and Eclipse on Ubuntu.

Hmm - just got a lotta errors, the first ones with the wx headers...

So PLEASE let me have a part in coding and let me download a fully working implementation for MS-VC8 or Eclipse CDT with the rquired dirs, files and project-files included...

Would prevent me bothering around for about two days...

Thanks in advance...

willi - fm VIE-AT
moseriw is offline   Reply With Quote
Old 14-02-2012, 00:05   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCPN coding

willi...
Did you follow the instructions at Compiling - Linux | Official OpenCPN Homepage
I'm afraid, I can't give you much more, as nothing more is needed and so I don't have it myself.
If you post the errors you get, we can perhaps help you.

Pavel
nohal is offline   Reply With Quote
Old 14-02-2012, 05:48   #3
Marine Service Provider

Join Date: Feb 2012
Location: Vienna, Austria
Boat: Vagabond 47
Posts: 928
Re: OpenCPN Coding

Thank you Pavel,

Though I have to spend time on building up the IDE for debugging... :-(
Well Ok no problem - thought I could have it easier.

As I said I am working on a project and we want to implement a few really powerful features...

Far to early to speak about... I will keep you informed with the first working Addon.... say in about 2-3 Month..

yrs - willi
moseriw is offline   Reply With Quote
Old 14-02-2012, 05:58   #4
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: OpenCPN Coding

Hi,

Would you mind describing in a few words what you want to achieve?
So no one else start working on similar ideas in-between.
We're a few developers around, with lots of ideas but not much time ;-)
... and someday, instead of adding new features, we should also try to eradicate the stack of bugs/feature request laying down in flyspray. I know some are already working hard on this.

Regards,
Jean-Eudes
SethDart is offline   Reply With Quote
Old 14-02-2012, 07:14   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCPN Coding

willi...

Maybe I don't get you well, but wouldn't it be as simple as
Code:
cmake -G "Eclipse CDT4 - Unix Makefiles" ..
to get you going with Eclipse CDT?

Pavel
nohal is offline   Reply With Quote
Old 14-02-2012, 08:08   #6
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCPN Coding

willi...
I've just tried and it does...
What I did:
Followed the build instructions with the following change:
Code:
cmake -G "Eclipse CDT4 - Unix Makefiles" ..
instead of the normal cmake ..
Then I've read Eclipse CDT4 Generator - KitwarePublic and did the following:
  • opened Eclipse and set the workspace to the dir where I've checked out opencpn
  • Imported the created project file (build/.project) into Eclipse
  • Import project using Menu File->Import
  • Select General->Existing projects into workspace:
  • Browse where your build tree is and select the root build tree directory. Keep "Copy projects into workspace" unchecked.
  • You get a fully functional eclipse project
  • Found how to run a build from Eclipse (I have really seen more intuitive IDEs before) and built.
  • Am looking at a perfectly running OpenCPN executable
  • Now switching back to Vim and CodeBlocks as fast as I can
Hope it helps

Pavel
nohal is offline   Reply With Quote
Old 16-02-2012, 02:42   #7
Marine Service Provider

Join Date: Feb 2012
Location: Vienna, Austria
Boat: Vagabond 47
Posts: 928
Re: OpenCPN Coding

sorry I didnt get an information in my inbox - just reading your valuable inputs... reverting within the next few hours...
moseriw is offline   Reply With Quote
Old 16-02-2012, 02:47   #8
Marine Service Provider

Join Date: Feb 2012
Location: Vienna, Austria
Boat: Vagabond 47
Posts: 928
Re: OpenCPN Coding

Quote:
Originally Posted by SethDart View Post
Hi,

Would you mind describing in a few words what you want to achieve?
So no one else start working on similar ideas in-between.
We're a few developers around, with lots of ideas but not much time ;-)
... and someday, instead of adding new features, we should also try to eradicate the stack of bugs/feature request laying down in flyspray. I know some are already working hard on this.

Regards,
Jean-Eudes
Hello Jean,
well yes to describe it with a few words... I want to include marine radio services like DSC/AIS audio recording of VHF messages, navtex and other services...

depends on an SDR-radio daemon I'm working on.

brgds - willi
moseriw is offline   Reply With Quote
Old 16-02-2012, 03:08   #9
Marine Service Provider

Join Date: Feb 2012
Location: Vienna, Austria
Boat: Vagabond 47
Posts: 928
Re: OpenCPN coding

Quote:
Originally Posted by nohal View Post
willi...
Did you follow the instructions at Compiling - Linux | Official OpenCPN Homepage
I'm afraid, I can't give you much more, as nothing more is needed and so I don't have it myself.
If you post the errors you get, we can perhaps help you.

Pavel
Thank you Pavel,
was fooling around with kubuntu 11.10 the last two days.
Thought it would be a good Idea to get OpenCPN compiled on the commandline first.

1.) problems with wxWidgets wxX11-2.8.8 and wxWidgets-2.9.X latest
configure: error development files for GTK+ and pkg-config

really tried everything... installed gtk-3-dev etc.... errors...

2.) OpenCPN cmake...
GTK2 not found but GTK3 is installed
could not find BZip2 but bzip2 is installed...
cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake
cmake-2.8./Modules/FindBZip2.cmake
....
for my project I checked about 30 configurations from CentOS to Debian..
I wont have a problem to switch my platform for development purps..

Just tell me which OS and configuration you use and I will join your path...

Thank you - willi
moseriw is offline   Reply With Quote
Old 16-02-2012, 03:20   #10
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCPN Coding

willi...
Just one more thing - if you will work on the Windows version, use VS2010 - the next official version of OpenCPN will be built with this toolchain, so you would have to upgrade anyway to provide binary builds.
If you for any reason need to use VS2008 for now, it should probably still more or less (apart from creating a fully working setup package) work for you and you can find the respective old revision of the build instructions at http://opencpn.org/ocpn/node/108/revisions/2194/view

Pavel
nohal is offline   Reply With Quote
Old 16-02-2012, 03:44   #11
Marine Service Provider

Join Date: Feb 2012
Location: Vienna, Austria
Boat: Vagabond 47
Posts: 928
Re: OpenCPN Coding

Quote:
Originally Posted by nohal View Post
willi...
I've just tried and it does...
What I did:
Followed the build instructions with the following change:
Code:
cmake -G "Eclipse CDT4 - Unix Makefiles" ..
instead of the normal cmake ..
Then I've read Eclipse CDT4 Generator - KitwarePublic and did the following:
  • opened Eclipse and set the workspace to the dir where I've checked out opencpn
  • Imported the created project file (build/.project) into Eclipse
  • Import project using Menu File->Import
  • Select General->Existing projects into workspace:
  • Browse where your build tree is and select the root build tree directory. Keep "Copy projects into workspace" unchecked.
  • You get a fully functional eclipse project
  • Found how to run a build from Eclipse (I have really seen more intuitive IDEs before) and built.
  • Am looking at a perfectly running OpenCPN executable
  • Now switching back to Vim and CodeBlocks as fast as I can
Hope it helps

Pavel
sounds good,
will proceed and fetch a new .git for this...
thank you.
moseriw is offline   Reply With Quote
Old 16-02-2012, 04:05   #12
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCPN coding

Quote:
Originally Posted by moseriw View Post
Thank you Pavel,
was fooling around with kubuntu 11.10 the last two days.
Thought it would be a good Idea to get OpenCPN compiled on the commandline first.

1.) problems with wxWidgets wxX11-2.8.8 and wxWidgets-2.9.X latest
configure: error development files for GTK+ and pkg-config

really tried everything... installed gtk-3-dev etc.... errors...

2.) OpenCPN cmake...
GTK2 not found but GTK3 is installed
could not find BZip2 but bzip2 is installed...
cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake
cmake-2.8./Modules/FindBZip2.cmake
....
for my project I checked about 30 configurations from CentOS to Debian..
I wont have a problem to switch my platform for development purps..

Just tell me which OS and configuration you use and I will join your path...

Thank you - willi
willi...
ubuntu/kubuntu is totally OK, I do use it every day. But you really have to follow the instructions provided to build successfully.
Code:
sudo apt-get install git-core cmake gpsd gpsd-clients  libgps-dev build-essential wx-common libwxgtk2.8-dev  libglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev
is absolutely necessary. And no GTK-3, please.

Pavel
nohal is offline   Reply With Quote
Old 16-02-2012, 08:10   #13
Marine Service Provider

Join Date: Feb 2012
Location: Vienna, Austria
Boat: Vagabond 47
Posts: 928
Re: OpenCPN Coding

Ähhm - sorry - That was really a RTFM case. I do apologize... installed the packages an the build went ok.

purged all GTK-3 packages....
looks like only one remaining tiny problem...
I do need the wx headers and added an include for /usr/include/wx-2.8
which solved previous errors with wx

but now I got stuck with wx/setup.h which definitively is not there.
and on an previous attempt I got an error about myiso8211.h missing.
Tried to locate it in the include directory but it is missing too.

Though I think that it could be that the sources maybe incomplete too.

And again thank you very much for your support.

brgds - willi
moseriw is offline   Reply With Quote
Old 16-02-2012, 08:17   #14
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: OpenCPN Coding

willi...
could you post output from
Code:
sudo find / -name setup.h|grep wx
?
On my Ubuntu 11.10 system:
Code:
nohal@KNUT:~/source/OpenCPN/build$ sudo find / -name setup.h|grep wx
[sudo] password for nohal: 
/home/nohal/source/chroot/oneiric_armel/usr/lib/wx/include/base-unicode-release-2.8/wx/setup.h
/home/nohal/source/chroot/oneiric_armel/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h
/usr/lib/wx/include/base-unicode-debug-2.8/wx/setup.h
/usr/lib/wx/include/base-unicode-release-2.8/wx/setup.h
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h
/usr/lib/wx/include/gtk2-unicode-debug-2.8/wx/setup.h
Those instructions really work, believe me, but you really have to follow ALL the steps they contain.

Pavel
nohal is offline   Reply With Quote
Old 16-02-2012, 09:54   #15
Marine Service Provider

Join Date: Feb 2012
Location: Vienna, Austria
Boat: Vagabond 47
Posts: 928
Re: OpenCPN Coding

I will follow your instructions line by line...
revert with the efforts tomorrow until noon..


/usr/lib/wx/include/base-unicode-release-2.8/wx/setup.h
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h

seems it is missing in the build path's. Anyways I will follow your instructions xactly and revert tomorrow noon.

Thank you
brgds wiilli
moseriw is offline   Reply With Quote
Reply

Tags
opencpn


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
Open CPN and Google Earth bgrimwade OpenCPN 19 09-12-2011 15:32
OpenCPN Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 18:14
OpenCPN Stops Running BobLarkin OpenCPN 2 30-08-2011 23:38
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


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


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.