Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 03-08-2010, 15:23   #91
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Gunther....

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

Dave
bdbcat is offline   Reply With Quote
Old 06-08-2010, 06: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, 06:10   #93
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
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 offline   Reply With Quote
Old 06-08-2010, 06: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, 13: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, 01:29   #96
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
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:	150
Size:	127.7 KB
ID:	18248   Click image for larger version

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

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

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
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 offline   Reply With Quote
Old 07-08-2010, 07:56   #98
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
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, 10:09   #99
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
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, 03: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, 04:04   #101
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
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 offline   Reply With Quote
Old 10-06-2011, 04: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, 04: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, 04:52   #104
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
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 offline   Reply With Quote
Old 10-06-2011, 06: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


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 1918 20-04-2024 07:12
OpenCPN on a Netbook wbickle OpenCPN 51 27-09-2010 15:10
OpenCPN bdbcat OpenCPN 1343 19-09-2009 15:59

Advertise Here


All times are GMT -7. The time now is 22:09.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.