Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-08-2010, 16:23   #91
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
Gunther....

I see the bug here. Expect a new git tonight.

Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 06-08-2010, 07:01   #92
Registered User

Join Date: Aug 2010
Posts: 3
Build errors with VS2005

I have 2 errors building OpenCPN with opencpm.sln in VS2005. Sln was from the Help/FAQ thread page 5, edited down to 2005 because my VSE2008 doesnt handle vcproj. Platform is XP, Win32. I get the same errors from the cmake sln file.
OpenCPN version is 2.1.634.
1st error is
Error 4 error C2491: 'ocpnBitmap::ms_classInfo' : definition of dllimport static data member not allowed c:\Ockam\OS5\GIS\OpenCPN\src\ocpn_pixel.cpp 473
code line is IMPLEMENT_DYNAMIC_CLASS(ocpnBitmap, wxBitmap/*wxGDIObject*/)
2nd error is
Error 11 error C2491: 'ocpnMemDC::ms_classInfo' : definition of dllimport static data member not allowed c:\Ockam\OS5\GIS\OpenCPN\src\ocpn_pixel.cpp 1145
code line is IMPLEMENT_DYNAMIC_CLASS(ocpnMemDC, wxMemoryDC)
I also have 13 warnings of "inconsistent dll linkage". but that will wait for the error help.

Any help here would be appreciated.
Dick
__________________

__________________
rmccurdy is offline   Reply With Quote
Old 06-08-2010, 07:10   #93
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,015
Quote:
Originally Posted by rmccurdy View Post
I have 2 errors building OpenCPN with opencpm.sln in VS2005. Sln was from the Help/FAQ thread page 5, edited down to 2005 because my VSE2008 doesnt handle vcproj. Platform is XP, Win32. I get the same errors from the cmake sln file.
OpenCPN version is 2.1.634.
Hi Dick,
welcome to the Windows hell Do you have any special reason to build 2.1.0? If so I will try to dig out a solution and project files for the last build somewhere.
If not, the 2.2 beta building process has changed and is documented at Compiling the Source in Windows | Official OpenCPN Homepage

Pavel
__________________
nohal is online now   Reply With Quote
Old 06-08-2010, 07:16   #94
Registered User

Join Date: Aug 2010
Posts: 3
Re: Build errors with VS2005

Thanks for the quick reply, nohal, I'll try the beta.
__________________
rmccurdy is offline   Reply With Quote
Old 06-08-2010, 14:00   #95
Registered User

Join Date: Aug 2010
Posts: 3
Re: Build errors with VS2005

Built 2.2.803 OK. Noticed that .803 crashes when 2.2.716 (latest binary) was run previously and vice versa. I am interested in this project and wondered if there was any way I could help out.

Dick
__________________
rmccurdy is offline   Reply With Quote
Old 07-08-2010, 02:29   #96
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
windows built

Hi

Once more many thanks Gunther, Pavel
I've succeeded compiling the new cvs
- completely reinstalled wxWindgets (now 2.8.11)
- built it after conversion to vc++ 2008
- get last sources from Git
- run cmake
- compiled opencpn in release mode then plugings OK

But when I run opencpn from vc++ environment , no plugings are activated (see screen shot)
where have I to put the plugings dll ?
If I put the .exe file and the plugings dll in a "normal" environnement , the grib icon (which is set in my init file) is not correctely displayed (see screen shot) and opencpn crashes when I try to activate a pluging or click on the tool box

regards
Jean Pierre
Attached Thumbnails
Click image for larger version

Name:	plugins.jpg
Views:	99
Size:	127.7 KB
ID:	18248   Click image for larger version

Name:	plugins1.jpg
Views:	91
Size:	37.0 KB
ID:	18249  

__________________
Ptizef is offline   Reply With Quote
Old 07-08-2010, 04:47   #97
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,015
Quote:
Originally Posted by Ptizef View Post
where have I to put the plugings dll ?
JP,
have a look at the log file and find a line like
Code:
12:35:18 PM: Error: Can not enumerate files in directory 'C:\WORK\opencpn\source\opencpn\data\plugins' (error 3: the system cannot find the path specified.)
That's the path where OCPN looks for plugins and that's the place where you should copy yours.

Pavel
__________________
nohal is online now   Reply With Quote
Old 07-08-2010, 08:56   #98
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Thanks Pavel
But that confirm I have a crash when trying to use a pluging
Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 15-08-2010, 11:09   #99
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Once more thanks to Gunther , Pavel , for your help
I succeded to built 2.2 using Git , Cmake ....
Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 10-06-2011, 04:54   #100
Registered User

Join Date: May 2011
Posts: 7
Re: OpenCPN Build on Win32

Hi,

I've been trying for a few weeks now to get OpenCPN to build on my Windows XP machine, but no joy so far.

Current errors are:

Error 20 error C2491: 'ocpnMemDC::ms_classInfo' : definition of dllimport static data member not allowed C:\Projects\OpenCPN\OpenCPN-2.3.1\opencpn\src\ocpn_pixel.cpp 1145 1 opencpn

and

Error 27 error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const wxCharBuffer' to 'LPCWSTR' C:\Projects\OpenCPN\OpenCPN-2.3.1\opencpn\src\ais.cpp 1881 1 opencpn

Using OpenCPN v2.3.1 and wxWidgets v2.8.10, but have also tried v2.8.11 and v2.8.12.

Do many people successfully work on this project on PCs running Windows using MS Visual Studio?
__________________
steve314 is offline   Reply With Quote
Old 10-06-2011, 05:04   #101
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,015
Re: OpenCPN Build on Win32

Steve,
did you follow the instructions at Compiling - Windows | Official OpenCPN Homepage ?
My primary development machine has VS2008 on Wndows 7.
The wx version does not matter - I build against 2.8.12 locally, but the official binaries are built against 2.8.10.
BTW it's a waste of time to work with 2.3.1 codebase - right now the current git code is more stable as we are near the 2.5 release.

Pavel
__________________
nohal is online now   Reply With Quote
Old 10-06-2011, 05:08   #102
Registered User

Join Date: May 2011
Posts: 7
Re: OpenCPN Build on Win32

Hi again,

I'm going to start again from scratch trying to get OpenCPN to build.

Are the instructions here: Compiling - Windows | Official OpenCPN Homepage the correct ones to use? (I don't care what version of OpenCPN/wxWidgets I use. I just want anything that will build.)

Thanks.
__________________
steve314 is offline   Reply With Quote
Old 10-06-2011, 05:17   #103
Registered User

Join Date: May 2011
Posts: 7
Re: OpenCPN Build on Win32

Hi Pavel,

Thanks for the quick reply. Yes I followed those instructions. I forget now the order in which I had problems so I'm going to start those instructions again from scratch.

I do remember at some point wxWidgets wouldn't compile because of errors saying it could find "version.res" during linking and couldn't find "wxbase28ud_odbc.lib".

And also when trying to do "git clone git://opencpn.git.sourceforge.net/gitroot/opencpn/opencpn" I got an error that said:

"opencpn.git.sourceforge.net[0: 216.34.181.91]: errno=Connection timed out fatal: unable to connect a socket (Connection timed out)"

But I can't remember how or if I solved these problems now, so I'll start again from scratch.

Thanks

Steve
__________________
steve314 is offline   Reply With Quote
Old 10-06-2011, 05:52   #104
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,015
Re: OpenCPN Build on Win32

Steve,
wxWidgets developers don't set the dependencies. The instruction they give is "Keep rebuilding until all is done" - If I remember correctly the only library that did not build for me is the dbgrid which we don't use, so didn't investigate further.
If you have problems with SF git repo, try mine at https://github.com/nohal/OpenCPN - master branch tracks the sourceforge repository. SF is sometimes a bit unstable and I also experienced a lot of problems connecting to it from certain parts of South America...

Good luck

Pavel
__________________
nohal is online now   Reply With Quote
Old 10-06-2011, 07:58   #105
Registered User

Join Date: May 2011
Posts: 7
Re: OpenCPN Build on Win32

Pavel,

Thanks for the link to https://github.com/nohal/OpenCPN.
I couldn't figure out how to download from there using the "git" command line function, so I just clicked the download button on that website.

Runing CMake from the command line didn't work. It said: "CMake Error: Could not create named generator Visual Studio 9 2008". Perhaps I hadn't set a PATH variable right or something.

So I followed the alternative instruction and ran the CMake 2.8.4 GUI. Added
C:/Projects/nohal-OpenCPN-1552c5b
as the source code folder and:
C:/Projects/nohal-OpenCPN-1552c5b/build
as the build folder (after creating the empty build directory, as per instructions)
Got the error:

CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (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/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindwxWidgets.cmake:831 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:47 (FIND_PACKAGE)

Am I supposed to copy some wxWidgets files into the OpenCPN folder? I notice there is already a wxWidgets folder there with the DLLs in it.
__________________

__________________
steve314 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 17:50.


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.