Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 15-09-2019, 16:18   #601
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

VS2017 is still actively supported by Microsoft. Updates are still coming. It is possible to have VS2017 and VS2019 installed side by side. So I think we can count on VS2017 for a little while longer.
transmitterdan is offline   Reply With Quote
Old 18-09-2019, 17:58   #602
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Development Debugging Environment - Setup Help

Well, actually, I was using the wrong version of opencpn.lib. It turns out it was probably opencpn.lib for v4.99, now using opencpn.lib for v5.00 this Include is not needed in my environment. Now things are squared away I think.

Quote:
Originally Posted by rgleason View Post
Adding to the Environment


INCLUDE C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\


Seems to have fixed it.
rgleason is offline   Reply With Quote
Old 18-09-2019, 18:06   #603
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

I have updated my RPi3 to latest experimental firmware and latest apt-get dist-upgrade. It is much faster and O seems pretty stable and snappy.

However, Now O will not build from source neither master or V5.0.x branches. There is an undeclared glx function. Does anybody else see this too?
transmitterdan is offline   Reply With Quote
Old 19-09-2019, 02:56   #604
Registered User

Join Date: Aug 2016
Posts: 152
Re: Development Debugging Environment - Setup Help

Quote:
It is much faster and O seems pretty stable and snappy.
how did you measure it? or is that subjective perception?


Quote:
Now O will not build from source neither master or V5.0.x branches. There is an undeclared glx function. Does anybody else see this too?
No. Works well with following set of packages
Code:
 cmake,
 libarchive-dev,
 libbz2-dev,
 libcurl4-gnutls-dev,
 libelf-dev,
 libexif-dev,
 libgdk-pixbuf2.0-dev,
 libgtk2.0-dev,
 liblz4-dev,
 liblzma-dev,
 libpango1.0-dev,
 libsqlite3-dev,
 libtinyxml-dev,
 libunarr-dev,
 libwxgtk3.0-dev,
 libwxsvg-dev,
 portaudio19-dev,
 alsa-utils,
 libjpeg-dev,
 libsndfile1-dev
BlackSea is offline   Reply With Quote
Old 19-09-2019, 05:01   #605
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Development Debugging Environment - Setup Help

TransmitterDan,
In tactics plugin I got errors that may be related


$ if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
install.1
Quote:
2.44s$ sudo apt-get -qq update
0.47s$ sudo apt-get install libwxgtk3.0-dev libwxgtk3.0-0 libgps-dev libglu1-mesa-dev libgtk2.0-dev libbz2-dev libtinyxml-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libwxgtk3.0-0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libwxgtk3.0-0v5:i386 libwxgtk3.0-0v5
E: Package 'libwxgtk3.0-0' has no installation candidate
The command "sudo apt-get install libwxgtk3.0-dev libwxgtk3.0-0 libgps-dev libglu1-mesa-dev libgtk2.0-dev libbz2-dev libtinyxml-dev" failed and exited with 100 during .
Your build has been stopped.

I changed the lib used to those suggested.
rgleason is offline   Reply With Quote
Old 19-09-2019, 10:33   #606
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by rgleason View Post
TransmitterDan,
In tactics plugin I got errors that may be related


$ if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
install.1



I changed the lib used to those suggested.
Rick,

You need to use the same wx version as what you used to build o. It may be you have 2 versions of wxWidgets or something is wrong with tactics_pi cmake commands. It’s looking for a version of wx but can’t find it.
transmitterdan is offline   Reply With Quote
Old 19-09-2019, 10:35   #607
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by BlackSea View Post
how did you measure it? or is that subjective perception?



No. Works well with following set of packages
Code:
 cmake,
 libarchive-dev,
 libbz2-dev,
 libcurl4-gnutls-dev,
 libelf-dev,
 libexif-dev,
 libgdk-pixbuf2.0-dev,
 libgtk2.0-dev,
 liblz4-dev,
 liblzma-dev,
 libpango1.0-dev,
 libsqlite3-dev,
 libtinyxml-dev,
 libunarr-dev,
 libwxgtk3.0-dev,
 libwxsvg-dev,
 portaudio19-dev,
 alsa-utils,
 libjpeg-dev,
 libsndfile1-dev
I found the issue. Latest RPi libraries for GTK are organized now like QT so had to rework a #if defined to get the right header file included. I’ll verify the fix is ok and create a minor PR against master.
transmitterdan is offline   Reply With Quote
Old 19-09-2019, 11:37   #608
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

The RPi 3 is usable. But now I’m having an issue with X11 taking a crash after about an hour. But it doesn’t seem to be anything to do with OpenCPN. I use VNC viewer in headless mode.
transmitterdan is offline   Reply With Quote
Old 19-09-2019, 15:55   #609
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by transmitterdan View Post
Rick,

You need to use the same wx version as what you used to build o. It may be you have 2 versions of wxWidgets or something is wrong with tactics_pi cmake commands. It’s looking for a version of wx but can’t find it.

also depends on the correct opencpn.lib perhaps that was it?



Yes, I do have both wxWidgets 3.0.2 and 3.1.2 on the machine, but all of my environment paths and variables WxDIR, WxWIN & Wxwidgets_Root_Dir point to wxWidgets 3.1.2!
rgleason is offline   Reply With Quote
Old 19-09-2019, 16:38   #610
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Development Debugging Environment - Setup Help

BTW, the statement said,


Quote:
Package libwxgtk3.0-0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libwxgtk3.0-0v5:i386 libwxgtk3.0-0v5

I took it to mean that it "has been obsoleted" or deprecated. I'll try it the other way again.
rgleason is offline   Reply With Quote
Old 19-09-2019, 17:44   #611
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Development Debugging Environment - Setup Help

TDan, This is about a Travis build for linux. The package libwxgtk3.0-0 was not available. Period. It has nothing to do with wxwidgets version or anything. Please see this failure.

E: Package 'libwxgtk3.0-0' has no installation candidate
The change fixed it.

https://travis-ci.org/rgleason/tacti...m=notification

I believed this would help you with your problem.

Sorry I got of track, thinking you were talking about windows, which of course does not apply.
rgleason is offline   Reply With Quote
Old 29-09-2019, 05:59   #612
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Development Debugging Environment - Setup Help

TDan you were right, travis file was setup for compiling the old opencpn v4.8.8 version and the wrong wxwidgets.


On another problem, getting two "get" errors for major and minor version numbers in tactics pi, when my remote compiled fine, the solution was to remove the old unused version.h in the src directory. This was suggested by Jon Gough and it worked.
rgleason is offline   Reply With Quote
Old 27-10-2019, 03:01   #613
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 560
Re: Development Debugging Environment - Setup Help

Hi!

I get a bit confused when I am to download wxWidgets for building OpenCPN.
I am having trouble choosing the correct 7z-file.

https://github.com/wxWidgets/wxWidgets/releases

There are files with :
vc90
vc100
vc110
vc140
vc141

Which should I download ?
Doesn't it matter if I stick 2 one of them for all my builds ?

I have a 64 bit machine so it should be a x64-file. That I understand.
Should it be the ReleasePDB or Dev-file ?

/Hans
hasse_A is offline   Reply With Quote
Old 27-10-2019, 05:21   #614
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Development Debugging Environment - Setup Help

None of these, follow the instructions from https://opencpn.org/wiki/dokuwiki/do...piling_windows
nohal is offline   Reply With Quote
Old 27-10-2019, 06:24   #615
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 560
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by nohal View Post
None of these, follow the instructions from https://opencpn.org/wiki/dokuwiki/do...piling_windows
Yes, of course that's what I am following. Is there any other document I mistakenly could be using ?

In the document mentioned it says on page 2 "Building wxWidgets from source is required for OpenCPN Debug builds."
and "Download the current source code release from https://github.com/wxWidgets/wxWidgets/releases"

Reading there it says "For Developers" We are developing, are we not ?
"For developing applications with wxWidgets you need to download the compiler-independent wxWidgets-3.1.2_Headers.7z file and one of wxMSW-3.1.2-vcXXX_Dev.7z or wxMSW-3.1.2_gccXXX_Dev.7z files depending on your compiler, its version and the target architecture (x86 if not specified or x64)."

Is this not true ?

You say that I should not download any Dev-file but you give me no hint of what I should download.
Perhaps it's obvious for you guys who are compiling OpenCPN or/and plugins all the time but not for me who set up the development environment once a year or so.

/Hans
hasse_A is offline   Reply With Quote
Reply

Tags
environment


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


Advertise Here


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


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.