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 18-02-2018, 12:38   #1
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
W10 build error on cairo.h

A few weeks ago, I had no problem building O on my W 10 64 bit computer...
Today I had many fatal errors, mostly (but not only) concerning cairo.h
(full git cloning, new cmake, VS 2013, git_opencpn.bat )
see pic

PS error also with
C:\Users\flonc\OneDrive\Documents\GitHub\obeta\Ope nCPN\src\wxsvg\src\svgxml\svgxml.cpp(24): fatal error C1083: Cannot open include file: 'e
xpat.h': No such file or directory [C:\Users\flonc\OneDrive\Documents\GitHub\obeta\Ope nCPN\build\WXSVG.vcxproj]
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 003.JPG
Views:	140
Size:	90.7 KB
ID:	164376  
sailorF54 is offline   Reply With Quote
Old 18-02-2018, 13:10   #2
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: W10 build error on cairo.h

Sorry, I missed the following error right at the begining
________________


Exception lors de l'appel de «DownloadFile» avec «2» argument(s): «La demande a été abandonnée: Impossible de créer un canal sécurisé
SSL/TLS.»
Au caractère Ligne:1 : 1
+ (New-Object Net.WebClient).DownloadFile('http://sourceforge.net/proje ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( [], MethodInvocationException
+ FullyQualifiedErrorId : WebException


7-Zip 18.01 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-01-28

Scanning the drive for archives:

ERROR: Le fichier spécifié est introuvable.
OpenCPN_buildwin.7z



System ERROR:
Le fichier spécifié est introuvable.
Change to build directory
Le fichier spécifié est introuvable.
sailorF54 is offline   Reply With Quote
Old 18-02-2018, 16:28   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,278
Re: W10 build error on cairo.h

The master tree is currently in the process of being migrated to use wxWidgets 3.1/3.2, Visual Studio 2017 and a new bundle with the binary dependencies for OpenCPN 5 on Windows.
The updated build instructions (only the minimal info needed, no detailed explanations at the moment) are at https://github.com/nohal/OpenCPN/wik...n-Windows---O5 for now. The new build works fine - Appveyor CI is already using it for some time.
The last codebase that is guaranteed to build with the old VS2013 based toolchain is the v4.8.2 tag (and actually a few commits after that)

Why your script fails to download the old dependency bundle is unclear - the file is still there. But Sourceforge is performing some big datacenter switch lately so there might be different problems a different moments...

Pavel
nohal is offline   Reply With Quote
Old 18-02-2018, 21:37   #4
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: W10 build error on cairo.h

Thanks Pavel
I'll give it a try...
sailorF54 is offline   Reply With Quote
Old 23-02-2018, 02:40   #5
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: W10 build error on cairo.h

Hello

At the very end of build (package version) with Visual Studio 2017 (according to
https://github.com/nohal/OpenCPN/wik...n-Windows---O5
) , I get a long list of errors such as

Code:
Création de la bibliothèque C:/OpenCPN/build/Release/opencpn.lib et de l'objet C:/OpenCPN/build/Release/opencpn.ex
  p
chart1.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: __thiscall wxColour::wxColour(cla
ss wxColour &&)" (__imp_??0wxColour@@QAE@$$QAV0@@Z) référencé dans la fonction "class wxColour __cdecl GetDimColor(clas
s wxColour)" (?GetDimColor@@YA?AVwxColour@@V1@@Z) [C:\OpenCPN\build\opencpn.vcxproj]
S57ENC.lib(s52plib.obj) : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class wxColour & __t
hiscall wxColour::operator=(class wxColour &&)" (__imp_??4wxColour@@QAEAAV0@$$QAV0@@Z) [C:\OpenCPN\build\opencpn.vcxpro
j]
toolbar.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class wxColour & __thiscall wxCo
lour::operator=(class wxColour &&)" (__imp_??4wxColour@@QAEAAV0@$$QAV0@@Z) [C:\OpenCPN\build\opencpn.vcxproj]
glChartCanvas.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class wxColour & __thiscal
l wxColour::operator=(class wxColour &&)" (__imp_??4wxColour@@QAEAAV0@$$QAV0@@Z) [C:\OpenCPN\build\opencpn.vcxproj]
WXSVG.lib(SVGAnimatedType.obj) : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class wxColou
r  & __thiscall wxColour::operator=(class wxColour &&)"  (__imp_??4wxColour@@QAEAAV0@$$QAV0@@Z) [C:\OpenCPN\build\opencpn
.vcxproj]
....

PS note a simple typo in

git clone https://github/com/OpenCPN/OpenCPN

instead of

git clone https://github.com/OpenCPN/OpenCPN
sailorF54 is offline   Reply With Quote
Old 23-02-2018, 03:59   #6
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,278
Re: W10 build error on cairo.h

Quote:
Originally Posted by sailorF54 View Post
Hello

At the very end of build (package version) with Visual Studio 2017 (according to
https://github.com/nohal/OpenCPN/wik...n-Windows---O5
) , I get a long list of errors such as

Code:
Création de la bibliothèque C:/OpenCPN/build/Release/opencpn.lib et de l'objet C:/OpenCPN/build/Release/opencpn.ex
  p
chart1.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: __thiscall wxColour::wxColour(cla
ss wxColour &&)" (__imp_??0wxColour@@QAE@$$QAV0@@Z) référencé dans la fonction "class wxColour __cdecl GetDimColor(clas
s wxColour)" (?GetDimColor@@YA?AVwxColour@@V1@@Z) [C:\OpenCPN\build\opencpn.vcxproj]
S57ENC.lib(s52plib.obj) : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class wxColour & __t
hiscall wxColour::operator=(class wxColour &&)" (__imp_??4wxColour@@QAEAAV0@$$QAV0@@Z) [C:\OpenCPN\build\opencpn.vcxpro
j]
toolbar.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class wxColour & __thiscall wxCo
lour::operator=(class wxColour &&)" (__imp_??4wxColour@@QAEAAV0@$$QAV0@@Z) [C:\OpenCPN\build\opencpn.vcxproj]
glChartCanvas.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class wxColour & __thiscal
l wxColour::operator=(class wxColour &&)" (__imp_??4wxColour@@QAEAAV0@$$QAV0@@Z) [C:\OpenCPN\build\opencpn.vcxproj]
WXSVG.lib(SVGAnimatedType.obj) : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class wxColou
r  & __thiscall wxColour::operator=(class wxColour &&)"  (__imp_??4wxColour@@QAEAAV0@$$QAV0@@Z) [C:\OpenCPN\build\opencpn
.vcxproj]
....
Hard to say which of the problems we have seen at https://github.com/OpenCPN/OpenCPN/issues/857 you repeat.

To tell you, I would need a complete list of actions you did and your CMakeCache.txt , not just the last step that fails because one of the preceding steps was not done or done wrong.

If the build works on Appveyor, which it does, it must work on your local machine as well, unless some mistake was done. In this case the WX libraries are obviously missing or wrong, we just have to find out why.

Quote:
PS note a simple typo in

git clone https://github/com/OpenCPN/OpenCPN

instead of

git clone https://github.com/OpenCPN/OpenCPN
Fixed, thanks


Pavel
nohal is offline   Reply With Quote
Old 23-02-2018, 06:16   #7
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: W10 build error on cairo.h

Pavel, sorry to bother you again

I am somewhat confused about the wxWidgets package I should install (to build O as a package)
With the following alone,
https://sourceforge.net/projects/ope....1.7z/download
as per you github instructions, I can't even cmake the project
(I've carefully set the path)
Using an old wxWidgets-3.1.0 folder I used previously, I could (I've unfortunately deleted it )
What else should I get ?
sailorF54 is offline   Reply With Quote
Old 23-02-2018, 06:28   #8
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: W10 build error on cairo.h

What error do you get from cmake?
transmitterdan is offline   Reply With Quote
Old 23-02-2018, 06:38   #9
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: W10 build error on cairo.h

Code:
C:\OpenCPN\build>cmake -G "Visual Studio 15 2017" -T v141_xp ..
-- *** Build Architecture is i386
-- *** Staging to build opencpn 4.99.0 ***
-- *** Package will include documentation ***
-- *** Package will include GSHHS basechart level: CRUDE ***
-- *** Package will include tide and current data ***
-- Found OpenGL....
--     GL Lib: opengl32glu32
--     GL Include:
--     Revised GL Lib: opengl32
--     Adding local GLU
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
  wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.10/Modules/FindwxWidgets.cmake:953 (find_package_handle_standard_args)
  CMakeLists.txt:435 (FIND_PACKAGE)
BTW Shouldn't the architecture be amd64 ???
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 001.JPG
Views:	98
Size:	117.7 KB
ID:	164667  
sailorF54 is offline   Reply With Quote
Old 23-02-2018, 07:30   #10
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,278
Re: W10 build error on cairo.h

Quote:
Originally Posted by sailorF54 View Post
Code:
C:\OpenCPN\build>cmake -G "Visual Studio 15 2017" -T v141_xp ..
-- *** Build Architecture is i386
-- *** Staging to build opencpn 4.99.0 ***
-- *** Package will include documentation ***
-- *** Package will include GSHHS basechart level: CRUDE ***
-- *** Package will include tide and current data ***
-- Found OpenGL....
--     GL Lib: opengl32glu32
--     GL Include:
--     Revised GL Lib: opengl32
--     Adding local GLU
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
  wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.10/Modules/FindwxWidgets.cmake:953 (find_package_handle_standard_args)
  CMakeLists.txt:435 (FIND_PACKAGE)
May I see the whole CMakeCache.txt from your build folder?
Quote:
BTW Shouldn't the architecture be amd64 ???
No, we build 32bit even on 64bit windows.
nohal is offline   Reply With Quote
Old 23-02-2018, 07:37   #11
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: W10 build error on cairo.h

here it is
Attached Files
File Type: doc CMakeCache.txt.doc (39.1 KB, 42 views)
sailorF54 is offline   Reply With Quote
Old 23-02-2018, 07:44   #12
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,278
Re: W10 build error on cairo.h

Quote:
Originally Posted by sailorF54 View Post
here it is
I'm getting confused. It clearly is using some other version of wxWidgets living in C:/wxWidgets-3.1.0 - certainly not the one we talk about in the new instructions...
nohal is offline   Reply With Quote
Old 23-02-2018, 07:56   #13
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: W10 build error on cairo.h

Quote:
Originally Posted by nohal View Post
I'm getting confused. It clearly is using some other version of wxWidgets living in C:/wxWidgets-3.1.0 - certainly not the one we talk about in the new instructions...
This is bewildering. Here is the folder downloaded today. The path is on a pic above...
OK I will delete the OpenCPN folder and clone again from scratch...
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 002.JPG
Views:	106
Size:	76.4 KB
ID:	164671  
sailorF54 is offline   Reply With Quote
Old 23-02-2018, 08:44   #14
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: W10 build error on cairo.h

Build OK, package created, and O now runs fine on my computer
Only thing suspicious I found before starting anew was a register key still pointing towards 3.1.0

As always, many thanks to you, Pavel, especially for your patience...
sailorF54 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Weather Routing - Working under W10 anybody? Moo OpenCPN 29 08-01-2018 04:45
EDO on W10 ATN Marine Electronics 0 21-02-2016 11:30
Missing cairo.h and expat.h dachancellor OpenCPN 5 03-02-2016 08:01
SS City of Cairo nigel1 Flotsam & Sailing Miscellany 0 09-05-2015 05:20
sail from the Mediterranean Sea up the Niles River to Cairo sveinutne Navigation 23 15-02-2013 09:30

Advertise Here


All times are GMT -7. The time now is 04:59.


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.