Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 01-11-2011, 14: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: https://www.bluemapia.com
marcello is offline   Reply With Quote
Old 01-11-2011, 15: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, 103 views)
PjotrC is offline   Reply With Quote
Old 01-11-2011, 15:54   #3
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,489
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 offline   Reply With Quote
Old 01-11-2011, 16: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 01-11-2011, 23:50   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
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


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 18:14
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 11:07.


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.