Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-11-2011, 15:47   #1
Registered User

Join Date: Feb 2009
Location: Milan
Boat: Hobby 25
Posts: 8
Building OpenCPN with Microsoft Visual C++ Express 2010

I've downloaded Microsoft Visual C++ Express 2010 and tried to compile following the instructions on the site.

I've created the build directory and then launched
cmake -G „Visual Studio 9 2008“ . that does not work.

What is the command to build the solution file that I can then open with Visual Studio to build openCPN?

Thanks
Marcello
__________________

__________________
Socialize with other sailors and share on the map your sailing trips, videos, photos and comments about the places you've visited by boat: http://www.bluemapia.com
marcello is offline   Reply With Quote
Old 01-11-2011, 16:25   #2
Registered User

Join Date: Feb 2010
Posts: 619
Re: Building OpenCPN with Microsoft Visual C++ Express 2010

I do not know 2010, I use VS 2008, but maybe the attached notes will be helpful at some point... let me know if it's too cryptic.

Some months ago I was fighting literally for weeks with the build process, and even now I need to fix some steps by hand.

Good luck,

Piotr
Attached Files
File Type: doc building250_2810_ok.txt.doc (997 Bytes, 67 views)
__________________

__________________
PjotrC is offline   Reply With Quote
Old 01-11-2011, 16:54   #3
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,881
Re: Building OpenCPN with Microsoft Visual C++ Express 2010

PjotrC....

I am confused. You should be able to build Unicode wxWidgets dlls, and then link OCPN to them. That is what we distribute as releases.

However,
I found that cmake module "FindwxWidgets" is buggy. Best to remove the ANSI wxwidgets dlls, so that it can only possibly find the Unicode varieties.

...or...
Use the GUI version of cmake for Windows, and override the wxwidgets library selections, to force Unicode build.

I build for Unicode everyday from the 2.5 git sources without problem.

Let me know how I can help.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 01-11-2011, 17:17   #4
Registered User

Join Date: Feb 2010
Posts: 619
Re: Building OpenCPN with Microsoft Visual C++ Express 2010

Thanks, Dave... I can live with the status quo I have now.

The manual steps I have to do are:

- after every _re_build I have to reset the character code to Unicode in all projects (in Visual Studio, project properties)
- building of PACKAGE always fails in the last step, that can be easily done manually

Thanks again,

Piotr
__________________
PjotrC is offline   Reply With Quote
Old 02-11-2011, 00:50   #5
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Building OpenCPN with Microsoft Visual C++ Express 2010

marcello...
The build went quite straight in VS 2010 as far as I can remember. Don't know anymore whether there were some more things different (no more VS 2010 machine at hand to try right now), but at least one's for sure:
Code:
cmake -G "Visual Studio 10"
is the way to invoke cmake when using VS 2010

Pavel
__________________
nohal is offline   Reply With Quote
Reply

Tags
opencpn

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 Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 19:14
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 05:31



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.