Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 27-06-2013, 08:54   #1
Registered User

Join Date: Mar 2011
Posts: 39
Compiling OpenCPN in Windows

Hello,

Maybe somebody could help with compiling OpenCpn in windows. I have no lucky to configure visual Studio 2010 to work with source code . I tried it in windows 7 and windows XP SP3, with visual studio 2010. In linux is much simpler .

Maybe someone are using virtualbox with windows for compiling and could share it.
Or there is another way for find the peace

Thank's in advance
__________________

__________________
useris is offline   Reply With Quote
Old 27-06-2013, 10:27   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Compiling OpenCPN in windows

useris...
Your peace lays in Compiling - Windows | Official OpenCPN Homepage
I did my best, but if it's not enough to get you going, I need to know exactly where you got stuck to be able to help you. Yes, in Linux it's much simpler and no, nobody can give you a Windows VM - it's kind of not legal.

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 27-06-2013, 12:17   #3
Registered User

Join Date: Mar 2011
Posts: 39
Re: Compiling OpenCPN in windows

Quote:
Originally Posted by nohal View Post
useris...
Your peace lays in Compiling - Windows | Official OpenCPN Homepage
I did my best, but if it's not enough to get you going, I need to know exactly where you got stuck to be able to help you. Yes, in Linux it's much simpler and no, nobody can give you a Windows VM - it's kind of not legal.

Pavel

Yes, you are right about copying...
I did everything from compiling manual.
WxWidgets successfully compiled without errors and got dll ... added to dll path to windows PATH.
After builded with cmake -G „Visual Studio 10“ .. command and got OpenCPN.sln. looks like everything ok ...
So i run visual studio 2010 and tried build OpenCPN.sln and got this errors:

Build started 6/27/2013 7:15:59 PM.
InitializeBuildStatus:
Touching "opencpn.dir\Release\opencpn.unsuccessfulbuild ".
CustomBuild:
All outputs are up-to-date.
ClCompile:
ocpn_pixel.cpp
..\src\ocpn_pixel.cpp(1127): error C2065: 'm_oldBitmap' : undeclared identifier
..\src\ocpn_pixel.cpp(1129): error C2065: 'm_oldBitmap' : undeclared identifier
..\src\ocpn_pixel.cpp(1130): error C2065: 'm_selectedBitmap' : undeclared identifier
..\src\ocpn_pixel.cpp(1130): error C2228: left of '.Ok' must have class/struct/union
type is ''unknown-type''
..\src\ocpn_pixel.cpp(1135): error C2065: 'm_selectedBitmap' : undeclared identifier
..\src\ocpn_pixel.cpp(1171): error C2065: 'm_oldBitmap' : undeclared identifier
..\src\ocpn_pixel.cpp(1173): error C2065: 'm_oldBitmap' : undeclared identifier
chcanv.cpp
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\math.h(632): warning C4005: 'M_PI' : macro redefinition
C:/wxWidgets-2.9.4/include\wx/math.h(22) : see previous definition of 'M_PI'
..\src\chcanv.cpp(7041): warning C4996: 'wxMouseState::LeftDown': was declared deprecated
C:/wxWidgets-2.9.4/include\wx/mousestate.h(132) : see declaration of 'wxMouseState::LeftDown'
..\src\chcanv.cpp(8367): warning C4996: 'wxMenuItemBase::GetLabel': was declared deprecated
C:/wxWidgets-2.9.4/include\wx/menuitem.h(124) : see declaration of 'wxMenuItemBase::GetLabel'
..\src\chcanv.cpp(10304): warning C4996: 'wxDC::SetClippingRegion': was declared deprecated
C:/wxWidgets-2.9.4/include\wx/dc.h(982) : see declaration of 'wxDC::SetClippingRegion'
..\src\chcanv.cpp(10397): warning C4996: 'wxDC::SetClippingRegion': was declared deprecated
C:/wxWidgets-2.9.4/include\wx/dc.h(982) : see declaration of 'wxDC::SetClippingRegion'
..\src\chcanv.cpp(11926): warning C4996: 'wxGLCanvas::wxGLCanvas': was declared deprecated
C:/wxWidgets-2.9.4/include\wx/msw/glcanvas.h(106) : see declaration of 'wxGLCanvas::wxGLCanvas'
..\src\chcanv.cpp(11981): warning C4996: 'wxGLCanvasBase::OnSize': was declared deprecated
C:/wxWidgets-2.9.4/include\wx/glcanvas.h(141) : see declaration of 'wxGLCanvasBase::OnSize'
..\src\chcanv.cpp(15990): error C2039: 'GetTextCtrl' : is not a member of 'wxBitmapComboBox'
C:/wxWidgets-2.9.4/include\wx/msw/bmpcbox.h(23) : see declaration of 'wxBitmapComboBox'
..\src\chcanv.cpp(15990): error C2227: left of '->SetBackgroundColour' must point to class/struct/union/generic type
options.cpp
..\src\options.cpp(819): error C2653: 'wxRendererNative' : is not a class or namespace name
..\src\options.cpp(819): error C2228: left of '.DrawCheckBox' must have class/struct/union
type is ''unknown-type''
..\src\options.cpp(819): error C3861: 'Get': identifier not found
..\src\options.cpp(825): error C2653: 'wxRendererNative' : is not a class or namespace name
..\src\options.cpp(825): error C2228: left of '.DrawCheckBox' must have class/struct/union
type is ''unknown-type''
..\src\options.cpp(825): error C2065: 'wxCONTROL_CHECKED' : undeclared identifier
..\src\options.cpp(825): error C3861: 'Get': identifier not found
jsonval.cpp
..\src\wxJSON\jsonval.cpp(965): error C2308: concatenating mismatched strings
Concatenating wide "%" with narrow "I64"
..\src\wxJSON\jsonval.cpp(973): error C2308: concatenating mismatched strings
Concatenating wide "%" with narrow "I64"
Generating Code...

Build FAILED.

Time Elapsed 00:00:30.10
========== Build: 2 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========


It is look like problem with wxwidgets but it is compiled without errors ...
__________________
useris is offline   Reply With Quote
Old 27-06-2013, 20:07   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Compiling OpenCPN in windows

useris...
One very simple question:
How can following "Download wxMSW-2.8.12-Setup.exe from Downloads - wxWidgets and install it" result in having wxWidgets 2.9.4 installed. Please?
We do not support building against wxWidgets 2.9 on Windows just yet. Believe me, I knew why I wrote what I wrote to the build instructions...

Pavel
__________________
nohal is offline   Reply With Quote
Old 28-06-2013, 01:25   #5
Registered User

Join Date: Mar 2011
Posts: 39
Re: Compiling OpenCPN in windows

Yes i already tried with wxMSW-2.8.12-Setup.exe, but i got errors wxWidgets_FOUND:

C:\OpenCPN\build>cmake -G "Visual Studio 10" ..
-- *** Build Architecture is i386
-- *** Staging to build opencpn 3.2.0 ***
-- Found OpenGL...
-- Lib: glu32opengl32
-- Include:
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHan
dleStandardArgs.cmake:108 (message):
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardAr
gs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindwxWidgets.cmake:831 (FI
ND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:153 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

wxMSW-2.8.12 compiled without error, in path in enviroment is added ...
Then I tried wxMSW-2.9 and cmake found wxWidgets, but it is not compatible ....
__________________
useris is offline   Reply With Quote
Old 28-06-2013, 06:49   #6
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Compiling OpenCPN in windows

So now we know where your real problem problem is, good.
WX 2.9 = no go, get rid of it and install 2.8.12
After really, but really, following all the steps in the instructions (build both release and debug versions of WX, please), make double sure, but really sure you have C:\wxWidgets-2.8.12\lib\vc_dll inyour PATH environment variable and that you created other called WXWIN which contains C:\wxWidgets-2.8.12
Make sure, but really sure you restarted VS and/or it's command prompt before you continue to building OpenCPN. You can restart the whole computer if it's not clear what the previous sentence says.
Delete all you have in your build folder and run
Code:
cmake ..
again.
If it fails, get back here.

Pavel
__________________
nohal is offline   Reply With Quote
Old 29-06-2013, 03:58   #7
Registered User

Join Date: Mar 2011
Posts: 39
Re: Compiling OpenCPN in windows

Something i missed. The problem still appear. I reinstalled windows xp and on fresh install tried compile.
My steps was:
1. Installed MS Visual Studio 2010;
2. Updated MS Visual Studio 2010;
3. Installed Cmake PATH added automatically i checked in eviroment;
4. Installed GetText manully added PATH;
5. Installed NSIS;
6. Downloaded wxMSW-2.8.12-Setup.exe and run;
7. Changed values of define wxUSE_GRAPHICS_CONTEXT and wxUSE_GLCANVAS;
9. Compiled wxWidgets from command line:
nmake -f makefile.vc BUILD=release MONOLITHIC=0 SHARED=1 UNICODE=1 USE_GDIPLUS=1 USE_OPENGL=1
nmake -f makefile.vc BUILD=debug MONOLITHIC=0 SHARED=1 UNICODE=1 USE_GDIPLUS=1 USE_OPENGL=1
9. Added PATH and WXWIN wxwidgets parameters in enviroment;
10. Downloaded source;
11. And tired cmake -G "Visual Studio 10" .. or cmake .. - got errors;

C:\OpenCPN\build>cmake -G "Visual Studio 10" ..
-- *** Build Architecture is i386
-- *** Staging to build opencpn 3.2.0 ***
-- Found OpenGL...
-- Lib: glu32opengl32
-- Include:
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHan
dleStandardArgs.cmake:108 (message):
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardAr
gs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindwxWidgets.cmake:831 (FI
ND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:153 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred
__________________
useris is offline   Reply With Quote
Old 29-06-2013, 05:02   #8
Registered User

Join Date: Mar 2011
Posts: 39
Re: Compiling OpenCPN in windows

To solve this problem could we use
find_package(wxWidgets COMPONENTS core base REQUIRED)
include( "${wxWidgets_USE_FILE}" )
instead
FIND_PACKAGE(wxWidgets REQUIRED)
in CMakeLists.txt file in 154 line ?

In that case at lest i could compile:
-- Found wxWidgets...
-- debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_core.lib;optimized;C:/wxWidget
s-2.8.12/lib/vc_dll/wxmsw28u_core.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxbas
e28ud.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28u.lib;debug;C:/wxWidg
ets-2.8.12/lib/vc_dll/wxpngd.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxpng.
lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxtiffd.lib;optimized;C:/wxWidgets-2.8.
12/lib/vc_dll/wxtiff.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxjpegd.lib;optimi
zed;C:/wxWidgets-2.8.12/lib/vc_dll/wxjpeg.lib;debug;C:/wxWidgets-2.8.12/lib/vc_d
ll/wxzlibd.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/wxzlib.lib;debug;C:/wxWi
dgets-2.8.12/lib/vc_dll/wxregexud.lib;optimized;C:/wxWidgets-2.8.12/lib/vc_dll/w
xregexu.lib;debug;C:/wxWidgets-2.8.12/lib/vc_dll/wxexpatd.lib;optimized;C:/wxWid
gets-2.8.12/lib/vc_dll/wxexpat.lib;winmm;comctl32;rpcrt4;wsock32
--
-- *** Staging to build opencpn ***

But still can't build application with MS VS 2010:

C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C2146: syntax error : missing ';' before identifier 'wxUSE_GRAPHICS_CONTEXT'
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C2143: syntax error : missing ';' before 'constant'
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/wxWidgets-2.8.12/include\wx/chkconf.h(578): fatal error C1189: #error : "wxUSE_GRAPHICS_CONTEXT must be defined."
multiplexer.cpp
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C2146: syntax error : missing ';' before identifier 'wxUSE_GRAPHICS_CONTEXT'
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C2143: syntax error : missing ';' before 'constant'
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/wxWidgets-2.8.12/include\wx/chkconf.h(578): fatal error C1189: #error : "wxUSE_GRAPHICS_CONTEXT must be defined."
scrollingdialog.cpp
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C2146: syntax error : missing ';' before identifier 'wxUSE_GRAPHICS_CONTEXT'
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C2143: syntax error : missing ';' before 'constant'
C:/wxWidgets-2.8.12/lib/vc_dll/mswu\wx/setup.h(579): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/wxWidgets-2.8.12/include\wx/chkconf.h(578): fatal error C1189: #error : "wxUSE_GRAPHICS_CONTEXT must be defined."
tinyxml.cpp
tinyxmlerror.cpp
Generating Code...
Compiling...
tinyxmlparser.cpp
Generating Code...

Build FAILED.

Time Elapsed 00:00:08.62
========== Build: 2 succeeded, 4 failed, 0 up-to-date, 0 skipped ==========
__________________
useris is offline   Reply With Quote
Old 29-06-2013, 05:37   #9
Registered User

Join Date: Mar 2011
Posts: 39
Re: Compiling OpenCPN in windows

And what about tinyxml ? Cmake shows error that tinyxml library is not found
__________________
useris is offline   Reply With Quote
Old 29-06-2013, 06:00   #10
Registered User

Join Date: Mar 2011
Posts: 39
Re: Compiling OpenCPN in windows

So i found about wxUSE_GRAPHICS_CONTEXT that i need to change include/wx/msw/setup.h.

Everything compiled and got strange errors:
opencpn-3.2.0-source\include\ocpn_plugin.h(438): error C2061: syntax error : identifier 'wxGLContext'
opencpn-3.2.0-source\include\ocpn_plugin.h(451): error C2061: syntax error : identifier 'wxGLContext'
opencpn-3.2.0-source\include\chcanv.h(141): error C2146: syntax error : missing ';' before identifier 'gltexind'
opencpn-3.2.0-source\include\chcanv.h(141): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(141): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(134): error C2065: 'gltexind' : undeclared identifier
opencpn-3.2.0-source\include\chcanv.h(549): error C2143: syntax error : missing ';' before '*'
opencpn-3.2.0-source\include\chcanv.h(549): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(549): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(575): error C2504: 'wxGLCanvas' : base class undefined
opencpn-3.2.0-source\include\chcanv.h(581): error C2061: syntax error : identifier 'wxGLContext'
opencpn-3.2.0-source\include\chcanv.h(604): error C2143: syntax error : missing ';' before '*'
opencpn-3.2.0-source\include\chcanv.h(604): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(604): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(638): error C2146: syntax error : missing ';' before identifier 'm_fb0'
opencpn-3.2.0-source\include\chcanv.h(638): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(638): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(639): error C2146: syntax error : missing ';' before identifier 'm_depth_rb'
opencpn-3.2.0-source\include\chcanv.h(639): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(639): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(641): error C2146: syntax error : missing ';' before identifier 'm_TEX_TYPE'
opencpn-3.2.0-source\include\chcanv.h(641): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(641): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(642): error C2146: syntax error : missing ';' before identifier 'm_cache_tex'
opencpn-3.2.0-source\include\chcanv.h(642): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(642): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(643): error C2146: syntax error : missing ';' before identifier 'm_blit_tex'
opencpn-3.2.0-source\include\chcanv.h(643): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(643): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chcanv.h(581): error C2065: 'm_pcontext' : undeclared identifier
opencpn-3.2.0-source\include\chcanv.h(581): error C2065: 'pcontext' : undeclared identifier
opencpn-3.2.0-source\include\pluginmanager.h(211): error C2061: syntax error : identifier 'wxGLContext'
opencpn-3.2.0-source\include\dychart.h(85): warning C4005: 'snprintf' : macro redefinition
opencpn-3.2.0-source\include\wx\json_defs.h(197) : see previous definition of 'snprintf'
opencpn-3.2.0-source\include\chartbase.h(176): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chartbase.h(176): error C2143: syntax error : missing ',' before '&'
opencpn-3.2.0-source\include\chartbase.h(278): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chartbase.h(278): error C2143: syntax error : missing ',' before '&'
opencpn-3.2.0-source\include\chartbase.h(327): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
opencpn-3.2.0-source\include\chartbase.h(327): error C2143: syntax error : missing ',' before '&'
scrollingdialog.cpp
tinyxml.cpp
tinyxmlerror.cpp
Generating Code...
Compiling...
tinyxmlparser.cpp
Generating Code...

Build FAILED.

Time Elapsed 00:02:06.29
========== Build: 3 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

..\src\ocpndc.cpp(61): error C2614: 'ocpnDC' : illegal member initialization: 'pgc' is not a base or member
..\src\ocpndc.cpp(63): error C2065: 'pgc' : undeclared identifier
..\src\ocpndc.cpp(72): error C2065: 'pgc' : undeclared identifier
..\src\ocpndc.cpp(86): error C2614: 'ocpnDC' : illegal member initialization: 'pgc' is not a base or member
..\src\ocpndc.cpp(92): error C2065: 'pgc' : undeclared identifier
..\src\ocpndc.cpp(92): error C2065: 'pgc' : undeclared identifier
..\src\ocpndc.cpp(92): error C2541: 'delete' : cannot delete objects that are not pointers
..\src\ocpndc.cpp(102): error C2027: use of undefined type 'wxGLCanvas'
__________________
useris is offline   Reply With Quote
Old 29-06-2013, 06:46   #11
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Compiling OpenCPN in windows

useris...
Are you really sure you also changed "#define wxUSE_GLCANVAS 1" and that you rebuilt wxWidgets after you did it?
Could we see the exact values of PATH and WXWIN environment variables. I would really like to reproduce your failures, but it's impossible if the steps are really done as said in the compiling instructions...

Pavel
__________________
nohal is offline   Reply With Quote
Old 29-06-2013, 07:22   #12
Registered User

Join Date: Mar 2011
Posts: 39
Re: Compiling OpenCPN in windows

Sorry for my stupid errors

Values of PATH:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Program Files\CMake 2.8\bin;C:\Program Files\GnuWin32;C:\wxWidgets-2.8.12\lib\vc_dll;C:\Program Files\GnuWin32\bin;
WXWIN: C:\wxWidgets-2.8.12

Yes i changed wxUSE_GLCANVAS and wxUSE_GRAPHICS_CONTEXT

So i have many new errors about linking:

chart1.obj : error LNK2019: unresolved external symbol __imp__glReadPixels@28 referenced in function "public: void __thiscall MyPrintout:rawPageOne(class wxDC *)" (?DrawPageOne@MyPrintout@@QAEXPAVwxDC@@@Z)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxAuiManager::UnInit(void)" (__imp_?UnInit@wxAuiManager@@QAEXXZ) referenced in function "public: void __thiscall MyFrame::OnCloseWindow(class wxCloseEvent &)" (?OnCloseWindow@MyFrame@@QAEXAAVwxCloseEvent@@@Z)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxAuiManager::SavePerspective(void)" (__imp_?SavePerspective@wxAuiManager@@QAE?AVwxStri ng@@XZ) referenced in function "public: void __thiscall MyFrame::OnCloseWindow(class wxCloseEvent &)" (?OnCloseWindow@MyFrame@@QAEXAAVwxCloseEvent@@@Z)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxAuiManager:etachPane(class wxWindow *)" (__imp_?DetachPane@wxAuiManager@@QAE_NPAVwxWindow@ @@Z) referenced in function "public: void __thiscall MyFrame::OnCloseWindow(class wxCloseEvent &)" (?OnCloseWindow@MyFrame@@QAEXAAVwxCloseEvent@@@Z)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxAuiManager::SavePaneInfo(class wxAuiPaneInfo &)" (__imp_?SavePaneInfo@wxAuiManager@@QAE?AVwxString@ @AAVwxAuiPaneInfo@@@Z) referenced in function "public: void __thiscall MyFrame::OnCloseWindow(class wxCloseEvent &)" (?OnCloseWindow@MyFrame@@QAEXAAVwxCloseEvent@@@Z)
ais.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxAuiManager::SavePaneInfo(class wxAuiPaneInfo &)" (__imp_?SavePaneInfo@wxAuiManager@@QAE?AVwxString@ @AAVwxAuiPaneInfo@@@Z)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxAuiPaneInfo & __thiscall wxAuiManager::GetPane(class wxWindow *)" (__imp_?GetPane@wxAuiManager@@QAEAAVwxAuiPaneInfo@ @PAVwxWindow@@@Z) referenced in function "public: void __thiscall MyFrame::OnCloseWindow(class wxCloseEvent &)" (?OnCloseWindow@MyFrame@@QAEXAAVwxCloseEvent@@@Z)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxAuiManager::Update(void)" (__imp_?Update@wxAuiManager@@QAEXXZ) referenced in function "public: void __thiscall MyFrame::OnFrameTimer1(class wxTimerEvent &)" (?OnFrameTimer1@MyFrame@@QAEXAAVwxTimerEvent@@@Z)
ais.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxAuiManager::Update(void)" (__imp_?Update@wxAuiManager@@QAEXXZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxAuiPaneInfoArray::~wxAuiPaneInfoArray(void)" (__imp_??1wxAuiPaneInfoArray@@QAE@XZ) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxAuiManager::LoadPerspective(class wxString const &,bool)" (__imp_?LoadPerspective@wxAuiManager@@QAE_NABVwxSt ring@@_N@Z) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxAuiPaneInfo::~wxAuiPaneInfo(void)" (__imp_??1wxAuiPaneInfo@@QAE@XZ) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
ais.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxAuiPaneInfo::~wxAuiPaneInfo(void)" (__imp_??1wxAuiPaneInfo@@QAE@XZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxAuiPaneInfo::wxAuiPaneInfo(class wxAuiPaneInfo const &)" (__imp_??0wxAuiPaneInfo@@QAE@ABV0@@Z) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
ais.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxAuiPaneInfo::wxAuiPaneInfo(class wxAuiPaneInfo const &)" (__imp_??0wxAuiPaneInfo@@QAE@ABV0@@Z)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxAuiPaneInfoArray::wxAuiPaneInfoArray(class wxAuiPaneInfoArray const &)" (__imp_??0wxAuiPaneInfoArray@@QAE@ABV0@@Z) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxAuiPaneInfoArray & __thiscall wxAuiManager::GetAllPanes(void)" (__imp_?GetAllPanes@wxAuiManager@@QAEAAVwxAuiPaneI nfoArray@@XZ) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxAuiPaneInfo & __thiscall wxAuiPaneInfo::CenterPane(void)" (__imp_?CenterPane@wxAuiPaneInfo@@QAEAAV1@XZ) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxAuiManager::AddPane(class wxWindow *,int,class wxString const &)" (__imp_?AddPane@wxAuiManager@@QAE_NPAVwxWindow@@HA BVwxString@@@Z) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxAuiManager::SetManagedWindow(class wxWindow *)" (__imp_?SetManagedWindow@wxAuiManager@@QAEXPAVwxWi ndow@@@Z) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxAuiManager::wxAuiManager(class wxWindow *,unsigned int)" (__imp_??0wxAuiManager@@QAE@PAVwxWindow@@I@Z) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)
chart1.obj : error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxAuiManager::GetClassInfo(void)const " (?GetClassInfo@wxAuiManager@@UBEPAVwxClassInfo@@XZ )
chart1.obj : error LNK2001: unresolved external symbol "protected: virtual struct wxEventTable const * __thiscall wxAuiManager::GetEventTable(void)const " (?GetEventTable@wxAuiManager@@MBEPBUwxEventTable@@ XZ)
chart1.obj : error LNK2001: unresolved external symbol "protected: virtual class wxEventHashTable & __thiscall wxAuiManager::GetEventHashTable(void)const " (?GetEventHashTable@wxAuiManager@@MBEAAVwxEventHas hTable@@XZ)
chart1.obj : error LNK2001: unresolved external symbol "public: virtual class wxAuiFloatingFrame * __thiscall wxAuiManager::CreateFloatingFrame(class wxWindow *,class wxAuiPaneInfo const &)" (?CreateFloatingFrame@wxAuiManager@@UAEPAVwxAuiFlo atingFrame@@PAVwxWindow@@ABVwxAuiPaneInfo@@@Z)
chart1.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAuiManager::ShowHint(class wxRect const &)" (?ShowHint@wxAuiManager@@UAEXABVwxRect@@@Z)
chart1.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAuiManager::HideHint(void)" (?HideHint@wxAuiManager@@UAEXXZ)
chart1.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall wxAuiManager::ProcessDockResult(class wxAuiPaneInfo &,class wxAuiPaneInfo const &)" (?ProcessDockResult@wxAuiManager@@MAE_NAAVwxAuiPan eInfo@@ABV2@@Z)
chart1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxAuiManager::~wxAuiManager(void)" (__imp_??1wxAuiManager@@UAE@XZ) referenced in function "public: virtual void * __thiscall wxAuiManager::`scalar deleting destructor'(unsigned int)" (??_GwxAuiManager@@UAEPAXI@Z)
ocpndc.obj : error LNK2019: unresolved external symbol __imp__glGenTextures@8 referenced in function "public: __thiscall ocpnDC:cpnDC(class wxGLCanvas &)" (??0ocpnDC@@QAE@AAVwxGLCanvas@@@Z)
chcanv.obj : error LNK2001: unresolved external symbol __imp__glGenTextures@8
S57ENC.lib(s52plib.obj) : error LNK2001: unresolved external symbol __imp__glGenTextures@8
ocpndc.obj : error LNK2019: unresolved external symbol __imp__glDeleteTextures@8 referenced in function "public: __thiscall ocpnDC::~ocpnDC(void)" (??1ocpnDC@@QAE@XZ)
chcanv.obj : error LNK2001: unresolved external symbol __imp__glDeleteTextures@8
S57ENC.lib(s52plib.obj) : error LNK2001: unresolved external symbol __imp__glDeleteTextures@8
S57ENC.lib(s57chart.obj) : error LNK2001: unresolved external symbol __imp__glDisable@4
ocpndc.obj : error LNK2019: unresolved external symbol __imp__glDisable@4 referenced in function "public: static void __cdecl ocpnDC::SetGLAttrs(bool)" (?SetGLAttrs@ocpnDC@@SAX_N@Z)
chcanv.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
navutil.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
S57ENC.lib(s52p
__________________
useris is offline   Reply With Quote
Old 29-06-2013, 07:31   #13
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Compiling OpenCPN in windows

useris...
I will ask again, are you sure you rebuilt wxWidgets after you changed include/wx/msw/setup.h? And I hope you realized that the defines are already there, so you have to change their value, not add the two lines somewhere to the file.
To be sure, delete the contents of C:\wxWidgets-2.8.12\lib\vc_dll and do
Code:
nmake -f makefile.vc BUILD=release MONOLITHIC=0 SHARED=1 UNICODE=1 USE_GDIPLUS=1 USE_OPENGL=1 
nmake -f makefile.vc BUILD=debug MONOLITHIC=0 SHARED=1 UNICODE=1 USE_GDIPLUS=1 USE_OPENGL=1
again
__________________
nohal is offline   Reply With Quote
Old 29-06-2013, 08:08   #14
Registered User

Join Date: Mar 2011
Posts: 39
Re: Compiling OpenCPN in windows

Yes i changed (not added) values in include/wx/msw/setup.h.
I deleted wxWidgets and install for new. Changed values in setup.h and recompiled.
Now VS 2010 shows many errors about linking:

routeprop.obj : error LNK2001: unresolved external symbol "public: virtual class wxSize __thiscall wxBitmapComboBox::GetBitmapSize(void)const " (?GetBitmapSize@wxBitmapComboBox@@UBE?AVwxSize@@XZ )
routeprop.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxBitmapComboBox::~wxBitmapComboBox(void)" (__imp_??1wxBitmapComboBox@@UAE@XZ) referenced in function "public: virtual void * __thiscall wxBitmapComboBox::`scalar deleting destructor'(unsigned int)" (??_GwxBitmapComboBox@@UAEPAXI@Z)
ais.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int const wxEVT_AUI_PANE_CLOSE" (__imp_?wxEVT_AUI_PANE_CLOSE@@3HB) referenced in function "public: __thiscall AISTargetListDialog::AISTargetListDialog(class wxWindow *,class wxAuiManager *,class AIS_Decoder *)" (??0AISTargetListDialog@@QAE@PAVwxWindow@@PAVwxAui Manager@@PAVAIS_Decoder@@@Z)
ais.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxAuiManager::AddPane(class wxWindow *,class wxAuiPaneInfo const &)" (__imp_?AddPane@wxAuiManager@@QAE_NPAVwxWindow@@AB VwxAuiPaneInfo@@@Z) referenced in function "public: __thiscall AISTargetListDialog::AISTargetListDialog(class wxWindow *,class wxAuiManager *,class AIS_Decoder *)" (??0AISTargetListDialog@@QAE@PAVwxWindow@@PAVwxAui Manager@@PAVAIS_Decoder@@@Z)
ais.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxAuiManager::LoadPaneInfo(class wxString,class wxAuiPaneInfo &)" (__imp_?LoadPaneInfo@wxAuiManager@@QAEXVwxString@@ AAVwxAuiPaneInfo@@@Z) referenced in function "public: __thiscall AISTargetListDialog::AISTargetListDialog(class wxWindow *,class wxAuiManager *,class AIS_Decoder *)" (??0AISTargetListDialog@@QAE@PAVwxWindow@@PAVwxAui Manager@@PAVAIS_Decoder@@@Z)
ais.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxAuiPaneInfo::wxAuiPaneInfo(void)" (__imp_??0wxAuiPaneInfo@@QAE@XZ) referenced in function "public: __thiscall AISTargetListDialog::AISTargetListDialog(class wxWindow *,class wxAuiManager *,class AIS_Decoder *)" (??0AISTargetListDialog@@QAE@PAVwxWindow@@PAVwxAui Manager@@PAVAIS_Decoder@@@Z)
datastream.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxSocketBase::Notify(bool)" (__imp_?Notify@wxSocketBase@@QAEX_N@Z) referenced in function "private: void __thiscall DataStream::OnServerSocketEvent(class wxSocketEvent &)" (?OnServerSocketEvent@DataStream@@AAEXAAVwxSocketE vent@@@Z)
and many more errors about linking
__________________
useris is offline   Reply With Quote
Old 29-06-2013, 08:17   #15
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Compiling OpenCPN in Windows

useris...
How did you get past the "cmake .." step? Does it "magically" work now or did you tweak CMakeLists.txt?

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
Development Debugging Environment - Setup Help rgleason OpenCPN 577 11-11-2017 06:02
Open CPN and Google Earth bgrimwade OpenCPN 19 09-12-2011 16:32
OpenCPN Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 19:14
OpenCPN and Windows Desktop Position svCopacetic OpenCPN 4 14-07-2011 10: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 00:01.


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.