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 20-05-2024, 18:27   #1921
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,194
Re: OpenCPN General

Bruce..
Very good news! Persistence wins.
Thank you for your commitment.
Hakan is offline   Reply With Quote
Old 20-05-2024, 23:10   #1922
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mčtres
Posts: 3,003
Re: OpenCPN General

Quote:
Originally Posted by bbalan View Post
Success at Google Play!
Hi All,
Our efforts with emails and messages have paid off. Only the official version of OpenCPN is now available at the Google Play store.
Sigh of relief.
Cheers,
Bruce
Wouahhhh .... Hourahhhhhhh ...... Bravo ......

Does anyone know what happened to this ?

Gilletarom.
Gilletarom is offline   Reply With Quote
Old 21-05-2024, 02:25   #1923
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,693
Images: 2
Re: OpenCPN General

Quote:
Originally Posted by bbalan View Post
Success at Google Play!


Hi All,
Our efforts with emails and messages have paid off. Only the official version of OpenCPN is now available at the Google Play store.

Sigh of relief.
Cheers,
Bruce



Thanks Bruce. That is great news.
rgleason is offline   Reply With Quote
Old 03-06-2024, 12:20   #1924
Registered User

Join Date: Dec 2017
Location: Circumnavigating - in phases
Boat: Feltz, One Off, 40 ft
Posts: 43
Re: OpenCPN General

Hi.

I just set up an OpenCPN dev environment on my new macbook. Though I run into issues building or installing plugins locally. Most likely I am doing something wrong, or I miss a setting or so. Some help would be appreciated.

In short these are the steps I did, for example with shipdriver_pi:

Clone sources
cd ~/sources
git clone https://github.com/rasbats/shipdriver_pi.git

Build using circleci-build script
cd ~/sources/shipdriver_pi
rm -rf build-osx
mkdir build-osx
ci/circleci-build-macos.sh

Create the tarball
cd build-osx
make tarball

The tarball is generated properly ShipDriver-3.3.4+2406030912.bf214e0_darwin-wx32-10-arm64-x86_64.tar.gz holding 535.692 bytes

Via the Plugin Manager I can import this file as well. Though ... when I then try to update the plugin, errors are encountered.

In opencpn.log I see the following:

17:09:00.347 ERROR dlunix.cpp:120 Failed to load shared library '/Users/username/Library/Application Support/OpenCPN/Contents/PlugIns/libShipDriver_pi.dylib': dlopen(/Users/username/Library/Application Support/OpenCPN/Contents/PlugIns/libShipDriver_pi.dylib, 0x0002): symbol not found in flat namespace '_wxTheAssertHandler'

I encounter the same error for other plugins (eg. tidefinder_pi). I furthermore notice that the .dylib file that has been generated locally is much bigger than the one that comes via de plugin catalog (1.4Mb vs 724kB)

Hopefully someone has a clue on how to proceed with this .... [I already read the manuals, and the readme's]
wernertoonk is offline   Reply With Quote
Old 03-06-2024, 16:49   #1925
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,224
Re: OpenCPN General

Looks like you are probably building the plugin against different wxWidgets version than the main application.
nohal is offline   Reply With Quote
Old 03-06-2024, 23:11   #1926
Registered User

Join Date: Dec 2017
Location: Circumnavigating - in phases
Boat: Feltz, One Off, 40 ft
Posts: 43
Re: OpenCPN General

Quote:
Originally Posted by nohal View Post
Looks like you are probably building the plugin against different wxWidgets version than the main application.

Thx @nohal. Appreciated.. I am building the plugins with wxWidgets 3.2.5, the one that installs via brew. I will see if I can find what version the main application used then, try to install that and give it another go.
wernertoonk is offline   Reply With Quote
Old 04-06-2024, 03:38   #1927
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,224
Re: OpenCPN General

The problem is not the version number, but which set of libraries. Both the main application and the plugin must be built against the same, either both against Homebrew or both against the dependency bundle used by our CI builds. Also of course the build parameters must be somewhat sane (similar deployment target, both builds using the same architecture etc.)

This all comes naturally if you build both the application and the plugin locally against Homebrew and do not set any configuration at all, then the stuff simply works together. Or at least it should and does for me.

All the production CI builds are then done against the same prebuilt set of dependencies (because they need to support as old a version of macOS as possible and produce universal binaries for both AMD64 and ARM64), but you do not need that for your local development.
nohal is offline   Reply With Quote
Old 04-06-2024, 05:18   #1928
Registered User

Join Date: Dec 2017
Location: Circumnavigating - in phases
Boat: Feltz, One Off, 40 ft
Posts: 43
Re: OpenCPN General

Thx again. Very much appreciated. I wish I can say the same one day, that it all comes naturally.

My goal is to create a new plugin. For that I copied the shipdriver_pi sources and created the tarball. I cannot get that to work in the installed OpenCPN 5.8.4 (latest).

It is indeed very likely my local machine has other libraries / wxWidgets versions etc. than the pre-build 5.8.4. So best might be then to see if I can build OpenCPN myself on this machine, get that to work, and then do the same for the plugin. I noticed that results in 5.8.9, since I checked out the latest versions. Installing the package failed ('Cannot be installed on this computer') just now. Will see what else I can try to get this to work.


, be able to build and install that properly, and from there on start making the changes.

I have to tackle the issues that I run into, since otherwise I won't be able to run / test the new plugin.

Now, ... I have just the latest stable OpenCPN installed (5.8.4). That doesn't match the newly build plugin. Now what would be wise to do?

1. Build OpenCPN myself and install that
wernertoonk is offline   Reply With Quote
Old 04-06-2024, 05:28   #1929
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,224
Re: OpenCPN General

Quote:
I cannot get that to work in the installed OpenCPN 5.8.4 (latest).
That has absolutely no chance to work, 5.8.4 is Intel-only and you are trying to load an ARM plugin library to it. Can't work.

Your local ARM builds may be usable with the universal binaries from https://cloudsmith.io/~david-registe...able/packages/
nohal is offline   Reply With Quote
Old 04-06-2024, 06:43   #1930
Registered User

Join Date: Dec 2017
Location: Circumnavigating - in phases
Boat: Feltz, One Off, 40 ft
Posts: 43
Re: OpenCPN General

Quote:
Originally Posted by nohal View Post
Your local ARM builds may be usable with the universal binaries from https://cloudsmith.io/~david-registe...able/packages/
I downloaded one of the universal packages, ran that, installed the plugins I compiled locally but that resulted in the same error. So I reckon that won't lead to a solution.

Quote:
Originally Posted by nohal View Post
The problem is not the version number, but which set of libraries. Both the main application and the plugin must be built against the same, either both against Homebrew or both against the dependency bundle used by our CI builds. Also of course the build parameters must be somewhat sane (similar deployment target, both builds using the same architecture etc.)
I will see if I can get that done. First by building O against Homebrew, and the plugins as well.

For the other option (building against the dependency bundle that is used by the CI builds), where can I download that bundle?
wernertoonk 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
OpenCPN bdbcat OpenCPN 1343 19-09-2009 15:59
Hi - Just a Few Brief General Questions valley Meets & Greets 5 26-08-2009 12:19
OpenCPN with BSB v4 selkie Navigation 4 03-08-2009 11:32

Advertise Here


All times are GMT -7. The time now is 19:13.


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.