|
03-03-2018, 18:55
|
#1
|
Registered User
Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 3,571
|
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
|
|
|
03-03-2018, 19:21
|
#3
|
Registered User
Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 3,571
|
Re: Errors compiling for first time
Quote:
Originally Posted by nohal
|
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.
|
|
|
04-03-2018, 06:39
|
#4
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,123
|
Re: Errors compiling for first time
|
|
|
04-03-2018, 06:50
|
#5
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,123
|
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."
|
|
|
04-03-2018, 07:02
|
#6
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,288
|
Re: Errors compiling for first time
Quote:
Originally Posted by rgleason
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
|
|
|
04-03-2018, 08:37
|
#7
|
Registered User
Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 3,571
|
Re: Errors compiling for first time
Quote:
Originally Posted by nohal
|
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
|
|
|
04-03-2018, 08:43
|
#8
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,288
|
Re: Errors compiling for first time
Quote:
Originally Posted by wholybee
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...
|
|
|
04-03-2018, 09:20
|
#9
|
Registered User
Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 3,571
|
Re: Errors compiling for first time
Quote:
Originally Posted by nohal
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.
|
|
|
04-03-2018, 12:44
|
#10
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,123
|
Re: Errors compiling for first time
It works now Thanks. I don't like the site, sadly.
Quote:
Originally Posted by nohal
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
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|