Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-01-2010, 05:19   #1
Registered User

Join Date: Jan 2010
Posts: 7
OpenCPN Build on Win32

Is there a guide avaible for building opencpn on win32. I tried with watcom using the Readme file in OpenCPN but unfortunately i receive lots of errors.
Any help pls.
__________________

__________________
Thorac is offline   Reply With Quote
Old 04-01-2010, 23:19   #2
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Quote:
Originally Posted by Thorac View Post
Is there a guide avaible for building opencpn on win32. I tried with watcom using the Readme file in OpenCPN but unfortunately i receive lots of errors.
Any help pls.
See this post and those around it:

Help / FAQ

Watcom is no longer used. Use MSVC instead.

HTH

Mark
__________________

__________________
Psyches is offline   Reply With Quote
Old 05-01-2010, 12:24   #3
Registered User

Join Date: Jan 2010
Posts: 7
Thank you very much for your quick response. I did what you did in the help board. Project compilied the cpp files without any error. But i included the header files. At the end i receive lots of link error. I use your project file widgets 2.8.10, I create the same folders anyway i did what u did but lots of link errors follows.
Can u pls send me your project file i think the problem is link libraries etc. I really need your help with compiling this program. Thx.

like;
1>scrollingdialog.obj : error LNK2001: unresolved external symbol "public: static class wxClassInfo wxPropertySheetDialog::ms_classInfo" (?ms_classInfo@wxPropertySheetDialog@@2VwxClassInf o@@A)
1>tcmgr.obj : error LNK2019: unresolved external symbol "public: bool __thiscall wxTextBuffer::Exists(void)const " (?Exists@wxTextBuffer@@QBE_NXZ) referenced in function "private: void __thiscall TCMgr::LoadMRU(void)" (?LoadMRU@TCMgr@@AAEXXZ)
1>tcmgr.obj : error LNK2019: unresolved external symbol "public: bool __thiscall wxTextBuffer::Write(enum wxTextFileType,class wxMBConv const &)" (?Write@wxTextBuffer@@QAE_NW4wxTextFileType@@ABVwx MBConv@@@Z) referenced in function "private: void __thiscall TCMgr::SaveMRU(void)" (?SaveMRU@TCMgr@@AAEXXZ)
1>tcmgr.obj : error LNK2001: unresolved external symbol "public: static enum wxTextFileType const wxTextBuffer::typeDefault" (?typeDefault@wxTextBuffer@@2W4wxTextFileType@@B)
1>tcmgr.obj : error LNK2019: unresolved external symbol "public: bool __thiscall wxTextBuffer::Create(void)" (?Create@wxTextBuffer@@QAE_NXZ) referenced in function "private: void __thiscall TCMgr::SaveMRU(void)" (?SaveMRU@TCMgr@@AAEXXZ)
1>Debug\opencpn.exe : fatal error LNK1120: 1595 unresolved externals
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 9.00.30729
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://c:\Devmt\Work\opencpn\opencpn\Debug\BuildLog.htm"
1>opencpn - 6755 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


__________________
Thorac is offline   Reply With Quote
Old 05-01-2010, 19:01   #4
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Sorry, I can't send it right now. As the post alluded, it won't quite work with the current (changed) source anyway. OpenCPN development is kind of "jump in, sink or swim". You'll need to debug the build yourself, and to do that and make progress, you'll need a pretty solid understanding of Win32 and VC development. Folks don't have a lot of spare time to help others with this, so either you can (a) make this a good self-learning opportunity and still hopefully contribute, or (b) find another easier environment to contribute, somewhere else.
__________________
Psyches is offline   Reply With Quote
Old 05-01-2010, 20:05   #5
Registered User
 
Viking Sailor's Avatar

Join Date: Nov 2006
Location: San Francisco Bay
Boat: Fantasia 35 - s/v Feeling Good
Posts: 1,074
Come on Mark... Help the guy out... You know you should... It's the right thing to do... Man up my friend... Show us what you are made of...
__________________
Viking Sailor is offline   Reply With Quote
Old 05-01-2010, 21:40   #6
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
well actually i'd be a bit more help if i could, but i honestly can't...i'm working on a borrowed laptop, and my dev env isn't even available
__________________
Psyches is offline   Reply With Quote
Old 06-01-2010, 04:49   #7
Registered User

Join Date: Jan 2010
Posts: 7
Any working version will be fine. I just want to debug the project.
__________________
Thorac is offline   Reply With Quote
Old 09-01-2010, 02:02   #8
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Hi
Trying to build opencpn on a vista32 platform :
Using the method described above my first problem : In the .vcproj , it is refered to a
"wxWidgets-2.8.10\lib\vc_lib" but there is nothing like that in the wxWidgets folders
What I've missed ?
Thanks
Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 09-01-2010, 03:09   #9
Registered User

Join Date: Nov 2009
Location: France
Posts: 63
Installation on a Vista32 platform

Jean-Pierre,
wxWidgets-2.8.10 is supposed to be the directory where wxWidgets was installed. For me, it was C:\wxWidgets281.
When you install wxWidgets, you have to build it (there are several VS-project-files in C:\wxWidgets281\build\msw).
I don't remember exactly how i done it, but there is an explanation into C:\wxWidgets281\docs\msw\install.txt .
Jean-Pascal
__________________
Totobeloeil is offline   Reply With Quote
Old 09-01-2010, 04:32   #10
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Thanks
I'll try that
Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 25-01-2010, 21:12   #11
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
OpenCPN unofficial build steps for Win32, for v1.3.6

Since we don't yet have a Win32 vcproj in CVS, I've attached my working one for temporary use. See Help / FAQ for process and disclaimers, and surrounding posts for good suggestions too...notably: Help / FAQ

HTH

Mark
Attached Files
File Type: doc opencpn.zip.doc (2.6 KB, 113 views)
__________________
Psyches is offline   Reply With Quote
Old 03-02-2010, 21:59   #12
Registered User

Join Date: Feb 2010
Posts: 2
opencpn incompatible with win7

I cant seem to get opencpn to work on win7 laptop..please advise
__________________
alphamariner is offline   Reply With Quote
Old 05-02-2010, 18:30   #13
Registered User
 
Netsurfer's Avatar

Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
Question

Hi,

I definitly hope that here is at least one guy who can help me. I'm trying now for 3 days to compile that ...

I finally came to this point (only 5 errors left - started with more than 70):

Here is my complete debug log (only the part with the errors):
Quote:
1>------ Erstellen gestartet: Projekt: opencpn, Konfiguration: Debug Win32 ------
1>Kompilieren...
1>tri.c
1>ocpnhelper.c
1>f:\projekte\opencpn\opencpn-1.3.6\src\ocpnhelper.c(22) : fatal error C1083: Datei (Include) kann nicht ge÷ffnet werden: "unistd.h": No such file or directory
1>macutils.c
1>d:\programme\wxwidgets-2.8.10\include\msvc\wx\setup.h(26) : fatal error C1083: Datei (Include) kann nicht ge÷ffnet werden: "../../../lib/vc_lib/mswud/wx/setup.h": No such file or directory
1>georef.c
1>f:\projekte\opencpn\opencpn-1.3.6\src\georef.c(27) : fatal error C1083: Datei (Include) kann nicht ge÷ffnet werden: "georef.h": No such file or directory
1>cutil.c
1>f:\projekte\opencpn\opencpn-1.3.6\src\cutil.c(78) : fatal error C1083: Datei (Include) kann nicht ge÷ffnet werden: "cutil.h": No such file or directory
1>Code wird generiert...
1>Browseinformationsdatei wird erstellt...
1>Microsoft Browse Information Maintenance-Programm Version 9.00.30729
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : Datei ".\Debug\wvschart.sbr" kann nicht ge÷ffnet werden: No such file or directory
Let's have a closer look:
Quote:
1>ocpnhelper.c
1>f:\projekte\opencpn\opencpn-1.3.6\src\ocpnhelper.c(22) : fatal error C1083: Datei (Include) kann nicht ge÷ffnet werden: "unistd.h": No such file or directory
1>georef.c
1>f:\projekte\opencpn\opencpn-1.3.6\src\georef.c(27) : fatal error C1083: Datei (Include) kann nicht ge÷ffnet werden: "georef.h": No such file or directory
1>cutil.c
1>f:\projekte\opencpn\opencpn-1.3.6\src\cutil.c(78) : fatal error C1083: Datei (Include) kann nicht ge÷ffnet werden: "cutil.h": No such file or directory
Where are these files?
I couldn't find them in the repository/ source.

Quote:
1>macutils.c
1>d:\programme\wxwidgets-2.8.10\include\msvc\wx\setup.h(26) : fatal error C1083: Datei (Include) kann nicht ge÷ffnet werden: "../../../lib/vc_lib/mswud/wx/setup.h": No such file or directory
Even though I'm quite sure, that I've set up wxWidgets correctly I do not have a directory called 'mswud'!
The path to the setup.h file on my system is: D:\Programme\wxWidgets-2.8.10\lib\vc_lib\msw\wx\setup.h

Quote:
1>BSCMAKE: error BK1506 : Datei ".\Debug\wvschart.sbr" kann nicht ge÷ffnet werden: No such file or directory
Where comes this error from?

Help is very much appreciated!

And a brief tutorial "How to compile for WIN 32" would also be very helpful (if you don't want only Linux guys to test the program)!
BTW: The threads here like Help / FAQ
aren't really helpful because they lack some very importent parts e.g. the config settings for MS C++.

Gunther
__________________
Netsurfer is offline   Reply With Quote
Old 05-02-2010, 21:44   #14
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Gunther, it looks like some things are messed up in your build environment. It's hard to tell it all with the german language output.

re: your ocpnhelper.c problem: I'm not sure where you got your vcproj file. This file isn't in the new vcproj I posted, and it wasn't in the original one either. The .c file is no longer used, just hasn't been deleted in cvs yet. Note that there may be a few others like this.

I suggest you start with the new vcproj I gave (for 1.3.6, the old was 1.3.4), because that is the only one that is a good bet to use with the corresponding instructions.

re: georef.c problem: georef.h is in the opencpn/include directory; if you don't have it, you have a messed up cvs structure. If you didn't follow the instructions carefully, the compiler include directories in the vcproj won't be correct, and you'll get this error.

I'm not sure which config things you think are missing from the instructions - all the compile config is in the vcproj. I mentioned in the initial instructions that the first who follow them are guinea pigs - AFAIK, there has only been one user, Totobeloeil, and he had immediate and great success, and offered suggestions for improvements that will be incorporated if this gets checked into cvs (if we go away from CMake for win32). So you may be the 2nd guinea pig; feel free to also update the instructions or the project content itself to benefit others.

Mark
__________________
Psyches is offline   Reply With Quote
Old 05-02-2010, 21:46   #15
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Quote:
Originally Posted by alphamariner View Post
I cant seem to get opencpn to work on win7 laptop..please advise
alphamariner, we need more details.
__________________

__________________
Psyches 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN General bdbcat OpenCPN 987 11-11-2017 07:00
OpenCPN on a Netbook wbickle OpenCPN 51 27-09-2010 16:10
OpenCPN bdbcat OpenCPN 1343 19-09-2009 16:59



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 16:44.


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.