-
Notifications
You must be signed in to change notification settings - Fork 65
Use x11 and make no interactive graphics at all possible #1407
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
Use x11 and make no interactive graphics at all possible #1407
Conversation
Sorry but problem to get the code on OSX ... (+ "double" factor Id) On the Linux side :
just a detail for sure.
Now copying and compiling on OSX 😄 |
super important point for me on Linux ! the 4 fabs' are back on windows ! (see #1368) |
YES ! Victory ! Thanks you so much @GillesDuvert
Another tricky detail : on Linux, opening a new terminal, this time running
(it was OK at the compilation time, in the terminal used for that) When those few details will be fixed, I vote for a urgent release ASAP since 1.0.1 is not usable (e.g. on Debian) |
After configuring with
cmake .. -DWXWIDGETS=off -DX11=on
on Suse Linux I get
…/src/plplotdriver/deprecated_wxwidgets_dc.cpp:28:10: fatal error: wx/wx.h: No such file or directory
28 | #include <wx/wx.h>
am I missing something?
… On 21. Nov 2022, at 19:54, Alain ***@***.***> wrote:
YES ! Victory ! Thanks you so much @GillesDuvert <https://github.com/GillesDuvert>
On OSX (12.3.1) remotely with ssh -X, with the script, and launching using ./gdl --no-use-wx
I do have the plot 😃
on same OSX, using : cmake .. -DWXWIDGETS=off -DX11=on -DREADLINE=off -DHDF=OFF -DOPENMP=OFF before running the previous script, not working at Cmake level (as expected due to plplot)
on same OSX, using same line after running the script (ie compiling dynamically plplot) the link fails
on same OSX, after script + after doing export LIBRARY_PATH=/usr/local/lib/, compilation completed and plots OK
(but message :
*** PLPLOT ERROR, ABORTING OPERATION *** plInitDispatchTable: Could not open drivers directory, aborting operation
Another tricky detail : on Linux, opening a new terminal, this time running ./install/bin/gdl is not OK.
GDL> plot, findgen(10)
% PLplot installation lacks the requested driver: wxwidgets
(it was OK at the compilation time, in the terminal used for that)
When those few details will be fixed, I vote for a urgent release ASAP since 1.0.1 is not usable (e.g. on Debian)
—
Reply to this email directly, view it on GitHub <#1407 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6E7S76HV4XZPL4YCDLWJP4SFANCNFSM6AAAAAASG56TYA>.
You are receiving this because you are subscribed to this thread.
|
did you really got the PR version ? I am very bad for that but I successfully used yesterday and checked today again for you :
(yesterday I need to confirm some code with Github, totally unclear for me) HTH |
My bad!
Compilation works as you explained!
Thanks!
… On 22. Nov 2022, at 10:09, Alain ***@***.***> wrote:
did you really got the PR version ?
I am very bad for that but I successfully used yesterday and checked today again for you :
$ mkdir test
$ cd test
$ git clone https://github.com/gnudatalanguage/gdl/
$ cd gdl
$ gh pr list
Showing 4 of 4 open pull requests in gnudatalanguage/gdl
#1407 Use x11 and make no interactive graphics at... GillesDuvert:useX11andEnableNoInteractiveG...
#1317 add tests for the convol results and CHOLDC... Jeanne-jw:master
#1074 [WIP] macOS dmg release macos-dmg
#1041 bug #704 fix - randomu out of range with la... eloirozier:randomu-fix
$ gh pr checkout 1407
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 23 (delta 16), reused 23 (delta 16), pack-reused 0
Dépaquetage des objets: 100% (23/23), 3.14 Kio | 401.00 Kio/s, fait.
Depuis https://github.com/gnudatalanguage/gdl
* [nouvelle référence] refs/pull/1407/head -> useX11andEnableNoInteractiveGraphics
(yesterday I need to confirm some code with Github, totally unclear for me)
HTH
—
Reply to this email directly, view it on GitHub <#1407 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6CZ4TUT7TUSHWO5V63WJTAYRANCNFSM6AAAAAASG56TYA>.
You are receiving this because you commented.
|
Just a comment : gh is not available directly for Debian 10 (it does appears in Debian 11) |
I have to problems with this PR :
Yes I try several ways to solve that (LD_LIBRARY_PATh, going in the paths ... but no progress)
|
hm, confirmed --- with a fresh install . Let's see... |
@alaingdl referring to #1407 (comment)
😄
OK --- let it be clear from now that plplot NEEDS to be compiled with so-called dynamic drivers. At least, until plplot code is incorporated to GDL, removing the need to rely on an external problematic library.
should be OK now
not seen here --- message above is contradictory since gdl crashes when plplot cannot open drivers directory, so no plots can be OK. A warning: /usr/local/lib may be in conflict between homebrew and other installers in your case.
works for me. Please check in the GDL startup message where it looks for drivers. |
workflows are not reliable. |
New tests :
And I try with new sessions too. OK Then I can say the problem I mentioned (path and locating the .so) seems to be fixed. |
I need precisions:
not the case for me on linux (mageia 8 for x86_64) , macOSX (Catalina) and Windows 10. Since it is OK with wxwidgets on my machine and OSX, I suspect a problem of version of wxWidgets.
what bug? #1410 ? works for me too.
normal
X11 problem on OSX? |
A regression when using "gdl --no-use-wx" : when too many calls to |
what precisely the NUMBER of windows?
for the number of buttons this depends on the version of wxwidgets and of the window manager. Documentation is poor or wrong, especially on how to bypass window manager interferences. |
As usual, not so simple to create a simple direct way to a bug which seems to be "unstable", but it is related
but it is still continuing to remove windows ... and sometines crash A. PS: ha, maybe is is just for gdl --no-use-wx |
you use gdl --no-use-wx because you are connected at a distance on an OSX server, yes? |
no non, it is fully local. The super simple code below can reproduce that. Both local or remote. And this behavior
the second to this code has only one window, other windows are destroy I don't know why ! |
On OSX? |
no, on my laptop. In fact, remotely, using this PR up-to-date, through VPN + ssh -X, remote are Debian 10 & OSX 12.3.1, same behavior BUT, thanks to the latency due to the network, I can see that the intermediate windows are created then destroyed ! When using the wxwidget version, on local (u2204) and remotely (Deb 10), the first window has no "content" |
OK. then when 4 will be solve, I am OK this PR is merge 👍 And we will be able to close some issues. Question to @GillesDuvert : should I create issues for each of the blocking issues in wx ? |
yes @alaingdl please open a separate issue for each problem in your 3) above. Indicating it is a wx problem. Could you also open an issue for case 4) or kindly remind me of the exact problem ("blocking" certainly but blocking what?) I'm a bit lost... It would help also if you could close all the isues that you think are either obsoleted by #1407 or simply too old or solved. |
Sorry for my poor english. Point 4 is the fact that here, this PR, in Continuous Integration, for build-linux-macos & build-windows , it is failing (2 red crosses) I will ASAP open clear issues for each point in 3/ |
and hopefully no delay in showing the first window. Focus problems must be treated at window manager level, not in GDL
…ight enough to set up the correct enviromnent variables for plplot drivers.
Until our memory() function is not 100% proof this test is just a pain in the ass.
should solve #1395
Should permit to reconstruct (using CMAKE) GDL with no X11 and wxWidgets (so-called HEADLESS mode)
build_gdl.sh now adds support for xwin, the X11 plplot driver, for unix and macos. x11 is present on unix, and homebrew provides libx11 on mac.
Using a X11 plot window on a mac is the only way to get remote plot windows through a ssh -X connection.