Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 13-08-2012, 06:50   #1
Registered User

Join Date: Aug 2012
Location: Brazil
Posts: 4
Compiling Error

Visual studio 9 2008; windows 7; wxwidgets2.8; opencpn3.1.7

Error 1 error C2664: 'wcstombs' : cannot convert parameter 2 from 'const wxChar *' to 'const wchar_t *' c:\OpenCPN-3.1.7\src\navutil.cpp 6256 opencpn


Error 2 error C2664: 'LoadLibrary' : cannot convert parameter 1 from 'LPCWSTR' to 'LPCSTR' c:\OpenCPN-3.1.7\src\chcanv.cpp 389 opencpn

Are there any problem with unicode?
I have changed wxwidgets - setup.h glcanvas and graphics to 1
config.vc unicode 1
I am compiling opencpn with dll debug.

Please, can you help me?
__________________
ailton is offline   Reply With Quote
Old 13-08-2012, 07:19   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: compiling error

ailton...
Looks like a unicode problem. Clean up the wxwidgets build artifacts and go through the build instructions again. Especially take note that our supported toolchain is VS2010 based - If you produce the setup package with 2008 toolchain, it will not work for sure out of the box. The compilation itself MIGHT still work, but I din't try since early 2.6 betas. If you follow the instructions exactly, you should not have any problems.

Pavel
__________________
nohal is online now   Reply With Quote
Old 13-08-2012, 07:22   #3
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: compiling error

ailton...

Visual studio 9 2008 should compile and run OK, except that the pre-built PlugIns available on the opencpn.org site will refuse to load.

Dave
__________________
bdbcat 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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 05:54.


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.