Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 25-08-2012, 09:19   #46
Registered User
 
rgleason's Avatar

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

Quote:
Gettext

Install Poedit from Poedit - it's version of gettext is the best available out there.
Add gettext to your PATH - if you installed Poedit, right-click My Computer, select Properties... and on the Advanced tab click on Environment Variables button and add C:\Program Files\Poedit\bin to the PATH system variable
I do have this path variable, I checked again. I will try to restart the cmd prompt, but I had this path before.
__________________

__________________
rgleason is online now   Reply With Quote
Old 25-08-2012, 09:24   #47
Registered User

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

If you issue type msgfmt on the command line and hit Enter, what happens?
__________________

__________________
nohal is offline   Reply With Quote
Old 25-08-2012, 10:10   #48
Registered User
 
rgleason's Avatar

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

Quote:
Gettext

Install Poedit from Poedit - it's version of gettext is the best available out there.
Add gettext to your PATH - if you installed Poedit, right-click My Computer, select Properties... and on the Advanced tab click on Environment Variables button and add C:\Program Files\Poedit\bin to the PATH system variable
Shut down everything and rebooted, checked path.

Variable: PATH
Value: C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\:C:\Program Files\Poedit\bin;C:\Program Files (x86)\Git\bin;C:\wxWidgets-2.8.12\lib\vc_dll
__________________
rgleason is online now   Reply With Quote
Old 25-08-2012, 10:12   #49
Registered User
 
rgleason's Avatar

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

cmd , cd \ , msgfmt <enter>

Prompt: 'msgfmt' is not recognized as an internal or external command, operable program or batch file.
__________________
rgleason is online now   Reply With Quote
Old 25-08-2012, 10:13   #50
Registered User

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

I see an error:
":" in front of C:\Program Files\Poedit\bin
has to be ";"
Also, as you have a 64-bit system, poedit could be in C:\Program Files (x86) - check it locally...
__________________
nohal is offline   Reply With Quote
Old 25-08-2012, 10:18   #51
Registered User
 
rgleason's Avatar

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

at cd C:\Program Files (x86)\Poedit\bin
execute xgettext
prompt system error "the program can't start because the libgettextscr-0-18-1.dll is missing from your computer. Try reinstalling to fix this problem."

Which I will do next. (Part of the general failure and restoration? Who knows.)
__________________
rgleason is online now   Reply With Quote
Old 25-08-2012, 10:22   #52
Registered User
 
rgleason's Avatar

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

Downloaded poedit-1.5.2-setup.exe again and ran it.
Seemed to install fine. Will then try the build again in awhile.
Thanks Pavel, and others you've been very patient with me.


Will also fix that error in PATH variable. Thanks Pavel. Text gets too small for me sometimes.
__________________
rgleason is online now   Reply With Quote
Old 25-08-2012, 11:55   #53
Registered User
 
rgleason's Avatar

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

Also found out that Poedit installed under Program Files (x86), just as you predicted. - Perhaps the instructions should mention this too for Window7x64bit systems. ...made PATH change of course.
__________________
rgleason is online now   Reply With Quote
Old 25-08-2012, 12:12   #54
Registered User
 
rgleason's Avatar

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

Ran MS Visual Studio 2010 command prompt.
cd \ to get to root
cd c:\Data-Dart\Up-Soft\Navigation\opencpn-git\build
cmake -G "Visual Studio 10" ...

And it seemed to compile successfully! Harrah.
Thank you Pavel. It did not help for me to make some dumb mistakes.

Did not seem to find GTK2 or the tinyxml library.
Is there something I can do about that?

http://tgp-architects.com/OpenCPN/Re...-to-Poedit.png

How do I run Opencpn in debug mode now?
__________________
rgleason is online now   Reply With Quote
Old 25-08-2012, 18:03   #55
Registered User
 
rgleason's Avatar

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

Quote:
From Compiling for Windows --
Compiling Alternative 1: From Visual Studio

Open the solution created by cmake (build/OpenCPN.sln)

Compile the whole solution or individual projects

You have to compile project opencpn before you can compile any plugins (to be fixed in the configuration process)

If you want to debug, don't forget to select opencpn as a start-up project and if you didn't add the WX DLL path to the PATH environment variable earlier, copy the needed WX DLLs to the build directory (Debug or Release, depending on which version you build). The DLLs can be found in C:\${WXDIR}\lib\vc_dll and you will need:

Debug: wxbase28ud_net_vc_custom.dll, wxbase28ud_vc_custom.dll, wxbase28ud_xml_vc_custom.dll, wxmsw28ud_adv_vc_custom.dll, wxmsw28ud_core_vc_custom.dll

Release: wxbase28u_net_vc_custom.dll, wxbase28u_vc_custom.dll, wxbase28u_xml_vc_custom.dll, wxmsw28u_adv_vc_custom.dll, wxmsw28u_core_vc_custom.dll
1. Start- MS Visual Studio 2010 - Visual C++ Express 2010

2. File -Open - Project/Solution

3. Browse to C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build and open the file "OpenCPN.sln"

4. If you want to debug, select opencpn as a start-up project Pick Project - Set as Startup Project

5. If you didn't add the WX DLL path to the PATH environment variable earlier, copy the needed WX DLLs to the build directory (Debug or Release, depending on which version you build). The DLLs can be found in C:\${WXDIR}\lib\vc_dll and you will need:
Debug: wxbase28ud_net_vc_custom.dll, wxbase28ud_vc_custom.dll, wxbase28ud_xml_vc_custom.dll, wxmsw28ud_adv_vc_custom.dll, wxmsw28ud_core_vc_custom.dll - DONE because the goal is to debug!

Release: wxbase28u_net_vc_custom.dll, wxbase28u_vc_custom.dll, wxbase28u_xml_vc_custom.dll, wxmsw28u_adv_vc_custom.dll, wxmsw28u_core_vc_custom.dll
6. Pick from menu "Debug - Build Solution"
See output below

Quote:
Output
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
2>------ Build started: Project: i18n, Configuration: Debug Win32 ------
3>------ Build started: Project: grib-i18n, Configuration: Debug Win32 ------
4>------ Build started: Project: dashboard-i18n, Configuration: Debug Win32 ------
5>------ Skipped Build: Project: grib-po-update, Configuration: Debug Win32 ------
5>Project not selected to build for this solution configuration
6>------ Skipped Build: Project: grib-pot-update, Configuration: Debug Win32 ------
6>Project not selected to build for this solution configuration
7>------ Skipped Build: Project: po-update, Configuration: Debug Win32 ------
7>Project not selected to build for this solution configuration
8>------ Skipped Build: Project: dashboard-pot-update, Configuration: Debug Win32 ------
8>Project not selected to build for this solution configuration
9>------ Skipped Build: Project: dashboard-po-update, Configuration: Debug Win32 ------
9>Project not selected to build for this solution configuration
10>------ Skipped Build: Project: pot-update, Configuration: Debug Win32 ------
10>Project not selected to build for this solution configuration
3> grib-i18n: Done.
2> i18n: Done.
4> dashboard-i18n: Done.
11>------ Skipped Build: Project: dummy, Configuration: Debug Win32 ------
11>Project not selected to build for this solution configuration
12>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
12> Build all projects
13>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
13>Project not selected to build for this solution configuration
14>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
14>Project not selected to build for this solution configuration
========== Build: 5 succeeded, 0 failed, 7 up-to-date, 9 skipped ==========
__________________
rgleason is online now   Reply With Quote
Old 25-08-2012, 18:11   #56
Registered User
 
rgleason's Avatar

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

Well, I'm kind of stuck now. Don't know how to use it!
__________________
rgleason is online now   Reply With Quote
Old 26-08-2012, 05:29   #57
Registered User
 
rgleason's Avatar

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

JesperWe suggested 3 debugging videos Tutorials for using MS Video Studio 2010

[quote]
Video 1 youtube.com/watch?V=z5gBIizwsY0
[\quote]
__________________
rgleason is online now   Reply With Quote
Old 26-08-2012, 06:43   #58
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,708
Re: Development Debugging Environment - Setup Help

Rick...

Rightclick the OpenCPN project in the list on the left. Select "Build". See what happens.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 26-08-2012, 06:59   #59
Registered User
 
rgleason's Avatar

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

Dave, This is what I did. Thanks for your help.
1. Load MS Visual Studio 2010
2. No projects shown, so File Open Project/Solution, pick ..opencpn-git/build/opencpn.sln
3. Now the left pane Solution Explorer has "Solution 'OpenCPN' (21 projects)" with ALL_BUILD below that.
4. I right clicked "Solution 'OpenCPN' and picked 'Build'
5. Output Window shows:

Quote:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
2>------ Build started: Project: i18n, Configuration: Debug Win32 ------
3>------ Build started: Project: grib-i18n, Configuration: Debug Win32 ------
4>------ Build started: Project: dashboard-i18n, Configuration: Debug Win32 ------
5>------ Skipped Build: Project: grib-po-update, Configuration: Debug Win32 ------
5>Project not selected to build for this solution configuration
6>------ Skipped Build: Project: grib-pot-update, Configuration: Debug Win32 ------
6>Project not selected to build for this solution configuration
7>------ Skipped Build: Project: po-update, Configuration: Debug Win32 ------
7>Project not selected to build for this solution configuration
8>------ Skipped Build: Project: dashboard-pot-update, Configuration: Debug Win32 ------
8>Project not selected to build for this solution configuration
9>------ Skipped Build: Project: dashboard-po-update, Configuration: Debug Win32 ------
9>Project not selected to build for this solution configuration
10>------ Skipped Build: Project: pot-update, Configuration: Debug Win32 ------
10>Project not selected to build for this solution configuration
3> grib-i18n: Done.
4> dashboard-i18n: Done.
2> i18n: Done.
11>------ Skipped Build: Project: dummy, Configuration: Debug Win32 ------
11>Project not selected to build for this solution configuration
12>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
12> Build all projects
13>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
13>Project not selected to build for this solution configuration
14>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
14>Project not selected to build for this solution configuration
========== Build: 5 succeeded, 0 failed, 7 up-to-date, 9 skipped ==========
__________________
rgleason is online now   Reply With Quote
Old 26-08-2012, 07:01   #60
Registered User

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

Rick...
You are done. Now you can run OpenCPN in debug mode. If you followed the instructions and set opencpn as the startup project, just hit F5 and enjoy.

Pavel
__________________

__________________
nohal 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 07:35.


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.