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 23-07-2020, 07:42   #1
Registered User
 
JohnGC's Avatar

Join Date: Mar 2018
Location: SW UK
Boat: Moody 44
Posts: 86
Windows build problem

I'd be grateful for a little help please.

I have been following the instructions here;

https://opencpn.org/wiki/dokuwiki/do...piling_windows

Everything ran smoothly until I tried to build OpenCPN. This line;

cmake -G "Visual Studio 15 2017" -T v141_xp ..

results in;

Z:\opencpn_dev\OpenCPN\build>cmake -G "Visual Studio 15 2017" -T v141_xp ..
-- Selecting Windows SDK version 10.0.16299.0 to target Windows 10.0.18363.
-- cmake version: 3.15.0-rc1
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- *** Build Architecture is i386
-- Setting C++11 standard via cmake standard mechanism
-- Default compiler options:
-- CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR /EHsc
-- CMAKE_CXX_FLAGS_DEBUG: /MDd /Zi /Ob0 /Od /RTC1
-- CMAKE_CXX_FLAGS_MINSIZEREL: /MD /O1 /Ob1 /DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE: /MD /O2 /Ob2 /DNDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /DNDEBUG
-- Building version 5.2.0
-- *** Staging to build opencpn 5.2.0 ***
-- *** Package will include documentation ***
-- Found OpenGL....
-- GL Lib: opengl32glu32
-- GL Include:
-- Revised GL Lib: opengl32
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS gl net xml html adv aui core base webview)
-- Could not find wxWidgets webview add-on
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS gl net xml html adv aui core base)
CMake Error at CMakeLists.txt:739 (message):
Cannot find wxWidgets, giving up. On linux you might want to try using
-DOCPN_FORCE_GTK3.


-- Configuring incomplete, errors occurred!
See also "Z:/opencpn_dev/OpenCPN/build/CMakeFiles/CMakeOutput.log".

Z:\opencpn_dev\OpenCPN\build>


I've attached the log file which is renamed as a PDF.

I have added the wxWidgets path to both the user variables and the system variables.
wxWIDGETS_ROOT_DIR Z:\opencpn_dev\wxWidgets

I'm using Windows 10 64-bit, it's fully up-to-date.

Thanks,

John
Attached Files
File Type: pdf CMakeOutput.pdf (9.7 KB, 29 views)
JohnGC is offline   Reply With Quote
Old 25-07-2020, 01:39   #2
Registered User
 
JohnGC's Avatar

Join Date: Mar 2018
Location: SW UK
Boat: Moody 44
Posts: 86
Re: Windows build problem

I'm a bit further on now.

Still following the instructions here;
https://opencpn.org/wiki/dokuwiki/do...piling_windows

I added another environment variable;
wxWidgets_INCLUDE_DIRS Z:\opencpn_dev\wxWidgets\include

It would be a good idea to add this to the instructions in the link above.

This means that I can build OpenCPN either with the command line shown in the link above or via VS17 IDE.

VisualStudio 17 gives the following error when I try to debug OpenCPN in the IDE.

Unable to start program
'Z:\opencpn_dev\OpenCPN\build\Debug\ALL_BUILD'.
The system cannot find the file specified.


Examination of the build\Debug folder confirms there are no files or sub-folders named ALL_BUILD.

But there are three ALL_BUILD files one level above in build;

ALL_BUILD.vcxproj
ALL_BUILD.vcxproj.filters
ALL_BUILD.vcxproj.user


In the VS17 IDE, ALL_BUILD is the first entry in the Object Browser.

This looks like a path configuration issue or perhaps another environment variable is needed.

I'd be grateful for a pointer to fixing this as I'm new to VS.

John
JohnGC is offline   Reply With Quote
Old 25-07-2020, 13:31   #3
Registered User

Join Date: May 2012
Posts: 1,206
Re: Windows build problem

Try release? wxWidgets debug versions may not have been made.

Mike
Rasbats is offline   Reply With Quote
Old 25-07-2020, 23:35   #4
Registered User
 
JohnGC's Avatar

Join Date: Mar 2018
Location: SW UK
Boat: Moody 44
Posts: 86
Re: Windows build problem

Quote:
Originally Posted by Rasbats View Post
Try release? wxWidgets debug versions may not have been made.

Mike
I'm afraid I get exactly the same message in release mode.

The message is in a popup window and it looks as though there might be more information which isn't displayed. Any idea where that might be located?

John
JohnGC is offline   Reply With Quote
Old 26-07-2020, 03:35   #5
Registered User

Join Date: May 2012
Posts: 1,206
Re: Windows build problem

John...

Tried to build 5.2 here and I am having big problems as well.

Mike
Rasbats is offline   Reply With Quote
Old 26-07-2020, 06:20   #6
Registered User

Join Date: May 2012
Posts: 1,206
Re: Windows build problem

John...

Got there. Instead of using the command line I used CMake-gui. This allowed me to check that I was making a unicode build. It can be set up in VS but it never seems to work for me. Also the wxWidgets libraries I use are in 'vc-dll' instead of 'vc-lib', but that may be my setup.

When making the package I found I had the wrong setting for 'dialog_pi' - 'utility' instead of 'dll', so the 'dll' was not made. Rebuilt that plugin and the 'OpenCPN' installer package could then be made.

Mike
Rasbats is offline   Reply With Quote
Old 26-07-2020, 10:44   #7
Registered User
 
JohnGC's Avatar

Join Date: Mar 2018
Location: SW UK
Boat: Moody 44
Posts: 86
Re: Windows build problem

Hi Mike,

I've been trying to build from the VS17 IDE and then run in the IDE debugger. Is this a mistake?

There are loads of build warnings and trawling though them will take quite a while. Mostly they are for explicit casts and unchanged variables and can probably be ignored. But among them maybe something important!

I don't have dialog_pi in my solution explorer, should I?

The build process creates build\Debug\opencpn.exe

But when I try to run it I get a message to say wxmsw312ud_gl_vc_custom.dll can't be found. It is in wxWidgets\lib\vc_dll but I don't know how to let opencpn.exe find it. Is there an environment variable that control this or should it simply be copied to the opencpn.exe folder?

I'll persist when I have time.

John
JohnGC is offline   Reply With Quote
Old 26-07-2020, 12:13   #8
Registered User

Join Date: May 2012
Posts: 1,206
Re: Windows build problem

Sorry... my mistake, should have written 'dashboard_pi'. Have not tried a debug build yet, only release.

Mike
Rasbats is offline   Reply With Quote
Reply

Tags
wind


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
Windows 4 stable and Windows Beta svzephyr44 OpenCPN 0 29-09-2015 10:46
Problem with charts database build gbgb OpenCPN 2 05-09-2014 11:36
OpenCPN Build on Windows - Please Help! kenchan OpenCPN 2 25-03-2012 18:55
Raytech RNS and Windows 7 and Windows XP kene66 Marine Electronics 2 23-02-2010 14:50
What to build, what to build... Pura Vida Multihull Sailboats 67 19-05-2008 06:44

Advertise Here


All times are GMT -7. The time now is 08:52.


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.