Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 13-06-2011, 04:32   #106
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OpenCPN Build on Win32

Steve...
Be sure you are running Windows version of cmake from cmake.org and not the cygwin version - it obviously doesn't have a MSVC generator.

Also make sure you are running it from „Visual Studio 2008 Command Prompt“ from Start menu → Programs → Microsoft Visual C++ 2008 Express Edition → Visual Studio Tools - plain cmd.exe does not have the needed environment variables set

No manual copying of the dlls is needed. Just add C:\<path to wx installation>\lib\vc_dll to your PATH envirnoment variable and then start the MSVC shell.
in cmake-gui you can also set the path to wx manually and re-run the configuration step to generate the project files. I suggest the PATH way.

Some beginner info on using git & github.com is at http://help.github.com/fork-a-repo/ and around.

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 13-06-2011, 05:30   #107
Registered User

Join Date: May 2011
Posts: 7
Re: OpenCPN Build on Win32

It works!

Thank you very much for your help!

Summary of my problems (for reference by others):

I never did manage to successfully download from SourceForge. When issuing the command:

git clone git://opencpn.git.sourceforge.net/gitroot/opencpn/opencpn

I got the reply:

opencpn.git.sourceforge.net[0: 216.34.181.91]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

So I am using the version from the link you gave me: https://github.com/nohal/OpenCPN

Then, when I tried to run CMake from the Visual Studio 2008 command line, like this:

cmake -G "Visual Studio 9 2008" ..

I got the error:

CMake Error: Could not create named generator Visual Studio 9 2008

(I'd managed to run this command successfully before so don't know why it's stopped working now, but anyway...)

I decided to run the CMake GUI. But after following the OpenCPN build instructions for the CMake GUI I got sa big red error saying "Could NOT find wxWidgets (missing: wxWidgets_FOUND)

It turns out I'd simply omitted to add the correct paths to the wxWidgets vc_dll in the "name" and "value" section, in the middle of the CMake GUI.

After that it all configured, generated and built (in VC 2008 Express) as per the instructions.


Thanks again for the help Pavel.


Steve
__________________

__________________
steve314 is offline   Reply With Quote
Old 13-06-2011, 06:16   #108
Registered User
 
Netsurfer's Avatar

Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
Re: OpenCPN Build on Win32

Steve ...
Quote:
Originally Posted by steve314 View Post
I never did manage to successfully download from SourceForge. When issuing the command:

git clone git://opencpn.git.sourceforge.net/gitroot/opencpn/opencpn

I got the reply:

opencpn.git.sourceforge.net[0: 216.34.181.91]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
Seems to be a local problem as I always use the above command for downloading from SF - never had any problems at all.

Gunther
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
Netsurfer is offline   Reply With Quote
Old 13-06-2011, 06:56   #109
Registered User

Join Date: May 2011
Posts: 7
Re: OpenCPN Build on Win32

Gunther,

OK, thanks. Maybe it was a firewall problem or something. I'll look into it if/when I need to check source files in/out again.

Steve
__________________

__________________
steve314 is offline   Reply With Quote
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN General bdbcat OpenCPN 987 11-11-2017 07:00
OpenCPN on a Netbook wbickle OpenCPN 51 27-09-2010 16:10
OpenCPN bdbcat OpenCPN 1343 19-09-2009 16:59



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.