|
Post by vovchik on Jun 12, 2014 11:35:41 GMT
Dear guys, Here is the first BaCon wxWidgets demo. No great shakes, but it works. Before trying to use it, download this: www.alice-dsl.net/d.j.peters/libs/wx-c_2.8.12.zipUnpack and copy the libwx-c.so file into /usr/lib as root or sudo. Then unpack the attached archive and click on the binary or compile it afresh. It works! The lib is huge (~7 MB), so I am assuming that it already contains the wxwidgets stuff we might need. It is hard for me to say, since I have wxWidgtets 1.8.x installed. With kind regards, vovchik PS. Thanks, Joe, for moving this post to the right thread. PPS. Added another source file with ALIASes.
|
|
|
Post by bigbass on Jun 12, 2014 13:50:05 GMT
Hey vovchik
Great progress !
I need to get the sources because it was compiled against an older lib to do any hacking we need sources anyway *linux law
may have to post in freebasic and ask for the source code link
I could symlink meanwhile though but prefer to rebuild to avoid more problems
libjpeg.so.62, needed by
updatedb locate libjpeg.so /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/i386-linux-gnu/libjpeg.so.8 /usr/lib/i386-linux-gnu/libjpeg.so.8.0.2
|
|
|
Post by bigbass on Jun 12, 2014 14:11:06 GMT
there is a codeblocks source somewhere ! we have to locate it
|
|
|
Post by vovchik on Jun 12, 2014 14:22:17 GMT
Dear Joe, You are right about getting hold of the sources for the lib wrapper. We have to look. I modded that first example to give a normal decorated window. To do that, I had to look at the wxWidgets defs.h file and pull out the required macros so that I could do proper bit shifting. It now works. Incidentally, I had libjpeg62 installed. It is in the Mint repository, so best to use that and not a symlink. I needed that jpeg lib for something or other, so I had it already installed and got no error. With kind regards, vovchik
|
|
|
Post by bigbass on Jun 12, 2014 15:01:42 GMT
|
|
|
Post by alexfish on Jun 12, 2014 15:52:11 GMT
hi Vovchik on my sys got runtime and compile errs here is the err and my fix I386 Cause: libtiff.so.3, needed by /usr/lib/gcc/i486-linux-gnu/4.8/../../../../lib/libwx-c.so, not found (try using -rpath or -rpath From the terminal sudo su cd /usr/lib/i386-linux-gnu/ ls | grep tiff libtiff.a libtiff.la libtiff.so libtiff.so.4 libtiff.so.4.3.6 libtiff.so.5 libtiff.so.5.2.0 libtiffxx.a libtiffxx.la libtiffxx.so libtiffxx.so.0 libtiffxx.so.0.0.10
ln -s libtiff.so libtiff.so.3
exit
Now got the new code to compile and exec BR Alex Oh Forgot to mention have managed to get Peters example working using hug style , it = a hackaday on the lib where thw app is set as per original , but user is blind to it , the rest of the widgets can be created from functions , exeption here been all using header so looks like a .so as what we got here + the fltk widgets looks feasable Attachments:
|
|
|
Post by vovchik on Jun 12, 2014 16:09:31 GMT
Dear Alex and Joe, I think I did that, too, with libtiff, exactly as you did, but I did not, in my hurry to post something, record all my steps. Be careful if you install libjpg62-dev. That wiped out my dev files for elm (enlightenment, edje and evas), so I had to reinstall them. Apparently, there is something wrong with the dependency tracking at Mint in one of those packages. But, great that you got my little demo working. We can now try to make sense of wxwidgets. It is pretty extensive as far as widgets go, and I do not yet know how it handles graphics canvases. In any case, we know have another toolkit. If we can also harness QT, which I am also going to be looking at, we will soon have nearly all the usual bases covered, which is great. And with a unified API to service them all, programming should be pretty easy. The QT stuff is interesting, because, in the euphoria examples, they use qt .ui files directly, which means qt designer can be used to draw interfaces. With kind regards, vovchik
|
|
|
Post by bigbass on Jun 12, 2014 16:20:21 GMT
I got it working with this ! apt-get install libtiff5-dev Thanks for this ! Joe
|
|
|
Post by vovchik on Jun 12, 2014 16:38:34 GMT
Dear guys, This is the magic number for a normal, resizeable window, as in: SET_FRAME(frame, 0, 0, STR2UTF8("BaCon WX Demo"), x, y, win_w, win_h, win_style, NULL) where win_style = 541072960 (long). With kind regards, vovchik UPDATE: Or is it 541068864?
|
|
|
Post by vovchik on Jun 13, 2014 8:09:42 GMT
Dear guys, I got sound working in wxWidgets (and callbacks and a checkbox). We all have PulseAudio, which means we will have to run this demo using the supplied script, which invokes wx_sound01 using padsp, which is a wrapper that emulates old OSS. It works perfectly fine (and not only for wxWidgets but also for old games and binaries such as sbagen, which generates binaural frequencies and sends everything to /dev/dsp). Have fun. With kind regards, vovchik Attachments:wxsound.tar.gz (77.35 KB)
|
|