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 21-07-2021, 04:36   #2701
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Beta Test / Technical

When compiling and then installing wxWidgets-3.0.5 in Ubuntu 20.04 I got a raft of deprecated notices. Is this normal?
Mostly associated with gtk-2.0 and glib 2.0

Examples:

Quote:
/usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here
685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36;
| ^~~~~~~~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
from /usr/include/gtk-2.0/gtk/gtktoolbutt
and

Quote:
usr/include/glib-2.0/glib/gtypes.h:545:26: note: declared here
545 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
| ^~~~~~~~
It seemed to complete and cleanup however.

Quote:
*** SIGINT received ***
Restoring overwritten files from backup...OK
Cleaning up...OK
Bye.
rgleason@rgleason-VirtualBox:~/wx/wxWidgets-3.0.5/gtk-build$
rgleason is offline   Reply With Quote
Old 21-07-2021, 04:45   #2702
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Beta Test / Technical

Previously, I incorrectly downloaded, expanded and compiled ~wx/wxWidgets-3.1.2 (coming from windows background). Should I remove that somehow?
rgleason is offline   Reply With Quote
Old 21-07-2021, 05:00   #2703
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Beta Test / Technical

Now back to try building opencpn


Quote:
rgleason@rgleason-VirtualBox:~/Projects/opencpn/build$ cmake ../
-- cmake version: 3.16.3
-- *** Host Build Architecture is x86_64
-- Setting C++11 standard via cmake standard mechanism
-- Default compiler options:
-- CMAKE_CXX_FLAGS:
-- CMAKE_CXX_FLAGS_DEBUG: -g
-- CMAKE_CXX_FLAGS_MINSIZEREL: -Os -DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- CMAKE_INSTALL_LIBDIR1
-- CMAKE_INSTALL_LIBDIR2 lib
-- CMAKE_INSTALL_LIBDIR3 lib
-- Building version 5.5.0
-- *** Staging to build opencpn 5.5.0 ***
-- *** Package will NOT include documentation ***
-- Building against GTK3...
-- Found OpenGL....
-- GL Lib: /usr/lib/x86_64-linux-gnu/libGL.so/usr/lib/x86_64-linux-gnu/libGLU.so
-- GL Include: /usr/include
-- Revised GL Lib: /usr/lib/x86_64-linux-gnu/libGL.so
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS)
-- Could not find wxWidgets webview add-on
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS)
CMake Error at CMakeLists.txt:757 (message):
Cannot find wxWidgets, giving up. On linux you might want to try using
-DOCPN_FORCE_GTK3.

-- Configuring incomplete, errors occurred!
See also "/home/rgleason/Projects/opencpn/build/CMakeFiles/CMakeOutput.log".
Tried cmake -DOCPN_FORCE_GTK3.=on ../ and I got the same result. Also not finding wxWidgets.
I had previously gotten all the dependencies.


Are environment paths needed?
rgleason is offline   Reply With Quote
Old 21-07-2021, 06:36   #2704
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Beta Test / Technical

Rick...
How exactly did you build and install wxWidgets on this virtual machine?
Dave
bdbcat is offline   Reply With Quote
Old 21-07-2021, 08:16   #2705
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Beta Test / Technical

The first time, after compiling, I used
Quote:
$ sudo checkinstall
which is old and probably did not work.


Then I started all over again. Checked for gtk3


Quote:
$ dpkg -l libgtk2.0-0 libgtk-3-0
ii libgtk-3-0:amd64 3.24.20-0ubuntu1 amd64 GTK graphical user interface

ii libgtk2.0-0:amd64 2.24.32-4ubuntu4 amd64 GTK graphical user interfaceon


$ sudo apt-cache search libwxgt*
libwxgtk-media3.0-gtk3-0v5 - wxWidgets Cross-platform C++ GUI toolkit (GTK 3 media library runtime)
libwxgtk-media3.0-gtk3-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK 3 media library development)
libwxgtk-webview3.0-gtk3-0v5 - wxWidgets Cross-platform C++ GUI toolkit (GTK 3 webview library runtime)
libwxgtk-webview3.0-gtk3-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK 3 webview library development)
libwxgtk3.0-gtk3-0v5 - wxWidgets Cross-platform C++ GUI toolkit (GTK 3 runtime)
libwxgtk3.0-gtk3-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK 3 development)
rgleason@rgleason-VirtualBox:~$
Then followed Use CASE A here:
https://wiki.wxwidgets.org/Compiling...etting_started




Download the Linux wxWidgets tarball and expand into ~wx/wxWidgets-3.0.5
Quote:
cd ~/wx/wxWidgets-3.0.5
mkdir gtk-build # name is not relevant, use what you like
cd gtk-build
../configure --with-gtk=3 --with-opengl Notes indicate no opengl support
make -j3 processor support
INSTALL when make is done without error On Ubuntu install is to 'usr/local/lib'.

Quote:
sudo make install
make clean
Make clean is optional, but should be used to delete the temporary files which are quite large.
On some systems you need to rebuild the library cache and make sure your new library is found everywhere in the system. Its a bit like registering a DLL in Windows. Its required on Ubuntu.

Quote:
sudo ldconfig
TEST
Quote:
wx-config --version // e.g. yields "3.1.3"
wx-config --list // e.g. "Default config is gtk3-unicode.3.1"

the program is not found or does nothing at all, it did not work and you need to go back to search for an error somewhere. First try to go to the 'bin' directory of your compiled library and try again.
These did not work for me.

I went back to the wxwidgets-3.0.5 directory and built a sample program and it worked.


Quote:
cd gtk-build/samples/minimal
make
./minimal
Neither of the wx-config commands worked so I executed the recommended commang below


Quote:
rgleason@rgleason-VirtualBox:~/wx/wxWidgets-3.0.5/gtk-build$ wx-config --list

Command 'wx-config' not found, but can be installed with:

sudo apt install libwxbase3.0-dev # version 3.0.4+dfsg-15build1, or
sudo apt install libwxgtk3.0-gtk3-dev # version 3.0.4+dfsg-15build1
Which installed the packages again.


After that I was able to build OpenCPN.
What did I do wrong, how should I do it?
rgleason is offline   Reply With Quote
Old 21-07-2021, 16:56   #2706
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Beta Test / Technical

Rick...
Unless you just want to, there is no need to compile wxWidgets on your linux virtual system.
You might refer to the highly acclaimed OpenCPN Wiki, DeveloperGuide/CompilingLinux:


Code:
$ sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libgtk3.0-gtk3-dev libglu1-mesa-dev libgtk2.0-dev libgtk3-dev wx3.0-headers libbz2-dev libtinyxml-dev libsndfile1-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev libarchive-dev liblzma-dev libexif-dev libelf-dev libsqlite3-dev
That long line will fetch and install all the development libraries and files that you need.

I use it frequently.

Dave

bdbcat is offline   Reply With Quote
Old 21-07-2021, 17:24   #2707
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Beta Test / Technical

[QUOTE=bdbcat;3449301]Rick...
Unless you just want to, there is no need to compile wxWidgets on your linux virtual system.
You might refer to the highly acclaimed OpenCPN Wiki, DeveloperGuide/CompilingLinux:

Quote:
$ sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libgtk3.0-gtk3-dev libglu1-mesa-dev ..That long line will fetch and install all the development libraries and files that you need.

I use it frequently.
Thanks Dave that is helpful. I did use that same line when I started. In fact I think it was the first one, then I went on to trying to compile and install widgets.

Now I understand that is all of the dependencies needed.
rgleason is offline   Reply With Quote
Old 30-07-2021, 20:04   #2708
Registered User

Join Date: Mar 2011
Posts: 651
Re: Beta Test / Technical

Am I correct in assuming that the chart mode is reflected in Plugin_Viewport.rotation parameter returned from API's such RenderOverlay ?

Eg. If North Up, rotation = 0.0, if Heading Up, rotation = heading (+ve or -ve dependant on heading)
stevead is offline   Reply With Quote
Old 31-07-2021, 06:58   #2709
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Beta Test / Technical

Steve...
That is correct.


Dave
bdbcat is offline   Reply With Quote
Old 09-08-2021, 16:20   #2710
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,631
Images: 2
Re: Beta Test / Technical

Emirates Team New Zealand is looking for a Control Systems Engineer for Autopilots.
It might be a role that Sean could fill, but I am not sure he is interested.
rgleason is offline   Reply With Quote
Old 09-08-2021, 18:36   #2711
Registered User

Join Date: Jun 2010
Location: St. Petersburg, Florida
Boat: Gemini 3200
Posts: 982
Re: Beta Test / Technical

There's no doubt the culture clash between Sean and Emirates Team New Zealand would be amazing to watch.
fgd3 is offline   Reply With Quote
Old 27-08-2021, 03:33   #2712
Registered User

Join Date: Mar 2011
Posts: 651
Re: Beta Test / Technical

Seeking some sage advice.

Given the following definition:
Quote:
• Each two decimal digits shall be encoded as the equivalent value in hexadecimal. As an MMSI
number is nine (9) digits long a trailing zero will be added.
• So a MMSI of 123456789 shall be encoded as 0x0C ( = 12 ), 0x22 ( = 34 ), 0x38 ( = 56 ), 0x4E ( = 78 ) and 0x5A ( = 90 ).
• When displaying the MMSI the trailing zero should be removed.
If you were to coding this to create the payload (lets say a vector of unsigned char), how would you interpret the above ?
Code:
std::vector<unsigned char> data;
// Assume MMSI Number of 338375832 
// Append a trailing zero
data.push_back(33);
....
data.push_back(83);
data.push_back(20);
The reason I am asking is that if I craft my own NMEA 2000 message and transmit it to a well known brand of chart plotter, the only way I can get it to receive the correct & meaningful message is to interpret the value as hex (base 16) instead of decimal (base 10).
Eg.
Code:
data.push_back(0x33);
...
data.push_back(0x83);
data.push_back(0x20);
Am I having a blonde moment in trying to understand the standard or does one think the chartplotter is at fault ?

And if anyone is curious, this is regarding NMEA 2000 DSC stuff.
stevead is offline   Reply With Quote
Old 27-08-2021, 03:47   #2713
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,934
Re: Beta Test / Technical

Quote:
Originally Posted by bdbcat View Post
Rick...
Not likely. The issue is not technical.
It is simply (or not) a conflict between Apple's TOS and the GPL2 license, preventing the use of Apple's distribution network for GPL apps. Until or unless this changes, OCPN will not be available on IOS.



Dave
Could it be distributed as source? And a user would need to compile it themselves?
__________________
-Warren
wholybee is offline   Reply With Quote
Old 27-08-2021, 04:15   #2714
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Beta Test / Technical

Quote:
Originally Posted by wholybee View Post
Could it be distributed as source? And a user would need to compile it themselves?
First thing you will need are the wxWidgets libraries for iOS.
CarCode is offline   Reply With Quote
Old 27-08-2021, 06:31   #2715
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: Beta Test / Technical

Quote:
Originally Posted by stevead View Post
Seeking some sage advice.

Given the following definition:


If you were to coding this to create the payload (lets say a vector of unsigned char), how would you interpret the above ?
Code:
std::vector<unsigned char> data;
// Assume MMSI Number of 338375832 
// Append a trailing zero
data.push_back(33);
....
data.push_back(83);
data.push_back(20);
The reason I am asking is that if I craft my own NMEA 2000 message and transmit it to a well known brand of chart plotter, the only way I can get it to receive the correct & meaningful message is to interpret the value as hex (base 16) instead of decimal (base 10).
Eg.
Code:
data.push_back(0x33);
...
data.push_back(0x83);
data.push_back(0x20);
Am I having a blonde moment in trying to understand the standard or does one think the chartplotter is at fault ?

And if anyone is curious, this is regarding NMEA 2000 DSC stuff.
Are you sure Kees did not already do all you need in https://github.com/canboat/canboat/? I see many DSC related PGNs being handled there.
nohal 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
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 15:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 04:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 14:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 16:25

Advertise Here


All times are GMT -7. The time now is 02:50.


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.