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
gtk fortran winxp undefined reference #84
Comments
Hi DrOli and welcome to gtk-fortran. I can not help much concerning WinXP but perhaps you can contact other Windows users. gtk_notebook_set_group does not exist anymore in GTK3: It makes me think you have build the wrong branch... |
Dear Jerry Many thanks for the (very) prompt response. Your links were helpful. In the event, I can compile and run (sort of) all the test_gtk_fortran_1 There are two things holding me back, though:
I used the debugger to step through to see if I could find the step where ... any hints would be much appreciated. BTW, what is the benefit of "make/install" the gtk-fortran package? At the
The extent of my progress is that I can get a couple of the GTKExtra icons It looks like the GTKExtra people don't have any explicit Fortran efforts, ... though presumably there will still be some trick to have Glade "see" the I've actually built the beginnings of a Fortran spreadsheet in Windows with Sorry if this is asking a lot ... I am happy to give back in some reasonable Cheers DrOli -----Original Message----- Hi DrOli and welcome to gtk-fortran. I can not help much concerning WinXP gtk_notebook_set_group does not exist anymore in GTK3: It makes me think you have build the wrong branch... Reply to this email directly or view |
Hi DrOli, |
The benefit of "make/install" the gtk-fortran package is mainly to avoid to always recompile everything and to have the library accessible from everywhere in the OS. And the library could be distributed in a package (there is one for Arch distributions), and updated for all your projects automatically. |
There were some efforts some years ago to use GTKExtra, before it migrates to GTK3, but I think they were not successful: Now that the migration seems to be OK, it would be interesting to try to use it. |
Cheers for that, and my apologies for my poorly worded enquiry. Yes, of course, I understand about the "cleanliness" and efficiency of a What concerned me, as a newebi to GTK etc, is that perhaps the gtk-fortran In addition, since it had a dir for GTKExtra, I was not sure if that would I will assume from you answer that it is just the former. Many thanks DrOli -----Original Message----- The benefit of "make/install" the gtk-fortran package is mainly to avoid to Reply to this email directly or view |
Cheers for that, yes that had occurred to me as well, and I did try various This morning I re-compiled everything from clean, and re-ran everything with A few observations/questions, just in case:
a) Cairo-Tests.f90: Seg Fault on launch every time I ran the debugger and a lot of stepping to determine the Seg Fault occurs
for i = 5 , j = 3 b) hl_cairo1.f90: Seg Fault on launch ... "sometimes only", no idea why, so If the launch succeeds, it appears "stable" on resize etc, but of course, no
... in all cases without Seg/Abort Fault, debugging etc shows the plotting
Or cairo specific (e.g. linked to wrong cairo elements etc)?
That allows compile and run, but could it have an impact rendering the Many thanks DrO WinXP64 all latest -----Original Message----- Hi DrOli, Reply to this email directly or view |
Many thanks for that, I had a look at those discussions. Alas, as is The GTKExtra dload package itself is purely in Linux "mode". The I have spent a little time in "bash Hell" when I created a ToolChain that I am perfectly happy to invest some time in this, but frankly my I tried to use the subscribe etc process to contact the GTKExtra people, but If there were some instructions such as for plplot on this page I am very grateful for all the time you and your peers have contributed to In return, I can offer to produce some docs and updated gtk-fortran f90's Cheers DrOli -----Original Message----- There were some efforts some years ago to use GTKExtra, before it migrates Now that the migration seems to be OK, it would be interesting to try to use Reply to this email directly or view |
Sorry, I had misunderstood your questions. Concerning GTKExtra, I had forgotten there was a graphics/gtk_extra dir in the project. I think it was contributed by Jens HUNGER. But I do not think that CMake is building it. It was just an attempt to use GTKExtra. And you can try to contact Jens to know more about it. |
Concerning the seg faults under Windows, it is possible that GTK 3.6.4 for Windows is quite buggy. Under Linux, GTK3 is now in 3.14 or 3.16 version. So, Windows versions are not as well maintained as Linux ones... 3.6.4 dates back to January 2013. |
Any contribution, code or doc, concerning gtk-fortran in Windows would be welcome and appreciated ! |
Just a quick update/question: In one of my earlier submissions I indicated that while the fortran-gtk samples compile without issue, and apparently all of the "GTK bits" work (i.e. dialogues etc pop up, buttons, sliders, etc work) ... the plplot bits were not showing up, at all. It's certainly doing all the calc's for the plots, and stepping through with the debugger it certainly seems to call all the s/r's etc, but the GTK regions/containers where the plots should show up remain "blank". Resizing the screen makes no difference to the (non) plot, but does cause some of the fortran-gtk examples to crash (seg fault). This occurs with both 32 and 64 bit WinXP machines with different graphics cards/resolutions. Compiling and running the pure plplot examples in isolation produces the plots as expected on the same machines ... whoo hoo :-) Thus GTK is working for GTK bits, plplot works in isolation, but the fortran-gtk-plplot combined examples fail to plot (anything, ever), and some have seg faults. This suggests that there is something curious about how the fortran-gtk examples interleave with plplot Any hints/suggestions at all would be greatly appreciated. Indeed I would be happy to focus my attention on just one of the fortran-gtk-plplot examples, perhaps the hl_plplot8e.f90 example, to see if we can get at least one working (that example does not show the plots, but at least it is "stable"/no seg faults, and all the GTK bits seem to be working). Once again many thanks for your assistance. DrO PS. I appreciate this may be more of a question for the plplot-gang, but is there some way to tell plplot to use a particular driver programmatically, rather than being asked for device number/keyword all the time? PPS. Purely as curiosity, and only if it is convenient, as I am learning, I am hearing that (at least on other platforms), there is some manner of "exodus" from GTK to QT ... any thoughts? WinXP64 (or 32), all latest |
oops, dreadfully sorry I clicked the "close and comment" button thinking it meant "validation" and post comment ... I did NOT intend to close the issue. There is a now duplicate of the my comment, but I don't know how to remove it. ... perhaps the "close and comment" label in that button should be updated. |
Hi DrO I have deleted the duplicated message. Concerning PLPLOT, I can not help you. But in my opinion, the GTK+ version for Windows is buggy. Concerning Qt, perhaps it is possible to create a Qt-Fortran. I do not know. But I remember that in 2010, I chose GTK+ on purpose rather than Qt or wxWidgets because it is written in C, so the binding is easier than with C++ (Qt is written in C++), thanks to the ISO_C_BINDING module. |
Many thanks for your prompt response. There does not seem to be much choice Re GTK for Win, which is several years Unfortunately, GTK requires GLib, which (for some time now) requires Python. ... apparently, and there are some strongly worded statements by some, the ... I'll think about some other way to skin this cat, but at this point I am ... my ultimate goal is to get GTKExtra's widget's working, and apparently As for the choice of GTK over QT, I am entirely sympathetic ... just worried Once again, many thanks DrO -----Original Message----- Hi DrO I have deleted the duplicated message. Concerning PLPLOT, I can not help you. But in my opinion, the GTK+ version Concerning Qt, perhaps it is possible to create a Qt-Fortran. I do not know. Reply to this email directly or view |
OK, I've sussed it ... well the PLPlot bits anyway. At the moment, all of The short explanation was in the editing of the examples for GTK3 vs. GTK2 I'll let you know how I get on with the cairo bits. Cheers DrO -----Original Message----- Many thanks for your prompt response. There does not seem to be much choice Re GTK for Win, which is several years Unfortunately, GTK requires GLib, which (for some time now) requires Python. ... apparently, and there are some strongly worded statements by some, the ... I'll think about some other way to skin this cat, but at this point I am ... my ultimate goal is to get GTKExtra's widget's working, and apparently As for the choice of GTK over QT, I am entirely sympathetic ... just worried Once again, many thanks DrO -----Original Message----- Hi DrO I have deleted the duplicated message. Concerning PLPLOT, I can not help you. But in my opinion, the GTK+ version Concerning Qt, perhaps it is possible to create a Qt-Fortran. I do not know. Reply to this email directly or view |
Fine, let us know your progress with Windows. Concerning the choice of the graphics library, the long-life argument was important. I still use Fortran programs I wrote nearly 20 years ago, so I understand this argument. That is why I focused mainly on GTK+ and Qt, which were both used for more than 10 years and were largely used in the free software community. It is true that there is some migrations toward Qt, but I believe/hope that GTK+ will still be alive in 10 years (in 20 years, I do not know !) because there is some great projects based on it: GIMP, GNOME and its derivatives, Inkscape, XFCE... (but LXDE has been ported to Qt...) I think there is room for many graphics library in the free software landscape. Linux has a market share around 1% on the desktop but is still alive and well alive ! In free software, to be in minority is not to be doomed. As long as there is some people passionate by a project, it can have a long life. But nothing is sure, rendez-vous in 20 years ! |
Many thanks for those insights regarding the "longevity" of GTK-Fortran. As a matter of interest, I have started on what I hope is the last stage in I've been using the debugger, etc and found that:
(hl_cairo1.exe:1040): GLib-GObject-WARNING **: gsignal.c:2459: signal (hl_cairo1.exe:1040): Gtk-WARNING **: drawing failure for widget This seems to suggest that it is NOT plotting since it feels it does not The only array that I could see is the "pixel(:)" char Pointer array. As
subroutine pending_events () The call stack shows that in gtk's attempt to process its events, it falls #0 7D61002E ?? () (??:??) I simply don't know enough about gtk to determine what exactly is happening Not quite sure where to take it from here. Any hints/guesses would be Cheers DrO -----Original Message----- Fine, let us know your progress with Windows. Concerning the choice of the graphics library, the long-life argument was It is true that there is some migrations toward Qt, but I believe/hope that Reply to this email directly or view |
Hey! Cheerio, |
Dear Jens/Vincent: Many thanks for all the help ... I've made some substantial progress. Many There are still some issues:
Any chance I could dload that (gdk_events) source from somewhere?
BTW, the use of C_F_Pointer(a,b, (/0/)), i.e. setting the optional Shape arg
Any hints as to how to "distribute" the schema's would be appreciated (I
It always launches/completes the image in WinXP32 (the exact same code from ... it is quite interesting that it should deal reliably with the inner
No idea what to look for here, any hints would be appreciated. For a variety of reasons, I must develop some of this in WinXP (preferably Once again, many thanks for all the effort you have put into this. Cheers DrO -----Original Message----- Hey! Cheerio, Reply to this email directly or view |
oops, in my previous comments on "missing" gdk_events mod in hl_cairo, there was a time when hl_cairo compiled without complaints about missing gdk_events. So, it seems, it must have been there at some point, but it appears to have gone "walkies". I double checked the original dloaded zip, and still no joy. So I am not sure what happened here. |
oops, oops, OK I found gdkevents-auto2.f90 in the "master", and added that to the test_gtk_fortran_1 project/hl_cairo ... it works! However, it seems pretty certain that f90 is not part of the original test_gtk_fortan_1 gtk_src set, so no idea how come it would compile sometimes, but fail on missing gdk_events at other times. |
BTW, to make it work with GTK3, I made the appropriate edits everywhere you were good enough to mark as GTK3 vs GTK2 (plus a bunch of places which were not marked). However, some of the Module/Use edits to GTK3 resulted with interfaces/routines that were originally in mswindowsonly-auto.f90 (i.e. os-dep) being required in GTK-Auto.f90 (i.e. Module gtk) instead. For example, the GTK2 version has (in gtk-hl-chooser.f90) use gtk_os_dependent, only: gtk_file_chooser_get_current_folder, & but, for example, the GTK3 variation had gtk_file_chooser_get_current_folder as part of the Use gtk, Only: ... block, which then causes a conflict with the one in the use gtk_os_dependent block. So I added a gtk_file_chooser_get_current_folder (and some others) to gtk-auto.f90, and commented out the Use gtk_os_dependent lines. I am not sure if that was wise. For example, I do plan to also try to run everything in Linux (and if ever possible in Android). Should I have "gone the other way" (i.e. put things into os_dep, and not access them via Module gtk? ... best to know before I make too much investment down this path. |
Update, with most important point left for last. OK, have completely abandoned GTK3, it's too unstable (on Windows). Have switched to GTK2 (aka GTK+). On WinXP64/MingW32 all the gtk-fortran/PLPlot/Glade examples work as expected (more or less). Indeed, they execute much faster compared to the GTK3 (e.g. hl_cairo1/cairo_tests is much faster), and are stable (with certain special exceptions). Distributing all those example exe's to WinXP32 (with necessary libs/paths/env's etc) all work as on the dev WinXP64 machine ... except hl_cairo/cairo_tests, which crash if the completed image/gui is "touched/clicked". Distributing all those example exe's to Win7/64 (with necessary libs/paths/env's etc) is a different story. The basic gtk exe's work. The hl_cairo/cairo_test exe crash on launch. None of the PLPlot exe's work since it complains about plInitDispatchTable cannot create temporary file, and aborts. I have set all permissions to full everywhere I could see, but no joy. ... any thoughts on getting PLPlot to work on Win7 that would be helpful. The crashes by hl_cairo/cairo_tests, as before, seem to be in the "pending_events()" call, and the call stack points to malloc in msvcrt as the possible culprit. Finally, and most important (to me) is getting GTKExtra installed. I've tried building it with MingW/MSys, but I can't figure out how to tell bash where to look for the GTK2 files, and so the make aborts as it can't see the GTK2 files. ... any help at all on this would be EXTREMELY appreciated ... if there is something I could "bribe" with, let me know. Cheers DrO PS, I have started to create a "Do's/Dont's" document for GTK/Glade/Fortran for Windows users. Not sure if that would help, feel free to let me know where to upload such. |
I close that issue because it is an old post, but don't hesitate to reopen if the problem persists. |
This is my first go at GTK. I have installed GTK 3.6.4 (latest for Win) on WinXP64 box with CodeBlocks 13.12. Both MingW and MingW64 are installed.
I can compile and run two example programs: a "hello world" test and the hello2 target in the test_gtk_fortran_1 suit.
All the other targets in test_gtk_fortran_1 fail for one reason or another. The most common failure is of the type:
..\test_gtk_fortran_1\gtk_src\gtk-hl-container.f90|593|undefined reference to `gtk_notebook_set_group'
and the many variants of this, especially the ones ending with "_utf8".
I have corrected the CodeBlocks project search dir's etc (otherwise the "hello" test fail)
I have searched through many of the gtk....f90 files, and the GTK libs etc. I have seen some discussion of this issue in the past, but almost all of it for Linux, or resolved with a newer version of GTK not available for Win.
I would be grateful for any assistance.
PS. the cairo-test target in the test suite compiles, but on execution throws a Seg Fault on one of the signal event handlers
The text was updated successfully, but these errors were encountered: