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-03-2018, 17:55   #1
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,936
Errors compiling for first time

I am attempting to compile OpenCPN for the first time. Fresh install of all the tools following directions here:
https://opencpn.org/wiki/dokuwiki/do...piling_windows

Downloaded and installed versions:
VS Community 2015 12.0.40629.00 Update 5
Git 2.16.2
cmake 3.11.0 rc2
Poedit 2.0.6 (5225)
NSIS (Sourceforge seems to be down indefinitely. Is there another place to d/l this? In any case, I didn't seem to get as far as to need this before I ran into problems)
wxWidgets 3.1.1
Dependencies installed from here: https://sourceforge.net/projects/ope...in.7z/download

Everything went fine until step 4.2a:


"C:\Users\wholybee\Documents\GitHub\OpenCPN\build\ ALL_BUILD.vcxproj" (default t
arget) (1) ->
"C:\Users\wholybee\Documents\GitHub\OpenCPN\build\ WXSVG.vcxproj" (default targe
t) (13) ->
(ClCompile target) ->
C:\Users\wholybee\Documents\GitHub\OpenCPN\src\wxs vg\src\svgxml\svgxml.cpp(24
): fatal error C1083: Cannot open include file: 'expat.h': No such file or dire
ctory [C:\Users\wholybee\Documents\GitHub\OpenCPN\build\W XSVG.vcxproj]

17 Warning(s)
1 Error(s)

Time Elapsed 00:03:20.78
wholybee is offline   Reply With Quote
Old 03-03-2018, 18:13   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Errors compiling for first time

wholybee...
You are using the old dependency bundle, which works only until OpenCPN 4.8.2 (This tag: https://github.com/OpenCPN/OpenCPN/releases/tag/v4.8.2) and a few commit beyond.

The main build instructions for Windows are not yet updated as the master branch still did not settle down completely for the O5 development cycle, but you can find the draft targeting the current codebase at https://github.com/nohal/OpenCPN/wik...n-Windows---O5
And FWIW we never used VS2015, so neither the old one nor the new one will make you happy as they use different MSVC runtimes than the one you have.

And Sourceforge downloads seem to mostly work - https://sourceforge.net/projects/nsis/files/NSIS%203/

Pavel
nohal is offline   Reply With Quote
Old 03-03-2018, 18:21   #3
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,936
Re: Errors compiling for first time

Quote:
Originally Posted by nohal View Post
wholybee...
You are using the old dependency bundle, which works only until OpenCPN 4.8.2 (This tag: https://github.com/OpenCPN/OpenCPN/releases/tag/v4.8.2) and a few commit beyond.

The main build instructions for Windows are not yet updated as the master branch still did not settle down completely for the O5 development cycle, but you can find the draft targeting the current codebase at https://github.com/nohal/OpenCPN/wik...n-Windows---O5
And FWIW we never used VS2015, so neither the old one nor the new one will make you happy as they use different MSVC runtimes than the one you have.

And Sourceforge downloads seem to mostly work - https://sourceforge.net/projects/nsis/files/NSIS%203/

Pavel
Thank you.

VS2015 was a typo, I have VS2013. And I was so careful to do everything exactly right and get the right version numbers in. I will review those links. Sourceforge must be slowly coming up. Earlier today instead of that NSIS page I got a page that said it was in "static mode" and most pages would be unavailable.
wholybee is offline   Reply With Quote
Old 04-03-2018, 05:39   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Errors compiling for first time

That link didn't seem to work for me but these do.
https://sourceforge.net/projects/opencpnplugins/
https://sourceforge.net/projects/opencpn/

All activity: https://sourceforge.net/p/opencpn/ac...1846326b780f1e

Early version Releases https://sourceforge.net/p/opencpn/news/

opencpnplugins all activity: https://sourceforge.net/p/opencpnplu...8f3d01fa508c0c
rgleason is offline   Reply With Quote
Old 04-03-2018, 05:50   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Errors compiling for first time

I am finding that the Sourceforge "File Tab" is not working and we are unable to access and download the OpenCPN_buildwin.7z files. See this page for Compiling Windows Are others having troubles? If so, I think we should try to get critical files off sourceforge and hosted locally.

http://sourceforge.net/projects/open...in.7z/download

I get 500 Errors "Oh snap! We can't process this request."
rgleason is offline   Reply With Quote
Old 04-03-2018, 06:02   #6
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Errors compiling for first time

Quote:
Originally Posted by rgleason View Post
I am finding that the Sourceforge "File Tab" is not working and we are unable to access and download the OpenCPN_buildwin.7z files. See this page for Compiling Windows Are others having troubles? If so, I think we should try to get critical files off sourceforge and hosted locally.

http://sourceforge.net/projects/open...in.7z/download

I get 500 Errors "Oh snap! We can't process this request."
Rick...
Take on the panic harness and simply let them fix it as usually. There really is no need to start a storm of posts every time something has a hiccup. If the problem persists, we will take care of it.

Pavel
nohal is offline   Reply With Quote
Old 04-03-2018, 07:37   #7
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,936
Re: Errors compiling for first time

Quote:
Originally Posted by nohal View Post
wholybee...
You are using the old dependency bundle, which works only until OpenCPN 4.8.2 (This tag: https://github.com/OpenCPN/OpenCPN/releases/tag/v4.8.2) and a few commit beyond.

The main build instructions for Windows are not yet updated as the master branch still did not settle down completely for the O5 development cycle, but you can find the draft targeting the current codebase at https://github.com/nohal/OpenCPN/wik...n-Windows---O5
And FWIW we never used VS2015, so neither the old one nor the new one will make you happy as they use different MSVC runtimes than the one you have.

And Sourceforge downloads seem to mostly work - https://sourceforge.net/projects/nsis/files/NSIS%203/

Pavel
Starting from scratch, following the draft document and using VS2017 and the 4.99 dependency bundle I get the same error. I note that expat.h DOES exist in C:\Users\wholybee\Documents\GitHub\OpenCPN\buildwi n\expat-2.1.0\include. Is there a misconfiguration of an include path somewhere?



"C:\Users\wholybee\Documents\GitHub\OpenCPN\build\ ALL_BUILD.vcxproj" (default t
arget) (1) ->
"C:\Users\wholybee\Documents\GitHub\OpenCPN\build\ WXSVG.vcxproj" (default targe
t) (13) ->
(ClCompile target) ->
C:\Users\wholybee\Documents\GitHub\OpenCPN\src\wxs vg\src\svgxml\svgxml.cpp(24
): fatal error C1083: Cannot open include file: 'expat.h': No such file or dire
ctory [C:\Users\wholybee\Documents\GitHub\OpenCPN\build\W XSVG.vcxproj]

11 Warning(s)
1 Error(s)

Time Elapsed 00:03:58.40
wholybee is offline   Reply With Quote
Old 04-03-2018, 07:43   #8
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Errors compiling for first time

Quote:
Originally Posted by wholybee View Post
Starting from scratch, following the draft document and using VS2017 and the 4.99 dependency bundle I get the same error. I note that expat.h DOES exist in C:\Users\wholybee\Documents\GitHub\OpenCPN\buildwi n\expat-2.1.0\include. Is there a misconfiguration of an include path somewhere?



"C:\Users\wholybee\Documents\GitHub\OpenCPN\build\ ALL_BUILD.vcxproj" (default t
arget) (1) ->
"C:\Users\wholybee\Documents\GitHub\OpenCPN\build\ WXSVG.vcxproj" (default targe
t) (13) ->
(ClCompile target) ->
C:\Users\wholybee\Documents\GitHub\OpenCPN\src\wxs vg\src\svgxml\svgxml.cpp(24
): fatal error C1083: Cannot open include file: 'expat.h': No such file or dire
ctory [C:\Users\wholybee\Documents\GitHub\OpenCPN\build\W XSVG.vcxproj]

11 Warning(s)
1 Error(s)

Time Elapsed 00:03:58.40
The CI builds on Appveyor do follow those instructions with every single commit and work, so the issue is only specific to your system.
To start with, we now use expat 2.2.5 and it is included in the dependencies bundle, so I wonder how is it possible that you start form scratch, follow the instructions and still end up having the old dependencies containing expat 2.1.0...
nohal is offline   Reply With Quote
Old 04-03-2018, 08:20   #9
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,936
Re: Errors compiling for first time

Quote:
Originally Posted by nohal View Post
The CI builds on Appveyor do follow those instructions with every single commit and work, so the issue is only specific to your system.
To start with, we now use expat 2.2.5 and it is included in the dependencies bundle, so I wonder how is it possible that you start form scratch, follow the instructions and still end up having the old dependencies containing expat 2.1.0...
Hmm.

Well, I started over by restoring a snapshot on the VM before starting. But clearly, you are right. Perhaps it was a lack of sleep and going through it too many times. Both the difficulties with sourceforge, and having gone through it a few times with the old document, and having both the new and old dependencies available locally when I finally got the draft document I must have used the wrong one.

Trying again after a good night sleep.
wholybee is offline   Reply With Quote
Old 04-03-2018, 11:44   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Errors compiling for first time

It works now Thanks. I don't like the site, sadly.
Quote:
Originally Posted by nohal View Post
Rick...
Take on the panic harness and simply let them fix it as usually. There really is no need to start a storm of posts every time something has a hiccup. If the problem persists, we will take care of it.
Pavel
rgleason 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
Long Time Lurker, First Time Poster - hello to all jinbtown Meets & Greets 14 26-09-2013 21:32
Hello! Long time lurker, first time poster. Zomgie Meets & Greets 6 31-07-2013 23:30
Server Errors on the Server Errors thread Tom Stormcrowe Forum Tech Support & Site Help 11 24-08-2012 06:51
Long-Time Listener, First-Time Caller irvus Meets & Greets 10 15-07-2011 19:37
First time poster, long time sailer. Richkd Meets & Greets 16 31-08-2008 06:18

Advertise Here


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


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.