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 27-11-2018, 12:37   #2236
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Deleted the OpenCPN local repository and cloned my OpenCPN repository as "origin", then from cd C:\Compile\Github\OpenCPN\ did

Code:
git remote add upstream git://github.com/OpenCPN/OpenCPN.git
git fetch upstream
git checkout -b upstream/master-local
unpack Opencpn-buildwin-4.99.7z to C:\Compile\Github\OpenCPN\buildwin\
mkdir build
cd build
cmake "Visual Studio 15 2017" -Tv141_xp ..
cmake --build . --config release  - WORKED
cpack           -WORKED
 cmake --build . --config debug   - SAME 30 FAILURES
Also tried "cmake --build ." as in the manual.

What am I missing to compile for Debug?
rgleason is offline   Reply With Quote
Old 27-11-2018, 12:45   #2237
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Beta Test / Technical

Quote:
Originally Posted by rgleason View Post
Rebooted the VM and restarted VirtualBox. Changed to MUI branch and tried to compile for debug. Same 30 errors.
Should I just delete and git clone again?
Rick...
As the linker errors you see have nothing to do with the OpenCPN code, deleting and clonning it again will pretty sure not help you with anything.
What probably will help you is fixing your wxWidgets libraries. That will likely be achieved by following the instructions exactly.

Pavel
nohal is offline   Reply With Quote
Old 27-11-2018, 13:08   #2238
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

I have not copied any of the other files as is done for compiling Opencpn v4.8.8


PS: Thanks Pavel. I just downloaded then from sourceforge and expanded them. Will do it again.
I checked the paths again and they were fine and I had added c:\compile\github\
rgleason is offline   Reply With Quote
Old 27-11-2018, 13:22   #2239
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

I used navnux link and downloaded wxWidgets-3.1.1.7z
and expanded it into c:/wxWidgets-3.1.1 overwriting the earlier version.
Then tried to debug compile and got the same 30 errors.


Is it required that I "Build from source" to successfully compile debug?
Got the answer here:

"Fast way to get started but not suitable for serious development as only release configuration libraries are included."
rgleason is offline   Reply With Quote
Old 27-11-2018, 14:02   #2240
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Under Release Tag 3.1.1 "For Developers"

Quote:
For developing applications with wxWidgets you need to download the compiler-independent wxWidgets-3.1.1_Headers.7z file and one of wxMSW-3.1.1-vcXXX_Dev.7z or wxMSW-3.1.1_gccXXX_Dev.7z files depending on your compiler, its version and the target architecture (x86 if not specified or x64).
For Microsoft Visual Basic 2017 do I need "wxWidgets-3.1.1_Headers.7z" and "wxMSW-3.1.1-vcXXX_Dev.7z"?

I found and downloaded both
  • wxWidgets-3.1.1_Headers.7z
  • wxMSW-3.1.1-vc141_Dev.7z (30mb)
I suppose I extract them to a new github folder wxWidgets-3.1.1 and try to compile them.

So now I've extracted them to "C:\Compile\Github\wxWidgets-3.1.1" but I still have "C:\wxWidgets-3.1.1" and have set paths to that and a system variable. Aren't things going to get confused? Should I move these new files out of Github to "C:\wxWidgets-3.1.1" before compiling?


Have changed it to c:/compille/github/wxWidgets-3.1.1-dev and found this page
OpenCPN Dev Manual "Building from Source"
and Widgets Documentation "Using Cmake"
rgleason is offline   Reply With Quote
Old 27-11-2018, 14:45   #2241
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Under my download wxWidgets-3.1.1-dev I don't find a build/msw directory, as indicated in the Opencpn compile instructions, but I do find this directory in the github wxWidgets repository https://github.com/wxWidgets/wxWidge...ster/build/msw .

Perhaps I should be simply cloning all of https://github.com/wxWidgets/wxWidgets ?

Should I clone it to a location under my github directory or should it be under C:\wxWidgets-3.1.1?

Also I need to know if I am building a bunch of wxWidgets files that are then copied to C:\wxWidgets-3.1.1 to be used when compiling Opencpn, or if the compiler is going to need the path to wxWidgets in order to compile the needed wxWidgets files when compiling Opencpn (I think not).
rgleason is offline   Reply With Quote
Old 27-11-2018, 14:57   #2242
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Beta Test / Technical

Quote:
Originally Posted by bdbcat View Post
steavad...

I don't believe that the newer syntax will produce measurably faster code, anyway.



So there is no real effort (by me) to convert older working code in OCPN to modern c++ syntax. Let it be, and move ahead with features and bug fixes.
I agree.

I like first-class functions with lambda, map, apply, lexical scoping and even continuations, just not in c++. The new syntax may support the y combinator in c++, but it is so horrible to look at, it's better to use a functional language for this. Furthermore, c++ has so many odd features there are few people who know all of them, and in low level language that can poke memory directly, the potential for difficult bugs seems high.

Maybe we should seriously consider porting bits of opencpn into separate libraries, call from other languages, and still have the efficiency for the cpu intensive tasks like chart parsing, graphics etc.. while making development cycle faster and using much more modern user interfaces and the ability to integrate with other programs. Be able to be used in scripts that pull things from charts, or perform weather routing, or generate blended weather maps with charts or even scripts to create video from radar overlay. These type of scripts would only be few dozen lines at most. This would also make it possible to support opencpn rendering on a tile map server, and many other possibilities.
seandepagnier is offline   Reply With Quote
Old 27-11-2018, 15:08   #2243
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

I tried using issuing the Ocpn Dev Manual "nmake..." commands from a created build/msw folder resulting in an error. Then tried the cmake gui as suggested in the wxWidgets manual and the source directory "wxWidgets-3.1.1-dev" does " does not appear to contain CMakeLists.txt." A search of this folder shows that cmakelists.txt does not exist at all.


Another dead end.
Screw it.

rgleason is offline   Reply With Quote
Old 27-11-2018, 15:39   #2244
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Found this from the previous instructions Compile from the command line
Quote:
Run the Developer Command Prompt for VS2013. Go to your wxWidgets build tree (cd C:\wxWidgets-3.0.2\build\msw) and build both release and debug configurations, compatible with Windows XP
Also there is a note about "This assumes that you have Microsoft SDK 7.1A installed on your pc." for XP support. ---Is this still necessary?


This older documentation seems to be clearer about what to do, IMHO
rgleason is offline   Reply With Quote
Old 27-11-2018, 16:24   #2245
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

nmake is compiling now. I downloaded from here for windows and extracted to c:/wxwidgets-3.1.1 as suggested. Windows can download "Latest Devlopment Release 3.1.1"
rgleason is offline   Reply With Quote
Old 27-11-2018, 20:48   #2246
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Well nmake may compile wxWidgets with that source, but OpenCPN debug build still has linker errors, so that the link I gave probably does not have all the files needed.
I'll figure this out in the morning.
rgleason is offline   Reply With Quote
Old 28-11-2018, 03:50   #2247
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

Quote:
Originally Posted by rgleason View Post
Well nmake may compile wxWidgets with that source, but OpenCPN debug build still has linker errors, so that the link I gave probably does not have all the files needed.
I'll figure this out in the morning.


Rick,

I have no issues compiling wxWidgets with either VS2013 or VS2017. It links perfectly with O in release or debug.

Maybe it would be more productive to start a PM conversation. I suspect these “stream of consciousness” postings don’t help anyone.
transmitterdan is offline   Reply With Quote
Old 28-11-2018, 03:54   #2248
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Sorry, its just static. So pleased you have no problem.
rgleason is offline   Reply With Quote
Old 28-11-2018, 09:08   #2249
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

Rick,

I’m willing to help you. Just send a PM.
transmitterdan is offline   Reply With Quote
Old 29-11-2018, 17:42   #2250
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Thanks TDan, it's sorted out now.
rgleason 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
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 15:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 04:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 14:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 16:25

Advertise Here


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


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.