This page shows a very simple wxWidgets program that can be used as a skeleton. This can be done on a file by file basis (such as wx/window.h ) or using one. We hope you will find it even better than the previous one and will enjoy using it! WxWidgets 3.1.1 Released. Posted on February 19, 2018. After a long period of development, wxWidgets 3.1.1 has been released today and is available from GitHub.
![Programs Using Wxwidgets Programs Using Wxwidgets](/uploads/1/2/5/5/125502272/245288913.jpg)
Testing wxX11 pre the 2.9.5 release, it builds OK. However linking 'minimal' fails with 'undefined reference to wxGUIAppTraits::GetEventLoopSourcesManager'.
![Using Using](http://www.writerscafe.co.uk/images/screens/eeepc01sm.jpg)
This seems only to be defined in src/gtk/evtloop and src/osx/core/utilsexccf.cpp. I'm not the wxMotif user, but presumably it will fail there too. I also tried building 'widgets'. This had the same problem, of course, but also complained of an undefined reference to `vtable for wxAnimation'. The 'animate' sample found more missing items, and they are indeed missing from libwxx11univuadv-2.9. Looking at the wxX11 Makefile and build output, I can't see that animateg.cpp is being built. Oops, I completely forgot to test wxX11 build before committing these changes (I had planned to do it initially but then it just slipped out of my mind), thanks for doing this!
The part of that just removed the calls to XtAppAddInput was clearly wrong, we need to implement wxGUIAppTraits::GetEventLoopSourcesManager returning an object of wxEventLoopSourcesManagerX11 class that would use this function for its AddSourceForFD implementation. Alternatively we could just get rid of wxGUIEventLoop in wxX11 entirely and use the console Unix event loop in it. This would require adding an event source for ConnectionNumber (see src/x11/evtloop.cpp) to it and arranging to call XNextEvent when input is detected on it. This would fix the hack with polling in X11 event loop and would get rid of all this rarely used and tested code. But this will probably require even more changes than implementing wxEventLoopSourcesManagerX11 so perhaps it's not the right time to do it. And one of the same fixes should be applied to wxMotif too. Rob, if you could look at this it would be really great, otherwise I'll try to do it myself but we risk to have to postpone 2.9.5 then.
I'm actually on vacation now until Monday, so its going to be hard for me to work on this. However, programming is my hobby (and also my profession) so I don't mind trying it in my free time here (which is not that much, just an hour maybe at night).
But I can't commit a date to you. If you want it sooner you may want to try it yourself.
I just tried the X11 build on my VM which is 'Ubuntu 10.04.4 LTS', but it ran into issues. I also remember trying building Motif some time ago, and I also had issues with that too. I've attached a log of my X11 build so you can see the errors. If you can help me get past this, so I can build and test on X11, I can see what I can do. I fed these options to./configure: -with-x11 -enable-gui -enable-debug -with-libpng=builtin -with-libjpeg=builtin -with-libtiff=builtin -with-regex=builtin -with-zlib=builtin -enable-permissive -with-expat=builtin -enable-unicode I performed this build after a fresh 'git pull' on the master, so you can use the line numbers from the head to correlate the error messages.
Can't analyze more right now, off to the lake with the family. But if you answer this by tonight I may be able to do the next step of x11 build.
Thanks for looking at this! Fonttest errors are probably simple to fix but for now it could be just excluded from the compilation, either by editing tests/Makefile and removing testguifonttest.o from TESTGUIOBJECTS or just commenting out/removing the offending part of the file. Concerning how it worked before: I'm confused by this too, actually. I see that removed relevant code from src/motif/utils.cpp but X11 didn't even have it. So maybe it didn't work there even before after all? In this case it would be enough to just make it link for 2.9.5 to at least avoid regressing. I'm trying to build Motif, but I'm running into errors.
I attached a log file of my build. Using Ubuntu 10.04.4, using Ubuntu software center, I installed 'lesstif2-dev' and 'lesstif2-dev' I passed this to configure: -with-motif -enable-debug -with-libpng=builtin -with-libjpeg=builtin -with-libtiff=builtin -with-regex=builtin -with-zlib=builtin -with-expat=builtin -enable-unicode I also tried with -disable-shared, got same error. The end of the build log (still in./configure) shows this: checking for IceConnectionNumber in -lICE. Yes checking for Motif/Lesstif headers. Found in /usr/include checking for Motif/Lesstif library.
Found in /usr/lib checking if we need -lXp and/or -lSM -lICE. Can't find the right libraries configure: error: can't link a simple motif program make -j2 2&1 tee -a robbmake.log make:. No targets specified and no makefile found. Make install 2&1 tee -a robbmake.log make:. No rule to make target `install'.