-
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
Compile error: Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES) #25
Comments
Plugin Install task depends on wxWidgets_LIBRARIES
With debug enabled
Does rtlsdr_pi really need all those wxWidgets libraries?
|
don't know if it matters, but I believe wxwidgets_use_libs has been depreciated |
|
Thanks, I guess we need to add those libs first chance we get. |
Some solutions for Archlinux? |
For the current version of Opencpn 5.0 you will need version wxWidgets 3.1.2, but I know absolutely nothing about Archlinux. |
Update: i found the solution in the Dockerfile for Archlinux of MoneyManagerEx 1.4.0 branch: # fix broken wxgtk3
sudo ln -sf /usr/bin/wx-config{-gtk3,} || true |
Old post but since I was dropped here by a search engine, I give my two cents worth, working on another OpenCPN plug-in where I had the very same problem in one my test machines which I updated from Lubuntu 16.04LTS to 18.04LTS: The issue was with the alternatives versions of wxWidgets (2.8 and 3.0). The default selection made the cmake to fail. Probably I am using also the same
Solution to the "alternatives" annoyance:
Gtk2 is selected:
Let's change that:
Now OK Gtk3:
Try to build again:
Works now:
|
Thanks Petri I always learn something from you. |
As mentioned above, on *ubuntu 18.04 LTS (cmake 3.10) one needs to replace wxWidgets_USE_LIBS. But with what? You can get the selection 2 (see above), gtk2-unicode-3.0 to work, by modifying in PluginConfigure.cmake
|
Petri, this is something we'll might need to do in all plugin frontend setups, isn't it? See this concurrent issue OpenCPN/OpenCPN#1898 |
Rick, probably you do not want to enforce it everywhere. "If it ain' t broke, don' t fix it." Ubuntu 18.04LTS is the only platform on which I have had this issue. And there is 20.04LTS already, what will be the problem there, who knows? On Debian 10 there is an issue with wxWebView... it never ends! I noticed this on a Travis build for 18.04 LTS - it goes unnoticed - binary without a test is not a binary! Fix like this is not a big deal once you know where the problem is. Seeing the Travis issue, maybe, in your CI template for plug-ins, you could start looking for a scripted solution to prepare various platforms, something like in this script from OpenCPN v5.1 beta: https://git.io/JfcNi . The investment to embed this wisdom in build processes for stable platforms like the LTSs would not be useless but, of course it will be a big investment, human resource wise. |
Out of curiosity, I installed Ubuntu 20.04LTS and OpenCPN v5.0 and also v5.1beta. There is no ambiguity with "alternative" GTK-version anymore: there is only one, the sharp-looking GTK3 available! From the build point of view it is simpler for the plug-in than 18.04LTS (which I am personally going to drop now, too much hassle). Nevertheless, to find wxWidgets, one needs to use method explained above. In addition, in order to not to have ambiguity (there is always one!) with OpenGL version with CMake v3.17, one can add - if your plug-in needs those functions:
For memory, in Ubuntu 18.04LTS CMake version is 3.10. The above policy was introduced in 3.12. |
FYI on Ubuntu 22.04 I had to use: apt install libwxgtk-media3.0-gtk3-dev gettext |
Kubuntu 18.04.3 LTS
Which version or package of wxWidgets is it missing?
Here's what is currently installed...
The text was updated successfully, but these errors were encountered: