Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 14-11-2014, 11:08   #1
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Compiling OCPN on Windows (VS 2010)

I'm trying to build OCPN on Windows, using Visual Studio 10, following the instructions at Compiling - Windows | Official OpenCPN Homepage.

I've followed the instructions to the letter, but when I get as far as building OCPN I get an error because Cmake can't find wxWidgets.

Code:
C:\Users\Administrator\code\OpenCPN\build>cmake -G "Visual Studio 10" ..
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for working CXX compiler using: Visual Studio 10 2010
-- Check for working CXX compiler using: Visual Studio 10 2010 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Build Architecture is i386
-- *** Staging to build opencpn 3.3.2302 ***
-- *** Package will include documentation ***
-- *** Package will include GSHHS basechart level: CRUDE ***
-- *** Package will include tide and current data ***
-- Found OpenGL: opengl32
-- Found OpenGL...
--     Lib: glu32opengl32
--     Include:
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageH
andleStandardArgs.cmake:138 (message):
  Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandard
Args.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindwxWidgets.cmake:868 (
FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:286 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "C:/Users/Administrator/code/OpenCPN/build/CMakeFiles/CMakeOutput.log".

See also "C:/Users/Administrator/code/OpenCPN/build/CMakeFiles/CMakeError.log".
I'm probably being stupid but I can't work out why it can't find it...
I have added the vc_dll dir to the PATH and created the WXWIN env variable. Restarted a couple of times. No joy.

My PATH:

Code:
C:\Users\Administrator\code\OpenCPN\build>echo %PATH%
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\;C:\Program File
s (x86)\Microsoft Visual Studio 10.0\VC\BIN;C:\Program Files (x86)\Microsoft Vis
ual Studio 10.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\W
indows\Microsoft.NET\Framework\v3.5;C:\Program Files (x86)\Microsoft Visual Stud
io 10.0\VC\VCPackages;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NE
TFX 4.0 Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;C:\Program
 Files (x86)\Parallels\Parallels Tools\Applications;C:\Windows\system32;C:\Windo
ws;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Progr
am Files (x86)\Git\cmd;C:\Program Files (x86)\CMake\bin;C:\Program Files (x86)\P
oedit\GettextTools\bin;C:\wxWidgets-2.8.12\lib\vc_dll
I built wxWidgets according to the instructions on the wiki page, and yes, I did change the two config lines in setup.h. (I forgot the first time, but then I changed and rebuilt.)

Doesn't work with Cmake-GUI either, though the correct paths to wxWidgets DLLs and wxWidgets root are shown.

Any ideas anyone?

~Caesar
__________________

__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 14-11-2014, 11:14   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: Compiling OCPN on Windows (VS 2010)

Caesar i don't see a path to wxwidgets-2.8.12 but maybe i am missing it. I believe my setup has a path setting for wxwidgets. I will check my setup when i get home.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________

__________________
rgleason is online now   Reply With Quote
Old 14-11-2014, 11:16   #3
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Compiling OCPN on Windows (VS 2010)

Rick, it's on the last line there, C:\wxWidgets-2.8.12\lib\vc-dll
__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 14-11-2014, 11:17   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: Compiling OCPN on Windows (VS 2010)

Sorry now i see it. Be very careful editing PATH as any little mistake trips you such as period instead of comma or leaving a space etc. I cant pick this stuff up with small text.

Have you compiled wxwidgets or did you download the binary?

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is online now   Reply With Quote
Old 14-11-2014, 11:21   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: Compiling OCPN on Windows (VS 2010)

Yes you did build wxwigets. It is a problem with wxwidgets. Is your path right?

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is online now   Reply With Quote
Old 14-11-2014, 11:23   #6
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Compiling OCPN on Windows (VS 2010)

I followed the instructions on the Wiki page, which seems to be a kind of hybrid - download the setup.exe package, but then change some config and compile.
I suppose the setup.exe doesn't actually install a binary, it just copies the sources onto the disk.
__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 14-11-2014, 11:27   #7
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Compiling OCPN on Windows (VS 2010)

Quote:
Originally Posted by rgleason View Post
Yes you did build wxwigets. It is a problem with wxwidgets. Is your path right?

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
Well, it seems right, as it does contain C:\wxWidgets-2.8.12\lib\vc-dll which is thecorect paht to the location of the wxWidgets DLLs.
__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 14-11-2014, 12:33   #8
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Compiling OCPN on Windows (VS 2010)

Caesar...
Try changing it to just
Code:
C:\wxWidgets-2.8.12
Pavel
__________________
nohal is offline   Reply With Quote
Old 14-11-2014, 12:58   #9
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Compiling OCPN on Windows (VS 2010)

Pavel, thanks, that worked!

(Also no need for WXWIN variable, it seems, as I deleted that and it still works.)

Shall I update the build instructions on the wiki, or is there some situation when using the full path to vc_dll would be right?
__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 14-11-2014, 13:08   #10
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Compiling OCPN on Windows (VS 2010)

Yes, please...
Might be that the logic got changed in recent cmake versions - my cache is populated for years, so the instructions were actually not checked for quite some time.


Sent from my iPhone using Cruisers Sailing Forum
__________________
nohal is offline   Reply With Quote
Old 14-11-2014, 13:13   #11
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Compiling OCPN on Windows (VS 2010)

Hmm...
It doesn't build.
Takes a long time, seems to build loads of stuff, then finally a massive number of errors.

Seems the Windows command prompt doesn't have a very long scrollback, so I can't see the first errors, but what's on the screen at the end is this:

Code:
glTexCache.obj : error LNK2001: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wch
ar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\cod
e\OpenCPN\build\opencpn.vcxproj]
S57ENC.lib(s52plib.obj) : error LNK2001: unresolved external symbol "__declspec
(dllimport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t co
nst *,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administ
rator\code\OpenCPN\build\opencpn.vcxproj]
S57ENC.lib(cm93.obj) : error LNK2001: unresolved external symbol "__declspec(dl
limport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const
 *,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrat
or\code\OpenCPN\build\opencpn.vcxproj]
chartsymbols.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,w
char_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
razdsparser.obj : error LNK2001: unresolved external symbol "__declspec(dllimpo
rt) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wc
har_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\co
de\OpenCPN\build\opencpn.vcxproj]
toolbar.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar_
t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\O
penCPN\build\opencpn.vcxproj]
OCPNRegion.obj : error LNK2001: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wch
ar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\cod
e\OpenCPN\build\opencpn.vcxproj]
pluginmanager.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,
wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\
code\OpenCPN\build\opencpn.vcxproj]
jsonwriter.obj : error LNK2001: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wch
ar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\cod
e\OpenCPN\build\opencpn.vcxproj]
jsonreader.obj : error LNK2001: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wch
ar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\cod
e\OpenCPN\build\opencpn.vcxproj]
jsonval.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar_
t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\O
penCPN\build\opencpn.vcxproj]
TCDataFactory.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,
wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\
code\OpenCPN\build\opencpn.vcxproj]
TCDataSource.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,w
char_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
options.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar_
t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\O
penCPN\build\opencpn.vcxproj]
gshhs.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) vo
id __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar_t
const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\Ope
nCPN\build\opencpn.vcxproj]
AIS_Decoder.obj : error LNK2001: unresolved external symbol "__declspec(dllimpo
rt) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wc
har_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\co
de\OpenCPN\build\opencpn.vcxproj]
statwin.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar_
t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\O
penCPN\build\opencpn.vcxproj]
Station_Data.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,w
char_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
IDX_entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimport
) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wcha
r_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code
\OpenCPN\build\opencpn.vcxproj]
chart1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) v
oid __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar_t
 const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\Op
enCPN\build\opencpn.vcxproj]
ocpn_pixel.obj : error LNK2001: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wch
ar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\cod
e\OpenCPN\build\opencpn.vcxproj]
chartdbs.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
 void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar
_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\
OpenCPN\build\opencpn.vcxproj]
chcanv.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) v
oid __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar_t
 const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\Op
enCPN\build\opencpn.vcxproj]
chart1.obj : error LNK2001: unresolved external symbol "public: virtual void __
thiscall wxAppConsole::OnAssertFailure(wchar_t const *,int,wchar_t const *,wcha
r_t const *,wchar_t const *)" (?OnAssertFailure@wxAppConsole@@UAEXPB_WH000@Z) [
C:\Users\Administrator\code\OpenCPN\build\opencpn.vcxproj]
chart1.obj : error LNK2001: unresolved external symbol "public: virtual void __
thiscall wxAppConsole::OnAssert(wchar_t const *,int,wchar_t const *,wchar_t con
st *)" (?OnAssert@wxAppConsole@@UAEXPB_WH00@Z) [C:\Users\Administrator\code\Ope
nCPN\build\opencpn.vcxproj]
ocpn_pixel.obj : error LNK2019: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxLogDebug(wchar_t const *,...)" (__imp_?wxLogDebug@@YAXPB_WZZ)
 referenced in function "public: void __thiscall ocpnMemDC::SelectObject(class
wxDIB &)" (?SelectObject@ocpnMemDC@@QAEXAAVwxDIB@@@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
jsonwriter.obj : error LNK2019: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxLogTrace(wchar_t const *,wchar_t const *,...)" (__imp_?wxLogT
race@@YAXPB_W0ZZ) referenced in function "protected: int __thiscall wxJSONWrite
r::WriteString(class wxOutputStream &,class wxString const &)" (?WriteString@wx
JSONWriter@@IAEHAAVwxOutputStream@@ABVwxString@@@Z) [C:\Users\Administrator\cod
e\OpenCPN\build\opencpn.vcxproj]
jsonreader.obj : error LNK2001: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxLogTrace(wchar_t const *,wchar_t const *,...)" (__imp_?wxLogT
race@@YAXPB_W0ZZ) [C:\Users\Administrator\code\OpenCPN\build\opencpn.vcxproj]
jsonval.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
void __cdecl wxLogTrace(wchar_t const *,wchar_t const *,...)" (__imp_?wxLogTrac
e@@YAXPB_W0ZZ) [C:\Users\Administrator\code\OpenCPN\build\opencpn.vcxproj]
C:\Users\Administrator\code\OpenCPN\build\Debug\opencpn.exe : fatal error LNK11
20: 5 unresolved externals [C:\Users\Administrator\code\OpenCPN\build\opencpn.v
cxproj]
Done Building Project "C:\Users\Administrator\code\OpenCPN\build\opencpn.vcxpro
j" (default targets) -- FAILED.

Done Building Project "C:\Users\Administrator\code\OpenCPN\build\plugins\dashbo
ard_pi\dashboard_pi.vcxproj" (default targets) -- FAILED.

Project "C:\Users\Administrator\code\OpenCPN\build\ALL_BUILD.vcxproj" (1) is bu
ilding "C:\Users\Administrator\code\OpenCPN\build\plugins\grib_pi\grib_pi.vcxpr
oj" (12) on node 1 (default targets).
Project "C:\Users\Administrator\code\OpenCPN\build\plugins\grib_pi\grib_pi.vcxp
roj" (12) is building "C:\Users\Administrator\code\OpenCPN\build\plugins\grib_p
i\grib-i18n.vcxproj" (13) on node 1 (default targets).
InitializeBuildStatus:
  Creating "Win32\Debug\grib-i18n\grib-i18n.unsuccessfulbuild" because "AlwaysC
  reate" was specified.
CustomBuild:
  grib_pi-i18n: Done.
FinalizeBuildStatus:
  Deleting file "Win32\Debug\grib-i18n\grib-i18n.unsuccessfulbuild".
  Touching "Win32\Debug\grib-i18n\grib-i18n.lastbuildstate".
Done Building Project "C:\Users\Administrator\code\OpenCPN\build\plugins\grib_p
i\grib-i18n.vcxproj" (default targets).

Done Building Project "C:\Users\Administrator\code\OpenCPN\build\plugins\grib_p
i\grib_pi.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\Administrator\code\OpenCPN\build\ALL_BUILD.vcxp
roj" (default targets) -- FAILED.


Build FAILED.

"C:\Users\Administrator\code\OpenCPN\build\ALL_BUILD.vcxproj" (default target)
(1) ->
"C:\Users\Administrator\code\OpenCPN\build\plugins\dashboard_pi\dashboard_pi.vc
xproj" (default target) (8) ->
"C:\Users\Administrator\code\OpenCPN\build\opencpn.vcxproj" (default target) (1
0) ->
(Link target) ->
  S57ENC.lib(s57chart.obj) : error LNK2001: unresolved external symbol "__decls
pec(dllimport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t
 const *,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Admin
istrator\code\OpenCPN\build\opencpn.vcxproj]
  S57ENC.lib(TexFont.obj) : error LNK2001: unresolved external symbol "__declsp
ec(dllimport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t
const *,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Admini
strator\code\OpenCPN\build\opencpn.vcxproj]
  glChartCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dll
import) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const
*,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) referenced in function
 "public: static void __cdecl glChartCanvas::MultMatrixViewPort(class ViewPort
const &)" (?MultMatrixViewPort@glChartCanvas@@SAXABVViewPort@@@Z) [C:\Users\Adm
inistrator\code\OpenCPN\build\opencpn.vcxproj]
  glTexCache.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,w
char_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
  S57ENC.lib(s52plib.obj) : error LNK2001: unresolved external symbol "__declsp
ec(dllimport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t
const *,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Admini
strator\code\OpenCPN\build\opencpn.vcxproj]
  S57ENC.lib(cm93.obj) : error LNK2001: unresolved external symbol "__declspec(
dllimport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t con
st *,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administr
ator\code\OpenCPN\build\opencpn.vcxproj]
  chartsymbols.obj : error LNK2001: unresolved external symbol "__declspec(dlli
mport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *
,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator
\code\OpenCPN\build\opencpn.vcxproj]
  razdsparser.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,
wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\
code\OpenCPN\build\opencpn.vcxproj]
  toolbar.obj : error LNK2001: unresolved external symbol "__declspec(dllimport
) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wcha
r_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code
\OpenCPN\build\opencpn.vcxproj]
  OCPNRegion.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,w
char_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
  pluginmanager.obj : error LNK2001: unresolved external symbol "__declspec(dll
import) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const
*,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrato
r\code\OpenCPN\build\opencpn.vcxproj]
  jsonwriter.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,w
char_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
  jsonreader.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,w
char_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
  jsonval.obj : error LNK2001: unresolved external symbol "__declspec(dllimport
) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wcha
r_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code
\OpenCPN\build\opencpn.vcxproj]
  TCDataFactory.obj : error LNK2001: unresolved external symbol "__declspec(dll
import) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const
*,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrato
r\code\OpenCPN\build\opencpn.vcxproj]
  TCDataSource.obj : error LNK2001: unresolved external symbol "__declspec(dlli
mport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *
,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator
\code\OpenCPN\build\opencpn.vcxproj]
  options.obj : error LNK2001: unresolved external symbol "__declspec(dllimport
) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wcha
r_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code
\OpenCPN\build\opencpn.vcxproj]
  gshhs.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar_
t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\O
penCPN\build\opencpn.vcxproj]
  AIS_Decoder.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,
wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\
code\OpenCPN\build\opencpn.vcxproj]
  statwin.obj : error LNK2001: unresolved external symbol "__declspec(dllimport
) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wcha
r_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code
\OpenCPN\build\opencpn.vcxproj]
  Station_Data.obj : error LNK2001: unresolved external symbol "__declspec(dlli
mport) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *
,wchar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator
\code\OpenCPN\build\opencpn.vcxproj]
  IDX_entry.obj : error LNK2001: unresolved external symbol "__declspec(dllimpo
rt) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wc
har_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\co
de\OpenCPN\build\opencpn.vcxproj]
  chart1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
 void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar
_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\
OpenCPN\build\opencpn.vcxproj]
  ocpn_pixel.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,w
char_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
  chartdbs.obj : error LNK2001: unresolved external symbol "__declspec(dllimpor
t) void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wch
ar_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\cod
e\OpenCPN\build\opencpn.vcxproj]
  chcanv.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
 void __cdecl wxOnAssert(wchar_t const *,int,char const *,wchar_t const *,wchar
_t const *)" (__imp_?wxOnAssert@@YAXPB_WHPBD00@Z) [C:\Users\Administrator\code\
OpenCPN\build\opencpn.vcxproj]
  chart1.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall wxAppConsole::OnAssertFailure(wchar_t const *,int,wchar_t const *,wc
har_t const *,wchar_t const *)" (?OnAssertFailure@wxAppConsole@@UAEXPB_WH000@Z)
 [C:\Users\Administrator\code\OpenCPN\build\opencpn.vcxproj]
  chart1.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall wxAppConsole::OnAssert(wchar_t const *,int,wchar_t const *,wchar_t c
onst *)" (?OnAssert@wxAppConsole@@UAEXPB_WH00@Z) [C:\Users\Administrator\code\O
penCPN\build\opencpn.vcxproj]
  ocpn_pixel.obj : error LNK2019: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxLogDebug(wchar_t const *,...)" (__imp_?wxLogDebug@@YAXPB_WZ
Z) referenced in function "public: void __thiscall ocpnMemDC::SelectObject(clas
s wxDIB &)" (?SelectObject@ocpnMemDC@@QAEXAAVwxDIB@@@Z) [C:\Users\Administrator
\code\OpenCPN\build\opencpn.vcxproj]
  jsonwriter.obj : error LNK2019: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxLogTrace(wchar_t const *,wchar_t const *,...)" (__imp_?wxLo
gTrace@@YAXPB_W0ZZ) referenced in function "protected: int __thiscall wxJSONWri
ter::WriteString(class wxOutputStream &,class wxString const &)" (?WriteString@
wxJSONWriter@@IAEHAAVwxOutputStream@@ABVwxString@@@Z) [C:\Users\Administrator\c
ode\OpenCPN\build\opencpn.vcxproj]
  jsonreader.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) void __cdecl wxLogTrace(wchar_t const *,wchar_t const *,...)" (__imp_?wxLo
gTrace@@YAXPB_W0ZZ) [C:\Users\Administrator\code\OpenCPN\build\opencpn.vcxproj]
  jsonval.obj : error LNK2001: unresolved external symbol "__declspec(dllimport
) void __cdecl wxLogTrace(wchar_t const *,wchar_t const *,...)" (__imp_?wxLogTr
ace@@YAXPB_W0ZZ) [C:\Users\Administrator\code\OpenCPN\build\opencpn.vcxproj]
  C:\Users\Administrator\code\OpenCPN\build\Debug\opencpn.exe : fatal error LNK
1120: 5 unresolved externals [C:\Users\Administrator\code\OpenCPN\build\opencpn
.vcxproj]

    0 Warning(s)
    33 Error(s)

Time Elapsed 00:00:03.80

C:\Users\Administrator\code\OpenCPN\build>
__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 14-11-2014, 13:30   #12
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Compiling OCPN on Windows (VS 2010)

Are you absolutely sure that you built wxWidgets correctly? = you cleaned all the build products before doing it last time


Sent from my iPhone using Cruisers Sailing Forum
__________________
nohal is offline   Reply With Quote
Old 14-11-2014, 13:49   #13
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Compiling OCPN on Windows (VS 2010)

Yes actually I uninstalled and deleted the whole wxWidgets folder and installed and compiled from scratch.
__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 14-11-2014, 13:57   #14
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Compiling OCPN on Windows (VS 2010)

Did you build both debug and release configs for WX? Looks like you are exactly at the same spot as https://forums.wxwidgets.org/viewtopic.php?f=19&t=36381
Remember that OpenCPN builds Debug by default.
__________________
nohal is offline   Reply With Quote
Old 14-11-2014, 14:02   #15
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Compiling OCPN on Windows (VS 2010)

Oh, no, is it necessary to build both? That wasn't clear from the wiki, it just says "If you want to fully debug OpenCPN you must build the wxWidgets debug DLLs also".
So no, I only built release. I will try debug too now.
__________________

__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Reply

Tags
wind

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
Linux cross compiling for windows failing jongough OpenCPN 42 29-11-2014 20:09
Compiling OpenCPN Windows 8.1 Ptizef OpenCPN 4 22-07-2014 14:08
Compiling & Debug in Windows MSVC rgleason OpenCPN 1 04-07-2014 18:42
Compiling OpenCPN in Windows useris OpenCPN 20 29-06-2013 08:45
Compiling OCPN on Scientific Linux 6.4 64bit HotRod OpenCPN 6 23-05-2013 07:51



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 06:52.


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.