Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 27-10-2019, 06:30   #616
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Development Debugging Environment - Setup Help

Just follow the instructions, download the source, build, done.
nohal is offline   Reply With Quote
Old 27-10-2019, 07:31   #617
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

Hans,

What Visual Studio version are you using?
transmitterdan is offline   Reply With Quote
Old 27-10-2019, 07:37   #618
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by transmitterdan View Post
Hans,

What Visual Studio version are you using?
I am planing use VS 2017. Is this good or should I go for VS 2019.
Previously I have used 2015. OS = Win7.

/Hans
hasse_A is offline   Reply With Quote
Old 27-10-2019, 09:02   #619
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,160
Re: Development Debugging Environment - Setup Help

Hasse..
I have used the 7z as of below copy and decompressed it direct to C:\
Then followed Pavel's description how to built it for release and debug. Also remember to update environment variables accordingly.

Håkan


Quote:
Source Files and Documentation.
If you intend to build wxWidgets from sources (which is recommended), please do NOT download the files using the "Source code" links just above, which are automatically generated by GitHub and don't contain the submodules sources which are necessary for building wxWidgets.
Instead, download one of wxWidgets-3.1.2.zip or wxWidgets-3.1.2.7z, for much smaller size, for Microsoft Windows systems or wxWidgets-3.1.2.tar.bz2 for Unix ones, including macOS. These archives have exactly the same contents, but use the line endings appropriate for the corresponding platform.
Hakan is offline   Reply With Quote
Old 27-10-2019, 15:24   #620
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by hasse_A View Post
I am planing use VS 2017. Is this good or should I go for VS 2019.
Previously I have used 2015. OS = Win7.

/Hans
Hans,

You can use VS 2017 and it will work. I am willing to help you set up a build environment in Windows. Send me a private message and we can talk about it so I understand what you want to do.
transmitterdan is offline   Reply With Quote
Old 31-10-2019, 10:10   #621
Registered User

Join Date: Dec 2014
Posts: 13
Re: Development Debugging Environment - Setup Help

Trying to build in linux mint 18.3


getting this error on make:



/usr/bin/ld: cannot find -lwx_gtk2u_webview-3.0


any (helpful) advice?


Thanks.
ewzachmann is offline   Reply With Quote
Old 31-10-2019, 12:04   #622
Registered User

Join Date: Dec 2014
Posts: 13
Re: Development Debugging Environment - Setup Help

eric@eric-OptiPlex-960 ~/OpenCPN/build $ wx-config --cxxflags --libs
-I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread
-L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 s
ewzachmann is offline   Reply With Quote
Old 31-10-2019, 12:43   #623
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

Quote:
Originally Posted by ewzachmann View Post
Trying to build in linux mint 18.3


getting this error on make:



/usr/bin/ld: cannot find -lwx_gtk2u_webview-3.0


any (helpful) advice?


Thanks.
What happens if you do this:

sudo apt-get install libwxgtk-webview3.0
transmitterdan is offline   Reply With Quote
Old 01-11-2019, 02:33   #624
Registered User

Join Date: Dec 2014
Posts: 13
Re: Development Debugging Environment - Setup Help

Doh! Did not even try the obvious thing. That was it...thanks.
ewzachmann is offline   Reply With Quote
Old 01-11-2019, 11:22   #625
Registered User

Join Date: Dec 2014
Posts: 13
Re: Development Debugging Environment - Setup Help

cmake -G "Eclipse CDT4 - Unix Makefiles" ../

...

CMake Warning in CMakeLists.txt:
The build directory is a subdirectory of the source directory.

This is not supported well by Eclipse. It is strongly recommended to use a
build directory which is a sibling of the source directory.


-- Generating done
-- Build files have been written to: /home/eric/OpenCPN/build


And for the life of me I can't get it into eclipse, building and running...are there some more detailed instructions on how to do this available?

Thanks
ewzachmann is offline   Reply With Quote
Old 22-04-2020, 04:59   #626
Registered User

Join Date: Apr 2020
Posts: 2
Re: Development Debugging Environment - Setup Help

Hello developers,


I would be interested, how you set the wxWidgets_ROOT_DIR path/variable during the OpenCPN build or later in Visual Studio 2017 on Windows 10.


I set it in the X86 terminal, the build completed successfully, but the Visual Studio the debugger is not able to find files in the ...\Sources\wxWidgets\lib\vc_dll directory.


Thanks a lot




Dirk K. is offline   Reply With Quote
Old 22-04-2020, 07:30   #627
Registered User

Join Date: Apr 2020
Posts: 2
Re: Development Debugging Environment - Setup Help

... found it myself. You have to set relative path in the environment variables. Absolute path are not working.
Dirk K. is offline   Reply With Quote
Old 22-04-2020, 13:09   #628
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

Dirk,

There may be other things you have to do for successful debugging with VS2017. For example, the plugins don’t automatically get copied to the right folder. Be sure you know what folders O is using for things like plugins and data files.

When VS starts the debug version, the local directory is the debug folder, not the build folder. That’s why your wxWidgets path doesn’t work. But even then you will have difficulty because O does not supply debug versions of wxWidgets libraries so debugging will be severely hampered.
transmitterdan is offline   Reply With Quote
Old 10-05-2020, 05:19   #629
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,654
Images: 2
Re: Development Debugging Environment - Setup Help

Trying to build Windows and after



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


Quote:
- *** Added plugin: C:/Users/Rick/Documents/GitHub/OpenCPN/plugins/dashboard_pi
-- *** Staging to build grib_pi ***
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR JPEG_LIBRARIES)
-- Using bundled jasper library...
-- *** Added plugin: C:/Users/Rick/Documents/GitHub/OpenCPN/plugins/grib_pi
-- Build type: Release
Where might I find these libraries? How to include? Or do I need them?

Also after building and I try to run debug mode I get "missing archive.dll and missing expat" etc.

These files exist in buildwin, but I reinstalled the opencpn buildwin 4.99 package and I have put in an additional path to buildwin, and still get these messages.


Should I just start over with a new git clone?
rgleason is offline   Reply With Quote
Old 10-05-2020, 06:21   #630
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,654
Images: 2
Re: Development Debugging Environment - Setup Help

It builds release and debug versions from the command line without errors.
So it must be something I am not doing properly in MS Visual Studio.
rgleason is offline   Reply With Quote
Reply

Tags
environment


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


Advertise Here


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


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.