I reverted to my backup and upgraded just OpenPlotter and not OpenCPN, but this hasn't changed the version of OpenCPN installed and the same problem happens.
I also found that I have two different versions of the opencpn executable on the RPi (see below). The one being used is in "/usr/bin" (version 4.8) but if I run the version in "/media/pi/root/usr/bin" (version 4.6.1) then this does start-up properly.
-rwxr-xr-x 1 root root 4808688 Aug 12 03:40 /usr/bin/opencpn
-rwxr-xr-x 1 root root 4784096 Apr 1 04:02 /media/pi/root/usr/bin/opencpn
I've also found that if I try to run OpenCPN (/usr/bin/opencpn) in portable mode (-p) from the terminal then messages are shown as follows:
pi@openplotter:~ $ opencpn -p
22:34:19 BST:
________
22:34:19 BST: 2017-08-15
22:34:19 BST: ------- Starting OpenCPN -------
22:34:19 BST: Version 4.8.0 Build 2017-08-11
22:34:19 BST: wxWidgets version: wxWidgets 3.0.0 Linux 32 bit wxGTK
22:34:19 BST: MemoryStatus: mem_total: 923 mb, mem_initial: 23 mb
22:34:19 BST: SData_Locn is /usr/bin/
22:34:19 BST: PrivateDataDir is /usr/bin/
22:34:19 BST: Creating new Config_File: /usr/bin/opencpn.conf
22:34:19 BST: Switch InlandEcdis mode Off
22:34:19 BST: Setting Viewpoint Lat/Lon 33.358, -79.282
22:34:19 BST: Setting Ownship Lat/Lon 33.358, -79.282
22:34:19 BST: No styles found at: /usr/bin/uidata/
22:34:19 BST: No styles found at: /usr/bin/
22:34:19 BST: No styles found at: /usr/bin/.opencpn/
22:34:19 BST: The requested style was not found:
22:34:19 BST: Using SVG Icons
22:34:19 BST: The requested style was not found: Traditional
And if I run "sudo opencpn -p" then the following is displayed in a pop-up window:
Failed to initialize the user interface. OpenCPN cannot start. The necessary configuration files were not found. See the log file at /usr/bin/opencpn.log for details.
The contents of /usr/bin/opencpn.log are the same as what I pasted above from running opencpn -p.
Do these messages show what the problem is? Can anyone make sense of this and let me know what I should do? Should I simply copy /media/pi/root/usr/bin/opencpn to /usr/bin/opencpn or is a config change required or should more files be copied?!
Jon
I also found that I have two different versions of the opencpn executable on the RPi (see below). The one being used is in "/usr/bin" (version 4.8) but if I run the version in "/media/pi/root/usr/bin" (version 4.6.1) then this does start-up properly.
-rwxr-xr-x 1 root root 4808688 Aug 12 03:40 /usr/bin/opencpn
-rwxr-xr-x 1 root root 4784096 Apr 1 04:02 /media/pi/root/usr/bin/opencpn
I've also found that if I try to run OpenCPN (/usr/bin/opencpn) in portable mode (-p) from the terminal then messages are shown as follows:
pi@openplotter:~ $ opencpn -p
22:34:19 BST:
________
22:34:19 BST: 2017-08-15
22:34:19 BST: ------- Starting OpenCPN -------
22:34:19 BST: Version 4.8.0 Build 2017-08-11
22:34:19 BST: wxWidgets version: wxWidgets 3.0.0 Linux 32 bit wxGTK
22:34:19 BST: MemoryStatus: mem_total: 923 mb, mem_initial: 23 mb
22:34:19 BST: SData_Locn is /usr/bin/
22:34:19 BST: PrivateDataDir is /usr/bin/
22:34:19 BST: Creating new Config_File: /usr/bin/opencpn.conf
22:34:19 BST: Switch InlandEcdis mode Off
22:34:19 BST: Setting Viewpoint Lat/Lon 33.358, -79.282
22:34:19 BST: Setting Ownship Lat/Lon 33.358, -79.282
22:34:19 BST: No styles found at: /usr/bin/uidata/
22:34:19 BST: No styles found at: /usr/bin/
22:34:19 BST: No styles found at: /usr/bin/.opencpn/
22:34:19 BST: The requested style was not found:
22:34:19 BST: Using SVG Icons
22:34:19 BST: The requested style was not found: Traditional
And if I run "sudo opencpn -p" then the following is displayed in a pop-up window:
Failed to initialize the user interface. OpenCPN cannot start. The necessary configuration files were not found. See the log file at /usr/bin/opencpn.log for details.
The contents of /usr/bin/opencpn.log are the same as what I pasted above from running opencpn -p.
Do these messages show what the problem is? Can anyone make sense of this and let me know what I should do? Should I simply copy /media/pi/root/usr/bin/opencpn to /usr/bin/opencpn or is a config change required or should more files be copied?!
Jon