-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pypilot plugin rejected on Ubuntu 22.04 #37
Comments
Is this still relevant? Does it occur building from source? |
Compiling is very difficult for me on Ubuntu, even with this trick: https://syzeehond.blogspot.com/2023/11/various-tricks.html Now I'm getting this:
|
did you do the git submodule init?
…On 12/27/23, marcobergman ***@***.***> wrote:
Compiling is very difficult on Ubuntu, even with this trick:
https://syzeehond.blogspot.com/2023/11/various-tricks.html
Now I'm getting this:
```
-- CMakeLists: Adding target link libraries to pypilot_pi
CMake Error at CMakeLists.txt:235 (add_subdirectory):
add_subdirectory given source "opencpn-libs/api-17" which is not an
existing directory.
```
--
Reply to this email directly or view it on GitHub:
#37 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
That did the trick! You might want to put this in the README. The repository now shows a rather useless legal thing.
|
Yes, well either the install script needs to go into ~/.local or opencpn should load plugins from /usr/local (I hacked mine so it does) Not sure what the eventual solution will be. |
@marcobergman Marco, can you try the new version in PIM 0.40.31? Hopefully it works now. If so, please close this. Thanks. |
I checked that (i.e. PIM 0.40.31) earlier and I just checked it again, but the one from the master plugin catalog invariantly creates the problems described in this issue. The one compiled straight from github doet not create those problems. |
Thanks, sent to Dave, perhaps he has some ideas. |
Marco... |
Dave, Marco wrote 3 hrs ago:
Its weird... |
Marco, do other TP FE2 plugins from PIM fail like this? Climatology 1.6.31, Squiddio 1.3.91, Autopilot_route 0.4.31? @dave: Also suggest reading what Sean wrote above about location. |
I need to see Marco's exact configuration and CLI commands which built a working plugin. How, exactly, do they differ from the canonical CCI build and workflow? |
For Sean: The other new plugin builds mentioned by Rick above load and run on ubuntu 22.04 just fine. |
Ok sorry for the delay, this is what I did:
The edit that I made to PluginConfigure.cmake was to circumvent the problems I get within this constellation regarding wxwidgets. I have struggled before with that compiling plugins on Ubuntu, the solution appeared to disable GTK2, as described in this link. You and/or Rick could not recognize this issue in the past (I think, will dig up details after this), so I got the solution from somewhere else. |
Oh, and I added WaylandEnable=false to /etc/gdm3/custom.conf, further to this exchange. |
If I undo the changes to PluginConfigure.cmake, I'll get this:
|
Why aren't you installing the plugin from PIM (Plugin Manager?) and why didn't you make this clear to begin with? |
Marco...
|
Confirmed on 22.04, thx! |
Marco... $ ldd ~/.local/lib/opencpn/libpypilot.so And, if not too much trouble, get the latest tarball from Cloudsmith, extract it, and run "ldd" against the libpypilot.so found in the tarball? Obviously, we are looking for differences in the output of "ldd" for the two cases. |
I presume you meant libpypilot_pi.so. If I strip the hex addresses off the output of ldd, the output is identical. The .so files have quite different sizes, though. This is what I did, output attached:
compiled_from_source_1232744.txt diff2.txt is empty |
Marco... Please update the plugin catalog, load pypilot_pi v0.40.31.2, and confirm/close. Thanks again |
Installing Ubuntu desktop 22.04 and opencpn from ppa:opencpn/opencpn, the pypilot plugin is non-functional, then rejected right after restart of opencpn.
The opencpn.log file mentions
undefined symbol: _ZNK13wxGLCanvasEGL15IsShownOnScreenEv, version WXU_3.2
(see below).Starting OCPN with Wayland disabled (
GDK_BACKEND=x11 opencpn
or puttingWaylandEnable=false
in /etc/gdm3/custom.conf) does not solve the problem.The text was updated successfully, but these errors were encountered: