Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-10-2012, 05:53   #106
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Thanks Thomas. I tried zipping and adding a .doc and it would not accept. Also just splitting the file in half hit the 400kb limit for using .doc at the end. I see that if I had used .pdf the 595kb limit would have been ok. It appears txt is only liimited to 1kb It doesn't look like your link worked, can you try again?
__________________

__________________
rgleason is offline   Reply With Quote
Old 21-10-2012, 06:24   #107
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,204
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by rgleason View Post
Thanks Thomas. I tried zipping and adding a .doc and it would not accept. Also just splitting the file in half hit the 400kb limit for using .doc at the end. I see that if I had used .pdf the 595kb limit would have been ok. It appears txt is only liimited to 1kb It doesn't look like your link worked, can you try again?
I hope I have better luck this time...
Edit: Hmmm.... the link works if you click "Size".
Some snafu with the attachments on the forum....
Thomas
Rausch.7z.pdf
__________________

__________________
cagney is offline   Reply With Quote
Old 21-10-2012, 06:39   #108
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

It worked both times...sorry...you click on the "Size". There is no attachment doc below.
__________________
rgleason is offline   Reply With Quote
Old 09-11-2012, 16:02   #109
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

OpenCPN 3.1.1105 beta is out. This is to record how to catch up and build a Debug version, then a Release version which would work with other plugins.

Git -Update files (see the word Supplement doc or this Post)
After issuing CMD , Git fetch and then Git status I was still 145 commits away, so I ended up having to issue git reset --hard origin/master after trying other commands.

Build Debug Version (see word document in the Post above for details)
The first time MS VS C++2010 made a debug build the Opencpn version was still 3.1.919. Then after another git fetch and git reset --hard origin/master with nothing notable happeing, MS VS C++2010 compiled the OpenCpn 3.1.1101 version. It seems to work fine, so I decided to make a Release Build

Build Release Version (see the word doc in this Post for details)
MS VS C++2010 built the release "opencpn.exe" without difficulty. I wanted to use it with the other plugins so I made an Opencpn3.1.1101 directory under Program Files (x86) (with Admin privileges) and copied the following into the Opencpn3.1.1101 folder:
  1. C:\Data-Dir\opencpn-git\build\Release -All files to the new Opencpn3.1.1105 folder
  2. Folders copied from the opencpn-git Release subdir: garminhost.dir, gshhs, ipch, nmea0183.dir opencpn.dir, plugins, s57data, s57enc.dir, uidata, plugins (note on the plugins, the particular plug_in.dll in the Release directory is probably all that is necessary)
  3. Folders copied from a previous Opencpn 3.1.919 release build were share, sounds and tcdata (some of these may not be needed)
  4. Then I put a shortcut to Opencpn.exe on the desktop.
  5. Next I will copy some of the plugins from 3.1.919 to the plugin directory and see if they work.
Perhaps Jesper will have some corrections comments following.



__________________
rgleason is offline   Reply With Quote
Old 01-12-2012, 18:08   #110
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

I recall reading somewhere related to the intensive Mac efforts for successful Compilation that wxWidgets 2.9 is being used. Would this also be the case for Windows builds? If so, should I be updating wxWidgets to the correct version? It seems to compile fine now with 2.8

Thanks
Rick
__________________
rgleason is offline   Reply With Quote
Old 02-12-2012, 00:05   #111
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Development Debugging Environment - Setup Help

Rick...
Stay with 2.8 as the build instructions say, it's the latest stable version and it's the one used on Windows and Linux. On Mac things are a bit different, but don't let it bother you.

Pavel
__________________
nohal is offline   Reply With Quote
Old 04-12-2012, 19:15   #112
Registered User

Join Date: Nov 2012
Posts: 2
Re: Development Debugging Environment - Setup Help

Hi!

I was following the instructions to create the environment, but I can't do this step:

Quote:
Originally Posted by rgleason View Post

12. Building the OpenCPN source
A. From within or Start Visual Studio Command Prompt (2010)
cd \
cd cd C:\<Your Data Directory>\opencpn-git
mkdir build
cd build
cmake -G "Visual Studio 10" ..
B. Note that errors in compiling are found in CMakeCache.txt from C:\<Your Data Directory>\opencpn-git\opencpn (directory for Source files downloaded with git clone command)

C. If it goes well: from within Visual Studio Command Prompt (2010)
cd C:\<Your Data Directory>\opencpn-git\build
cmake --build
I've got the error:

Code:
C:\<Data Directory>\opencpn-git\build>cmake -G "Visual Studio 10" ..
-- *** Build Architecture is i386
-- *** Staging to build opencpn 3.1.1105 ***
-- Found OpenGL...
--     Lib: glu32opengl32
--     Include:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPack
ageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStan
dardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindwxWidgets.cmake:8
31 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:148 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
I've checked my "Environment Variables" and in the PATH variable I have " C:\wxWidgets-2.8.12\lib\vc_dll", so I don't know what's wrong.

Could anyone help me?

I'm sorry if I misunderstood something obvious..

Thank you!
__________________
fzschornack is offline   Reply With Quote
Old 05-12-2012, 07:01   #113
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Check this message under Environment variables
Development Debugging Environment - Setup Help

For wxWidgets should be: " C:\wxWidgets-2.8.12" (need main pointer too)

Quote:
Next Right-click My Computer, select Properties... and on the Advanced tab click on Environment Variables button
"Under user variables for" highlight "Path" select "Edit" and check or add something like the following to the values list:
..C:\Program Files (x86)\Poedit\bin;C:\Program Files (x86)\Git\bin;C:\wxWidgets-2.8.12\lib\vc_dll
These path names must correspond to the program installation paths! Click OK to close the PATH Variable.

Then add several new Variables for:
Variable:"Git" Value: " C:\Program Files (x86)\Git\bin" -Note the (x86) option
Variable: "Poedit" Value: "C:\Program Files (x86)\Poedit\bin" -Note the (x86) option
Variable "WXWIN" Value: "C:\wxWidgets-2.8.12"
Okay this housekeeping and set of pointers to critical programs should be checked and you are then ready.
__________________
rgleason is offline   Reply With Quote
Old 05-12-2012, 07:12   #114
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Here is the writeup again. I couldn't find it in this thread:
Development debugging environment setup help.doc

Also two Supplements:
OpenCPN Debug Environment Setup-Supplement.doc
"Keeping your OPENCPN debug version current and using 'Git"
OpenCPN Debug Environment Setup-Supplement No 2.doc
OpenCpn debug version, Compiling a "Release" version for plugin testing.

See Files Below please.



__________________
rgleason is offline   Reply With Quote
Old 12-12-2012, 17:07   #115
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Note on Building "Debug" and "Release" versions:
If you are having trouble building a Debug version after using git to update to the current master, double check the second command line in Microsoft Visual C++ 2010 Express, has "Debug" rather than "Release" in the drop down window! ...and visa versa, if you are trying to build a "Release" version.
__________________
rgleason is offline   Reply With Quote
Old 25-12-2012, 06:16   #116
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Post from Thomas describes git command to ensure "master branch"

Beta Test / Technical
To get the master updates between beta releases.
Code:
  git clone -b master https://github.com/OpenCPN/OpenCPN.git
Did some tests with the code that I got above and that did not work. This worked perfect

after deleting the old lib OpenCPN. After installing and setting of AISport and shared GPSport everything works 100% on version 3.0.2.
Code:
 git clone -b stable git://github.com/OpenCPN/OpenCPN.git
__________________
rgleason is offline   Reply With Quote
Old 31-12-2012, 09:57   #117
Registered User

Join Date: Nov 2012
Posts: 2
Re: Development Debugging Environment - Setup Help

I actually have this Variable "WXWIN" Value: "C:\wxWidgets-2.8.12" in my Environment variables and even so it doesn't work. I have this entries in my "opencpn-git/build/CMakeCache.txt":

//Cleared.
WX_cored:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_core.lib

//Cleared.
WX_dbgrid:FILEPATH=WX_dbgrid-NOTFOUND

//Cleared.
WX_dbgridd:FILEPATH=WX_dbgridd-NOTFOUND


//Cleared.
WX_expat:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxexpat.lib

//Cleared.
WX_expatd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxexpatd.lib

//Cleared.
WX_gl:FILEPATH=WX_gl-NOTFOUND

//Cleared.
WX_gld:FILEPATH=WX_gld-NOTFOUND


//Cleared.
WX_html:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_html.lib

Maybe the problem is in the wxWidgets compilation, it isn't?

Please, help.

Thank you!
__________________
fzschornack is offline   Reply With Quote
Old 31-12-2012, 10:06   #118
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Development Debugging Environment - Setup Help

fzschornack...
The env variable is OK as the libs are found by cmake as apparent from your post. Missing dbgrid is safe to ignore, gl looks like you did not build WX with OpenGL support enabled (it's the default behaviour when building it) - make sure you followed the steps as described in the OpenCPN build instructions exactly and try to rebuild WX.

Pavel
__________________
nohal is offline   Reply With Quote
Old 03-02-2013, 14:17   #119
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

To get to version 3.11328 I issued git fetch to get current with the master, then git status and I was still behind. So I eventually issued git reset --hard origin/master response was ...at the head. Then went to MS Visual Studio 2010 Express. Loaded it, went to File > Recent projects Picked ...\build\opencpn It processed and during the processing several messages came up saying PO's were external or something do I want to reload from disk. I tried no. Then eventually said yes reload. Things reloaded and it seems to be running in Debug mode.

Can anyone explain what happened?
Were there some updates that I downloaded (external) that were not accepted by someone yet?

__________________
rgleason is offline   Reply With Quote
Old 04-02-2013, 05:52   #120
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 334
Re: Development Debugging Environment - Setup Help

"git fetch" retrieve changes but does not update your local repo. You should issue a "git merge" or "git rebase" after fetching to update you local source (BTW, "git pull" will do fetch+merge in one single command, it should work for most usage). "git reset" does the same but will destroy any changes you did locally...

Now about PO, it's related to translations and requires gettext. IIRC it's optionnal on Windows install but you may have a look at your gettext installation and cmake correctly finding it. The exact message may help us diagnose what's wrong, or not ;-)
__________________

__________________
SethDart is offline   Reply With Quote
Reply

Tags
environment

Thread Tools
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



Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.