Hello, I am trying to get OpenCPN to launch on Opensuse LEAP 42.2 and seem to be running into an error. The installation (via package search on opensuse website) itself went smoothly using YaST “one-click” but when I go into launch menu from the desktop OpenCPN doesn’t launch. From the command line I get the following error:
linux-mk3d:~ # opencpn
opencpn: relocation error: opencpn: symbol _ZTV21wxwxSizerItemListNode, version WXU_3.0 not defined in file libwx_gtk2u_core-suse.so.1 with link time reference
I was not able to track down the log files as it was empty in the YaST utility. Anyone have pointers on what the best course of action should be to fix the relocation error?
According to https://en.opensuse.org/OpenCPN you shall read a pdf https://fr.opensuse.org/images/d/dd/OpenCPN-WX3-HowTo.pdf. I haven’t tested yet. We’ll see who is first with a reply of result.
Thanks so much for your pointer. I did try changing the Libwx settings in YaST as the PDF explains and clicked accept for YaST to update and OpenCPN still doesn’t open. When I relaunch YaST and do wx library search the old libwx are checked instead of the CPN libwx ones previously selected in YaST. I am running firefox and did the 1 click download…
Is there a way to ‘hardwire’ change those settings from the command line? I’ll keep playing along these lines now that you’ve narrowed down where to find the specific problem. Please ping me with any other ideas…
Tested and it works here.
I choose the repository and select each and every wx package set the version to the :Geo repository.
Sorry, don’t know how to do it in command, to set repository.
Okay, I believe I got all the libwx changed and still will not open due to the following conflicts.
Beta:~ # opencpn
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8),
and wxAUI used 3.0 (wchar_t,compiler with C++ ABI 1002,STL containers,compatible with 2.8).
Aborted (core dumped)
Please let me know if any of you have encountered this before. Perhaps this error means I may have to dive in and try to get the source code to compile from scratch. Its been ages since I’ve used linux so hoping to ease into the pool with YasT and other creative suggestions:)
Did you change the “wxWidgets-3_0-plugin-sound_sdlu-3_0 - wxWidgets SDL Plugin” package also, not jus libs?
Thanks you. Got it up and running now:) Double checked all the libwx versions and rebooted so now Im in.