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 29-09-2017, 10:38   #571
Registered User
 
rgleason's Avatar

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

Thanks - I am using Cmake 3.2.2. I see that there is 3.9 available. I guess there is no upgrade notice. I'll upgrade or remove and reinstall.

Is Poedit the same deal. Should I upgrade?
rgleason is offline   Reply With Quote
Old 29-09-2017, 10:59   #572
Registered User
 
transmitterdan's Avatar

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

I try to keep them all up to date.
transmitterdan is offline   Reply With Quote
Old 05-10-2017, 11:51   #573
Registered User
 
rgleason's Avatar

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

TDan, I've updated to the following first by Uninstalling from Control Panel > Programs & Features. Then downloading and installing:
  • cmake-3.9.4-win64-x64.exe
  • Poedit-2.0.4-setup.exe
  • nsis-3.02.1-setup.exe
I assume we should not upgrade even though some have upgraded with mixed results.
  • wxWidgets 3.0.2
  • Visual Studio 2013 Express for Windows Desktop.
What I am finding out is that "NSIS Unicode 2.46.5" from Unicode NSIS is needed because I am getting errrors when I download from Download - NSIS. So at the moment I cannot Package with "cpack" command as it fails.


The errors appear to be related to language ChineseSW and and unsupported_XP_SP_Version set multiple times.
See attached

  • NSISoutput.log
  • project.nsi
  • NSIS.InstallOptions.ini
They don't seem like difficult errors to fix....or should I go back to 2.46.5?
If they are simple discrete steps or changes I can make a note in the Windows Compile Manual here for NSIS v3.02.1 modifications.


Cmake and Poedit seem to be working. I was able to use Poedit and check the Weather_routing French language file for translations, which was the first time I've done that.
Attached Files
File Type: doc NSIS.zip.doc (47.0 KB, 36 views)
rgleason is offline   Reply With Quote
Old 05-10-2017, 12:38   #574
Registered User
 
transmitterdan's Avatar

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

Rick,

You need Unicode NSIS.
transmitterdan is offline   Reply With Quote
Old 05-10-2017, 13:18   #575
Registered User
 
rgleason's Avatar

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

OK, I'll re-install what I had NSIS 2.46.5 Unicode.

I had found Download - NSIS which is NSIS 3.02.1 and is not Unicode.

The most current version of Unicode NSIS on google seems to be nsis-2.46.5-Unicode-setup.exe 2.46.5 Unicode Type-Installer OpSys-Windows Featured which is essentially the same as the link in our Compiling Windows document Unicode NSIS
rgleason is offline   Reply With Quote
Old 10-11-2017, 16:04   #576
Registered User
 
rgleason's Avatar

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

I would like to copy my local Github directory from one computer to another, locating the folder under my "Documents" directory (the same location as the original computer).

Does anyone know if this will work? Are there any changes that need to be made?

I know I will need to update Poedit, Cmake, etc.
rgleason is offline   Reply With Quote
Old 10-11-2017, 20:46   #577
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
I would like to copy my local Github directory from one computer to another, locating the folder under my "Documents" directory (the same location as the original computer).

Does anyone know if this will work? Are there any changes that need to be made?

I know I will need to update Poedit, Cmake, etc.
It probably won't work. You should clone the original repository and then you can copy the build folder from the old location to the new location. Or just rebuild the build folder from scratch whichever is easier.
transmitterdan is offline   Reply With Quote
Old 11-11-2017, 05:02   #578
Registered User

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

Rick...
It of course will work, there is no magic in the Git repository. It does not matter at all where you copy it, same machine, other machine, same location, other location, all the same.
The only thing that may not work after copying is the contents of the build directory generated by cmake. Simply delete it or do not copy it at all.

Pavel
nohal is offline   Reply With Quote
Old 15-01-2018, 12:04   #579
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Git Fork and Pull Process [nohal]

If only someone could guide me through the fork and pull process, it would make life so much easier.
Just ask

Get Git for Windows from Git for Windows and install it.

I suppose you are the owner of the sv-pizzazz Github account in the instructions bellow

Go to https://github.com/ab2nkovs/RMRadar_pi and click on the Fork button (Almost in the top right corner) More info at https://guides.github.com/activities/forking/ (I suppose you know how to do it as you have a fork of radar_pi under your account already)

Go to your machine and open the Developer Command Line (Or how is it called in your VS version) from VisualStudio Tools in your Start menu

Type cd <a directory of your choice for surces files> and hit Enter

Type git clone https://github.com/sv-pizzazz/RMRadar_pi.git and hit Enter

The source code of the plugin will get cloned to <The current directory>\RMRadar_pi

Type cd RMRadar_pi and hit Enter, do not close the command line window

Apply your changes to the source in the tree you just cloned (I suppose you have a tree with your changes somewhere, just copy the changed files over)

Switch back to the command line window and type git status and hit Enter, it should report changed files.

Type git commit -a -m "Changes to allow build on Windows" and hit enter

Type git push and hit Enter, you will be asked for your github account, provide the username and password

Go back to https://github.com/sv-pizzazz/RMRadar_pi, create the pull request by clicking the button

Let us see what you just did

And if any of the steps above is not clear and you get stuck, ask further...

Pavel
rgleason is offline   Reply With Quote
Old 11-02-2018, 14:59   #580
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
About Learning C++

Dave Wrote about Learning C++

Quote:
C++ is like any other language learning exercise. Reading is a lot easier than writing, even if imperfectly. Just like Pascal, C++ is a procedural oriented language. So it can be broken down into step-wise pieces, each of which can be understood independently.

You can pick it up well enough to read OCPN code, and comment intelligently.

Where to start: Jump right in. Pick a smallish piece of OCPN code, and start reading. Maybe something like OCPNPlatform.cpp. Ask questions.

Try this for background: Learn C++
rgleason is offline   Reply With Quote
Old 28-02-2018, 09:01   #581
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Git: Changing "forked from". Is it possible?

Initially I forked stelian's repository because he had important changes that made celestial navigation work. However Sean's repos is the main one.

Is there a way to repoint to sean's repository on my "fork".
https://github.com/rgleason/celestial_navigation_pi

Currently I have these remotes:

rgleason is offline   Reply With Quote
Old 05-03-2018, 16:42   #582
Registered User
 
rgleason's Avatar

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

evendine -Martin
Suggested a good program for figuring out Windows dll dependencies called Dependency walker which might be useful.
Dependency Walker (depends.exe) Home Page

Martin wants to build Opencpn with MSVC2010 and Win7 with dependencies formsvcp100.dll + msvcr100.dll runtime libraries (i.e. the defaults for Visual Studio 2010).

(Most of those available as binaries are msvcp120.dll + msvcr120.dll based, built with VS 2013. Need to use VS 2010 for a number of reasons explained in the thread.)

I had to rebuild my WinXP computer and I upgraded the others to Win10
so I don't have these. Perhaps someone does.
rgleason is offline   Reply With Quote
Old 06-03-2018, 00:03   #583
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,287
Re: Development Debugging Environment - Setup Help

Quote:
had to rebuild my WinXP computer and I upgraded the others to Win10
so I don't have these. Perhaps someone does.
To make life easier for you and others:
Build on W10 acc. to Nohal's instructions. Build the package as well and install on XP. Works fine for me.
And for future ease set it up to VS2017 and wx 3.1. Here's how to: https://github.com/nohal/OpenCPN/wik...n-Windows---O5
As usual are Nohal's instructions very correct and instructive, but you've to read every word. All matters!
Håkan
Hakan is offline   Reply With Quote
Old 06-03-2018, 03:49   #584
Registered User
 
rgleason's Avatar

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

Hakan, for me right now the problem is that I won't be able to compile for v4.2 to v4.8.2. So I will try to have one Win10 machine with current msvc++2013 + wxwidgets 3.0.2 and the other with your suggestion following pavels instructions.
Thanks for the suggestion & info though, its encouraging.
rgleason is offline   Reply With Quote
Old 26-03-2018, 18:34   #585
Registered User
 
rgleason's Avatar

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

Both machines have MSVS++ 2013 and when I git fetch, both machines..

Quote:
C:\Users\..\GitHub\NmeaConverter_pi>git fetch upstream
fatal: unable to access 'https://github.com/rooiedirk/NmeaConverter_pi.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Either my MSVS is out of date see github
Weak cryptographic standards removal notice
Known incompatible clients > Visual Studio"

Or my version of Git is old?
See fairly recent post (1 month) which appears to answer the problem. --> Update Git itself.
https://stackoverflow.com/questions/...eem-to-be-down

Has anyone else had to do this?

Updating to

Git-2.16.2-64-bit
https://git-scm.com/download/win

GitHubDesktopSetup
https://desktop.github.com/
rgleason 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 10:03.


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.