-
Notifications
You must be signed in to change notification settings - Fork 62
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
Widgets are no longer working in Ubuntu 20.04 #749
Comments
I should point out that I downloaded and installed GDL in the following way |
Just finishing compiling on u2004 the GIT version on a VM with single core :(( "test_widgets.pro" is OK for me but large amount of messages now try the install way. I just suspect a package is missing |
yes, I also have a trouble with the install version. I suspected libplplotwxwidgets1 but it is already install the complied version give better outputs A. GDL> test_widgets *** PLPLOT ERROR, ABORTING OPERATION *** *** PLPLOT ERROR, ABORTING OPERATION *** *** PLPLOT ERROR, ABORTING OPERATION *** *** PLPLOT ERROR, ABORTING OPERATION *** |
could check wheter you have $ dpkg -l 'plplot' ii plplot-driver-wxwidgets:amd64 5.15.0+dfsg-12ubuntu1 amd64 Scientific plotting library (wxWidgets driver) |
I was missing this plplot-driver-wxwidgets. I have now installed it and I get a whole lot of different messages, e.g., wxPLDevice::SetDC The DC must be set before initialisation. The device is outputting to a separate viewer, aborting operation *** PLPLOT ERROR, ABORTING OPERATION *** *** PLPLOT ERROR, ABORTING OPERATION *** *** PLPLOT ERROR, ABORTING OPERATION *** *** PLPLOT ERROR, ABORTING OPERATION *** *** PLPLOT ERROR, ABORTING OPERATION *** |
When you say the compiled version gives better outputs, are do you mean I need to download the source from github and compile it myself? Thanks! |
Yes. the problem is you not only need to download the Git version but also before you need to add a lot of packages ! $ sudo bash assuming you already have git & gcc/g++ $ git clone https://github.com/gnudatalanguage/gdl |
Thanks for the detailed instructions. On one machine, I succeed until the last step: marcos@HP-Z820:~/Downloads/gdl/build$ make -j 4 |
On the other machine, I fail here: The cmake-policies(7) manual explains that the OLD behaviors of all -- INFO: will use GNU extensions for STDIO (useful for compressed I/O) since it seems accepted by your c++ compiler. Use -DWXWIDGETSDIR=DIR to specify the wxWidgets directory tree. Use -DWXWIDGETS=OFF to not use it. (suitable Debian/Ubuntu package: libwxgtk2.8-dev) (suitable Fedora/CentOS package: wxGTK-devel) -- Configuring incomplete, errors occurred! Interestingly, I have |
I don't have your Linux system but did find that using gtk3 (from gtk2) was a problem - probably in Manjaro - that I had to bring in the gtk2 version as there were other dependencies which used it.
|
I get the values: FIND_PACKAGE_MESSAGE_DETAILS_wxWidgets:INTERNAL=[-L/usr/lib/x86_64-linux-gnu;-pthread;;;-lwx_baseu-3.0;-lwx_gtk3u_core-3.0;-lwx_gtk3u_adv-3.0][/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0;/usr/include/wx-3.0][v3.0.4()] How do I force the use of gtk2? |
concerning $ dpkg -l 'plplot' you should have * inside ! $ dpkg -l '*plplot*' Why do you have 15% ? if you stop and restart after adding a package, it migth be a good idea to fully clean up all under build (this is why I used to do with a build/) I have up to now no idea why it's failed. I have exactly the same values for FIND_PACKAGE_MESSAGE_DETAILS_wxWidgets Do you have /usr/lib/x86_64-linux-gnu/libSM.so.6 -> libSM.so.6.0.1 ?? |
If you still have the gtk2 package available, you can install gtk2 next to gtk3 without issue.
Your issue may be that plplot was built without the -DOLD_WXWIDGETS=ON flag. In that case, |
Yes, I have the same settings. I am now rebuilding from scratch each time by deleting all of the files in the build the directory. |
I followed the instructions for compiling the latest version of plplot using the DOLD_WIDGETS=ON flag and then built GDL again, and now everything seems to work with this version. (I am still having issues with running GDL on the other computer because it can't find wxwidgets, but I will try to resolve them later). Thanks a lot for your help! I will summarize the procedure below, for anyone who has the same issue. |
sudo bash Download pltplot (I used 5.15) from sourceforge.net. Unpack and install as follows: make Download the latest version of gdl: Remove the package version of gdl if installed: Now it works! Note: I had issues with this installation on a machine that had anaconda installed as user. I got around them by doing: sudo cmake .. -DGRIB=off -DPYTHON=off |
Great ! Bravo ! Since I succeed using the default packages and not you, maybe we can compare the lists of packages we have ? |
OK, please let me know how you would like to proceed. I am happy to send you whatever you need. |
list generated by $ LC_ALL=C apt list --installed > list_all_U2004.txt I think you just need to report the diff |
thanks ! than much differences ! I did not expected that much differences :( on your side I saw gcc/g++ 8 and 9 |
It is also gcc-9.3.0 for me. |
Hello, thanks to you all for being so reactive. Still, I am worried by this issue with GTK 2 vs. GTK3 in the basic ubuntu (debian) install of gnudatalanguage, because 'plplot-driver-wxwidgets...12ubuntu1' is linked with the GTK3 wxWidgets library. So everything should have worked fine, but did not. Second, the origin of the message
is cured in GDL from from some time already, at least in the current 1.0rc . We see every days obscure packages being updated to new versions, so why not gdl in ubuntu? |
the packaged version in u2004 is : Reading that man page, we can see we have to update it ! |
Note that the issue was resolved using gtk3, it was the old_wxwidgets flag that the OP needed in a custom plplot build. I suggested gtk2 - that is how my suse system is set up (after trying gtk3 and regressing) - but I don't know now why I switch it in. |
My point is, how exactly do we insure distributors (ubuntu, debian..) provide all the needed dependencies in a single install package (I see that Mageia has 'Meta-Packages' that insure up-to date install of all packages needed). People need the files in gdl/resources, under Debian they are packaged separately; We need the plplot drivers (especially the wx one), and the plplot color files (even if do not use them), etc.. We must have an install script that insure that all these dependencies are fulfilled, because otherwise it would need a very devoted packager to look to it. |
in #749 (comment) we have mention of
I also had that problem at the final linking when an Anaconda environment is present in the PATH. Usually Anaconda (python) related paths are prepended to other paths, then libs. are detected in Anaconda instead of the system. Please check before compilation that you have a clean env. (PATH) without Anaconda. |
I'm having the same problems described in this thread, but I don't fully understand some of this conversation. I'm not used to using GDL, and am unfamiliar with how it works -- I need to run some legacy code with widget GUIs and am having problems with widgets errors, e.g.,
...among other widget- and gtk-related errors, if I allow the code to proceed. I installed on Ubuntu 20.04, and it sounds like that might be the issue? Attempting to update GDL via The other (seemingly) relevant packages I have...
Running
|
Unfortunately, the widgets do not work when you install gdl the way you
did. You will have to follow the instructions here:
#749 (comment)
…On 29/05/20 11:06 am, Evan M Tilton wrote:
I'm having the same problems described in this thread, but I don't
fully understand some of this conversation. I'm not used to using GDL,
and am unfamiliar with how it works -- I need to run some legacy code
with widget GUIs and am having problems with widgets errors, e.g.,
|*** PLPLOT ERROR, ABORTING OPERATION *** wxPLDevice::SetDC The DC
must be set before initialisation. The device is outputting to a
separate viewer, aborting operation *** PLPLOT ERROR, ABORTING
OPERATION *** error in plD_tidy_wxwidgets., aborting operation |
I installed on Ubuntu 20.04, and it sounds like that might be the
issue? Attempting to update GDL via |sudo apt-get install
gnudatalanguage| yields |gnudatalanguage is already the newest version
(0.9.9-12build1).| Is the version on the Ubuntu repository gonna get
updated? Alternately, is there a straightforward guide to getting GDL
working on a current Ubunutu distribution?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#749 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEX7H4YSZQU5GLTGEHNVYLRT3U65ANCNFSM4M2YVPZQ>.
|
I've been trying that, but I'm getting stuck on compiling GDL. It ends with these errors:
|
This is a positive message ... indicating the main plplot library is found. If it is found in local/lib The following lines are ancient, irrelevant - not true!
==================
GDL needs libplplotwxwidgets only to put plots on widgets (WIDGET_DRAW) but for all other widgets it accesses the raw wxWidget libraries. |
Ah, you're right, thanks for the help. Plplot isn't finding wxWidgets. Unfortunately, I haven't managed to get it to do so. I think my wxWidgets isn't installed properly or something, because it seems like wx-config isn't finding a config. I'll keep fiddling, I guess. I may just have to give up on GDL -- I've spent much of a day trying to just get a working installation, and I don't seem any closer. EDIT: Well, I got it to compile and get wxWidgets working by compiling wxWidgets from source. I could never get it working with the packages. No idea why. However, I'm not managing to get plots in widget-based windows now. I don't think I'm going to be getting this working. |
If a widget-based plot is your favorite property, then you want to try it
|
Thanks for the suggestion! It didn't get the piece of old widget-based software that I needed working, unfortunately, but I''ll keep that trick in mind. Now that I have GDL working, I think this may be a broader problem with the old code (ltools for FUSE data, last modified in 2007 or so) I'm trying to run rather than GDL itself. I haven't used IDL in about a decade, so I don't much remember how it works, but this code did work then. However, I had someone test it for me on IDL 8.5 in Windows 10, and it didn't work there either, so I suspect some aspect of how it displays plots in widgets is no longer compatible with modern IDL/GDL. Dunno, I have no idea how to debug the problem, and the code throws no errors when it runs! |
I can load the software directories ok; is there a single data set or image I can use as a test example, without becoming expert in FUSE data? |
Turns out I just didn't understand old color tables. I got it working thanks to further discussion here: https://github.com/orgs/gnudatalanguage/teams/gdlteam/discussions/10?from_comment=1 However, thanks a lot for your willingness to help (as well as that of @mvandam), too, as I never would have gotten GDL working in the first place without it. |
I recently installed GDL on Ubuntu 20.04. Whenever I try to launch widgets, I get the error message:
PLplot installation lacks the requested driver: wxwidgets
This used to work fine previously.
I have wxwidgets installed:
/usr/share/doc/libwxgtk3.0-gtk3-0v5
/usr/share/doc/libwxgtk3.0-gtk3-dev
Thanks a lot!
The text was updated successfully, but these errors were encountered: