Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 04-03-2017, 09:09   #16
Registered User

Join Date: May 2012
Posts: 863
Re: Compiling OpenCPN for Windows

Tracked down the problems with Community 2015 and a new page has been added to the wiki.

https://opencpn.org/wiki/dokuwiki/do...s2015_workflow

Still very much a work in progress. In particular I was not able to use nmake and the command prompt for building wxWidgets. Needed VS Community 2015 for this. Perhaps this was caused by the edits that were needed to the wxWidgets source files.

Also the issue of the additional dependencies to be added to build OpenCPN needed some work.

The build runs on XP when you have downloaded and run the C++ Redistributable 2015.

Mike
Rasbats is offline   Reply With Quote
Old 04-03-2017, 13:50   #17
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 2,960
Re: Compiling OpenCPN for Windows

Quote:
Originally Posted by nohal View Post
Guys...
Is there something wrong with letting Git handle the Windows CR/LF mess on Windows as we always did and is described in https://opencpn.org/wiki/dokuwiki/do...piling_windows (Paragraph 1.2)
It is completely editor/IDE agnostic and actually works...

Pavel
Of course not, as said Git is the master for line endings as of your excellent manual base. But I suppose it would not harm to describe how to maintain VS2013 in the same direction.
Håkan
Hakan is offline   Reply With Quote
Old 04-03-2017, 13:57   #18
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,490
Re: Compiling OpenCPN for Windows

Let Git enforce line endings.
transmitterdan is offline   Reply With Quote
Old 04-03-2017, 14:01   #19
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,490
Re: Compiling OpenCPN for Windows

I am building with VS2015 and wxWidgets 3.1 from Github. I feel that for newbies VS 2015 is a bridge too far right now. To use wx 3.0.2 I had to edit the wx header files. Also not for the newbie IMO.

VS2015 adds numerous new warnings and wx 3.1 generates lots of traps in debug mode. Am working on clearing all the traps. But will not submit a PR until Dave gets 4.6 out the door. Let's focus on 4.6 until it is ready, again just my opinion.
transmitterdan is offline   Reply With Quote
Old 04-03-2017, 15:55   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 14,431
Re: Compiling OpenCPN for Windows

Pavel,
I like this. When the subject came up and Notepad++ was mentioned should be in CR/LF mode, I realized I had never considered that! So I checked it and I could only find online How to set Notepad++ CR/LR CR and LF characters shown at the end of each line in Notepad++ - Super User

Toggle the setting View > Show Symbol > Show End of Line
Show All Characters should also be unchecked.T
There is also an Icon on Main Notepad++ interface to disable/enable these special characters (under "Run".

So, this afternoon I was wondering if I should issue a new PR for the weatherfax_pi xml updates to Sean. Now I know its not needed! Thank you.

Quote:
Originally Posted by nohal
Guys...
Is there something wrong with letting Git handle the Windows CR/LF mess on Windows as we always did and is described in https://opencpn.org/wiki/dokuwiki/do...piling_windows (Paragraph 1.2)
It is completely editor/IDE agnostic and actually works...

Pavel
Quote:
Windows programs expect their newline format in CRLF (\r\n). *nix expect just LF data (\n). If you open a Unix text document in Notepad on windows, you'll notice that all of the line breaks disappear and the entire document is on one line. That's because Notepad expects CRLF data, and the Unix document doesn't have the \r character.
http://sqlblog.com/blogs/jamie_thoms...g-notepad.aspx

Use Search and Replace

Another option is to go to Edit -> EOL Conversion -> Unix Format.
rgleason is offline   Reply With Quote
Reply

Tags
enc, opencpn, wind

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Compiling in windows using visual studio page not found dinusha OpenCPN 7 25-09-2016 16:17
Linux cross compiling for windows failing jongough OpenCPN 42 29-11-2014 20:09
Compiling OpenCPN Windows 8.1 Ptizef OpenCPN 4 22-07-2014 13:08
Compiling & Debug in Windows MSVC rgleason OpenCPN 1 04-07-2014 17:42
Compiling OpenCPN in Windows useris OpenCPN 20 29-06-2013 07:45

Advertise Here


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


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.