lisp-cffi-qt4-list Mailing List for Simple Lisp Qt4 integration
Status: Inactive
Brought to you by:
solopsil
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
(4) |
Nov
(3) |
Dec
|
---|
From: Radoslav A. <rsd...@gm...> - 2006-11-16 23:05:07
|
Hi, again! I saved a CLISP image with ASDF, CFFI, and some more packages in it... Then I associated *.lisp files with this image and now I have small "script" interpreter (so I can write small single-file programs without all the burden of loading often used packages... (isn't Lisp cool ?!) (Some weeks ago I tried to save an image with "qt.lisp" loaded. I saved it successfully, but at runtime it broke miserably... So I still need to load "qt.lisp" in the code) The real issue I wanted to concern is this annoying console window. CLISP is console application, and also are the executable (:executable t) images it saves. So doble-clicking on a *.lisp file my image first shows a console window and then the QT application window, over it. (I've read somewhere that the ECL guys had already addressed that issue and the Windows version is able to build "windows" subsystem standalone applications, for which the win32 loader doesn't create a console). As still there is not (at least I couldn't find) a corresponding CLISP solution - I approached it in a FFI way, first trying CFFI, which turned out does not support the STDCALL calling convention :(( So I fell through to CLISP's FFI: > (require :qt "qt") > > (defpackage :qt-tree (:use :cl :qt)) > (in-package :qt) > > #+win32 > (progn > #+cffi-supports-stdcall ; I'm looking forward this ;)) > (progn > (cffi:load-foreign-library "kernel32") > (cffi:defcfun ("FreeConsole" win32-free-console) :int) > (win32-free-console)) > > #+clisp > (progn > (ffi:def-call-out win32-free-console (:return-type ffi:int) > (:library "kernel32") (:name "FreeConsole") (:language > :stdc-stdcall) > (:documentation "Frees/hides the process' console of a > console process.")) > (win32-free-console))) > > (with-qt () > .... Fortunately this works - the console window disappears shortly after the program is run and only the main window remains, working :))) Unfortunately only till the main window is closed - then I get a "Don't send" error message... Any ideas? Rado |
From: Radoslav A. <rsd...@gm...> - 2006-11-16 22:42:27
|
Hi, Paul. At first, thank you for the quick response. Unfortunately I still cannot pass UTF-8 encoded string from CLISP. I think the problem is either in the way CFFI is used or in CFFI (implementation for CLISP) itself. Later I found a statement <http://www.cliki.net/Unicode%20support> saying that "CLISP: FFI can pass strings only with single-byte encoding" and this explains the error message I got: "1087 cannot be converted to the foreign type FFI:UCHAR". I think this statement is a outdated, but still looking at http://clisp.cons.org/impnotes.html#dffi-types it seems that CLISP's ffi:uchar is 8 bit. I also tried (setf custom:*foreign-encoding* charset:utf-8) but the error persisted. And finally one more thing: (the latest version of) CFFI don't work properly with the latest version of CLISP (2.41). It's quite normal of course, at it is still new and probably they changed their FFI in some way. But my idea is: is it possible at all to pass a UTF-8 string with CLISP FFI, and if, how to make it work with CFFI? I'll continue trying, but if you have some ideas please share ;) myteam - Paul wrote: > Hi, > > I just released a new version of lisp-cffi-qt4 (0.2j), where I added > (among other, not unicode related things) some small changes to the > C-string to QString conversion (I simply added a "QString::fromUtf8()" > in some places). > > Sorry for my little understanding of UTF8, I didn't know that it can > be represented in a simple C-string, so there should be no need for > real unicode support when displaying UTF8 strings. I'm also not a Unicode expert :)) But while UTF8 is to some extent 8bit transparent, yet it is not a full righted 8bit string. For example 8bit functions for string length won't give correct result, as they count each byte as a character, which is not the case in UTF-8 (some characters are encoded with much more bytes...). > > I did some little testing, and it seemed possible to display UTF8 > strings with ECL. Would you paste some code snippet? > > I never needed unicode in my programs, so maybe I'm currently no big > help for your problems, but I will try to get into it in the near > future... > > Anyway, I hope that helps you somehow, otherwise I'm sorry for the > moment... No problem ;))The good thing with me is I'm not in a hurry. I really have too much to do, so I hardly find time for Lisp. But still I dream for the day I'll have the tools and the time to write production, crossplatform Lisp/Qt (/Unicode) code :)) For now I would be content with the little I can contribute... > > Paul > > |
From: Radoslav A. <rsd...@gm...> - 2006-11-07 07:36:07
|
Hi, Paul :) What about Unicode support in lisp-cffi-q4? You see, I'm a Bulgarian student in Germany, and currently I'm learning greek :-D Even for simple notes I need some Unicode support... AFAIK Qt4 has a mature Unicode support. There are CL implementations with good Unicode support. So what could break the flow is either CFFI or lisp-cffi-qt4. I spent a little time trying to understand what about CFFI, but I couldn't, so I decided just to try. What I tried is the following: As I work on Windows, I had to choose CLisp as an implementation, as ECL is still not quite Unicode compliant. I had to use 2.38, because the last one (2.41) had some problems loading "qt.lisp", probably with CFFI ... (On 2.38 lisp-cffi-qt4 works just fine, at least the simple tests.) I tried this (having UTF-8 encoded file utf.txt, containing Bulgarian, German and Greek words on its first line): > (load "asdf") > (load "qt") > > (defpackage qt-user (:use cl qt)) > (in-package qt-user) > > (defvar *unicode-string* nil) > (let ((custom:*default-file-encoding* charset:utf-8)) > (with-open-file (f "utf.txt") > (setf *unicode-string* (read-line f)))) > > (with-qt () > (object lb `(label ,*unicode-string*))) (All CLisp guru's, excuse my ignorance of a better way to write the code above...) And got: > ... > ;; Loaded file > D:\Opt\Lisp\qt\exe\clisp\examples\cffi\src\foreign-vars.fas > 0 errors, 0 warnings > ;; Loaded file D:\Opt\Lisp\qt\exe\clisp\examples\qt.lisp > *** - 1087 cannot be converted to the foreign type FFI:UCHAR > The following restarts are available: > ... Of what I see, I can suppose that (at least CLisp's mplementation of) CFFI doesn't support Unicode. Am I right, or the way lisp-cffi-qt4 uses CFFI is not Unicode compliant? Regards, Rado |
From: Radoslav A. <rsd...@gm...> - 2006-10-23 11:49:04
|
Hi, Paul. Thank you so much for the quick and relevant response :) I'm looking forward the new version, to continue my toy-thing, and give you more feedback ;) Regards, Rado myteam - Paul wrote: > Hi, > > Radoslav Atanasov wrote: >> [...] that the problem is in "anchor-clicked" signal's implementation. > > the problem is the "url" data type; I just added the QUrl data type in > the callback code in cqt.h and cqt.cpp, and now it works. > > I will release an updated version within a day or so, then you can try > by yourself. > >> P.S. I see that the mailing list is not used much, but I had no other >> idea how to contact the admin/team, as the "Admin" tab is restricted. >> I'm also a SF project administrator, of a small, almost dead, C++/QT >> project (http://sourceforge.net/projects/bgbible), I would like to >> renew some day, maybe in Lisp. So as a first step, maybe I can help >> with something to lisp-cffi-qt4... > > You can reach me directly at <paul AT myteam-software DOT com> (I'm > the author of this project). > > Currently the best way to help the project would be to use it for some > small apps, and to give as much feedback as possible! > (As you already did with the above "url" problem, thanks BTW!). > > Paul > > |
From: Radoslav A. <rsd...@gm...> - 2006-10-22 21:42:07
|
If I remove the "connect" form it works just fine. If I connect another signal (e.g. text-changed), it also works. I also tried with "text-edit" instead of "text-browser" - the effect was the same. For me that's a hint, that the problem is in "anchor-clicked" signal's implementation. Radoslav Atanasov wrote: > Hi, all. > > At first, thanks to the author of the project - it's something I was > waiting to find :) > > I'm just playing with 0.2g, and it worked fine with some simple things > I tried. The first toy I have in mind is to build a simple browser for > some preformatted text, so I tried the following: > >> (require :qt "qt") >> >> (defpackage qt-user (:use cl qt)) >> (in-package qt-user) >> >> (defun a-clicked (&rest args)) >> (with-qt () >> (object html 'text-browser) ; 'text-edit) >> (setpr html :html "<font color='red'>Hello, <a >> href='http://dir.bg'>Bulgaria</a>!</font>") >> (connect html 'anchor-clicked #'a-clicked)) ;(lambda (&rest args) >> (print (getpr (sender) :html))))) ; (lambda () (message-box :info >> (format nil "~A" url))))) > And then: > >> D:\Opt\Lisp\qt\examples-0.2g>ecl -shell test.lisp >> ;;; Loading #P"D:/Opt/Lisp/qt/examples-0.2g/qt.lisp" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/cffi.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/utils.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/features.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/cffi-ecl.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/package.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/libraries.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/early-types.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/types.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/enum.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/strings.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/functions.fas" >> ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/foreign-vars.fas" >> An error occurred during initialization: >> Segmentation violation.. >> >> D:\Opt\Lisp\qt\examples-0.2g> > I tried with (lamda () ...), #'(lambda () ...), (lambda (&rest) ...), > #'(lambda (&rest) ...) and then with defun-ed function... - getting > each time "Segmentation fault". > > Any ideas? > > Greetings, > Rado > > P.S. I see that the mailing list is not used much, but I had no other > idea how to contact the admin/team, as the "Admin" tab is restricted. > I'm also a SF project administrator, of a small, almost dead, C++/QT > project (http://sourceforge.net/projects/bgbible), I would like to > renew some day, maybe in Lisp. So as a first step, maybe I can help > with something to lisp-cffi-qt4... > |
From: Radoslav A. <rsd...@gm...> - 2006-10-22 21:25:52
|
Hi, all. At first, thanks to the author of the project - it's something I was waiting to find :) I'm just playing with 0.2g, and it worked fine with some simple things I tried. The first toy I have in mind is to build a simple browser for some preformatted text, so I tried the following: > (require :qt "qt") > > (defpackage qt-user (:use cl qt)) > (in-package qt-user) > > (defun a-clicked (&rest args)) > > (with-qt () > (object html 'text-browser) ; 'text-edit) > (setpr html :html "<font color='red'>Hello, <a > href='http://dir.bg'>Bulgaria</a>!</font>") > (connect html 'anchor-clicked #'a-clicked)) ;(lambda (&rest args) > (print (getpr (sender) :html))))) ; (lambda () (message-box :info > (format nil "~A" url))))) And then: > D:\Opt\Lisp\qt\examples-0.2g>ecl -shell test.lisp > ;;; Loading #P"D:/Opt/Lisp/qt/examples-0.2g/qt.lisp" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/cffi.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/utils.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/features.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/cffi-ecl.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/package.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/libraries.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/early-types.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/types.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/enum.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/strings.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/functions.fas" > ;;; Loading "D:/Opt/Lisp/qt/examples-0.2g/cffi/foreign-vars.fas" > An error occurred during initialization: > Segmentation violation.. > > D:\Opt\Lisp\qt\examples-0.2g> I tried with (lamda () ...), #'(lambda () ...), (lambda (&rest) ...), #'(lambda (&rest) ...) and then with defun-ed function... - getting each time "Segmentation fault". Any ideas? Greetings, Rado P.S. I see that the mailing list is not used much, but I had no other idea how to contact the admin/team, as the "Admin" tab is restricted. I'm also a SF project administrator, of a small, almost dead, C++/QT project (http://sourceforge.net/projects/bgbible), I would like to renew some day, maybe in Lisp. So as a first step, maybe I can help with something to lisp-cffi-qt4... |
From: Benjamin N. <be...@NB...> - 2006-10-10 15:40:23
|
Just letting you know that some of the problems I've been observing on Mac OS X seems to have been resolved (i.e. the problem with the widgets behind behind the emacs window, and being able to input text into text edit widgets) When I run the examples, I now get a separate "sbcl" icon in the dock, and the event looping looks OK :) Benjamin Nortier wrote: > Ok the examples work now if I do >(load "1-hello-world.lisp") from > within Emacs+Slime. Not sure what was wrong, but I think what was > happening is that the "Hello World" window actually appeared underneath > my emacs window and I couldn't see it. > > The problems with the scroll bars and not being able to input text into > a line-edit is still there though. Also, the Qt widgets are always begin > the Emacs window. I think this is a Mac OS X issue, so I'll still try > thing out on Linux+X11 and let you know how it goes. > > Cheers > Benjamin > > Benjamin Nortier wrote: > >> Hi >> >> Thanks for the reply :) I'll definitely try out Emacs+Slime on a linux >> machine. Just a question, should the examples all be fully functional? >> in the widget example ("7-widget-examples"), input to line edit don't >> work, and the scroll bars don't work either. I'm wondering if this is a >> Mac OS X issue. >> >> But like I said, I'll try thing out on a Linux box and see what the >> results are... >> >> Good luck with your life changes :) >> >> Ciao >> Benjamin >> >> pa...@my... wrote: >> >> >>> Hi, >>> >>> first of all I'm very pleased to hear that you are considering to use my >>> project for your work! (I didn't get feedback for months...). >>> >>> Currently my personal situation is changing a lot, so I don't have >>> currently internet access (only public Internet Points...). >>> >>> I too am relatively new to Lisp (about 1.5 years of experience), >>> previously I used Qt for about 5 years. >>> >>> As I mentioned I'm currently in some trouble (no internet, no work, no >>> time for the lisp-cffi-qt4 project), but this will all be solved within >>> the next few weeks. >>> >>> Regarding your problem I don't really have a clue, but maybe it's >>> related to a timing problem with the SLIME environment (I discovered >>> that loading something from within SLIME behaves sometimes differently >>> as loading directly from the command line). >>> >>> Maybe you have any chance to try it on a Linux box, because there it >>> works well with Emacs+SLIME. >>> >>> Sorry that currently I can't help you much, but please continue to tell >>> me your experience, I'm open to any suggestion / improvement, in order >>> to make my project stable and usable for production code (as soon as I >>> get solved my private situation). >>> >>> Paul >>> >>> >>> >>> >>> >>> >>>> Hi >>>> >>>> An update on my previous post. I've gotten things working by >>>> >>>> >>>> >>> doing it >>> >>> >>> >>>> from the command line instead of Emacs+Slime. The examples work now :) >>>> >>>> Any ideas on how to get thing working from within Emacs+Slime? >>>> >>>> Platform: Mac OS X 10.4 >>>> LISP: SBCL >>>> >>>> Regards >>>> Benjamin >>>> >>>> -- >>>> Benjamin Nortier >>>> Software Engineer >>>> National Bioinformatics Network >>>> e: <a >>>> >>>> >>>> >>> href='email_neu.php?writeTo=be...@nb...'>be...@nb...</a> >>> >>> >>> >>>> c: +27 82 693 269 >>>> >>>> >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> >>> >>> >>>> Using Tomcat but need to do more? Need to support web services, >>>> >>>> >>>> >>> security? >>> >>> >>> >>>> Get stuff done quickly with pre-integrated technology to make your job >>>> >>>> >>>> >>> easier >>> >>> >>> >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>> >>>> >>>> >>> Geronimo >>> >>> >>> >>>> <a >>>> >>>> >>>> >>> href='http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br' >>> target='_blank'>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br</a> >>> /> >>> >>> >>> >>>> _______________________________________________ >>>> Lisp-cffi-qt4-list mailing list >>>> <a >>>> >>>> >>>> >>> href='email_neu.php?writeTo=Lis...@li...'>Lis...@li...</a> >>> >>> >>> >>>> <a >>>> >>>> >>>> >>> href='https://lists.sourceforge.net/lists/listinfo/lisp-cffi-qt4-list<br' >>> target='_blank'>https://lists.sourceforge.net/lists/listinfo/lisp-cffi-qt4-list<br</a> >>> /> >>> >>> >>> >>>> >>>> >>>> >>> >>> >>> >> >> > > -- Benjamin Nortier Software Engineer National Bioinformatics Network e: be...@nb... c: +27 82 693 2696 msn: bjn...@ma... gtalk: bjn...@gm... |
From: Benjamin N. <be...@NB...> - 2006-08-30 11:16:23
|
Ok the examples work now if I do >(load "1-hello-world.lisp") from within Emacs+Slime. Not sure what was wrong, but I think what was happening is that the "Hello World" window actually appeared underneath my emacs window and I couldn't see it. The problems with the scroll bars and not being able to input text into a line-edit is still there though. Also, the Qt widgets are always begin the Emacs window. I think this is a Mac OS X issue, so I'll still try thing out on Linux+X11 and let you know how it goes. Cheers Benjamin Benjamin Nortier wrote: > Hi > > Thanks for the reply :) I'll definitely try out Emacs+Slime on a linux > machine. Just a question, should the examples all be fully functional? > in the widget example ("7-widget-examples"), input to line edit don't > work, and the scroll bars don't work either. I'm wondering if this is a > Mac OS X issue. > > But like I said, I'll try thing out on a Linux box and see what the > results are... > > Good luck with your life changes :) > > Ciao > Benjamin > > pa...@my... wrote: > >> Hi, >> >> first of all I'm very pleased to hear that you are considering to use my >> project for your work! (I didn't get feedback for months...). >> >> Currently my personal situation is changing a lot, so I don't have >> currently internet access (only public Internet Points...). >> >> I too am relatively new to Lisp (about 1.5 years of experience), >> previously I used Qt for about 5 years. >> >> As I mentioned I'm currently in some trouble (no internet, no work, no >> time for the lisp-cffi-qt4 project), but this will all be solved within >> the next few weeks. >> >> Regarding your problem I don't really have a clue, but maybe it's >> related to a timing problem with the SLIME environment (I discovered >> that loading something from within SLIME behaves sometimes differently >> as loading directly from the command line). >> >> Maybe you have any chance to try it on a Linux box, because there it >> works well with Emacs+SLIME. >> >> Sorry that currently I can't help you much, but please continue to tell >> me your experience, I'm open to any suggestion / improvement, in order >> to make my project stable and usable for production code (as soon as I >> get solved my private situation). >> >> Paul >> >> >> >> >> >>> Hi >>> >>> An update on my previous post. I've gotten things working by >>> >>> >> doing it >> >> >>> from the command line instead of Emacs+Slime. The examples work now :) >>> >>> Any ideas on how to get thing working from within Emacs+Slime? >>> >>> Platform: Mac OS X 10.4 >>> LISP: SBCL >>> >>> Regards >>> Benjamin >>> >>> -- >>> Benjamin Nortier >>> Software Engineer >>> National Bioinformatics Network >>> e: <a >>> >>> >> href='email_neu.php?writeTo=be...@nb...'>be...@nb...</a> >> >> >>> c: +27 82 693 269 >>> >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> >> >>> Using Tomcat but need to do more? Need to support web services, >>> >>> >> security? >> >> >>> Get stuff done quickly with pre-integrated technology to make your job >>> >>> >> easier >> >> >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> >>> >> Geronimo >> >> >>> <a >>> >>> >> href='http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br' >> target='_blank'>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br</a> >> /> >> >> >>> _______________________________________________ >>> Lisp-cffi-qt4-list mailing list >>> <a >>> >>> >> href='email_neu.php?writeTo=Lis...@li...'>Lis...@li...</a> >> >> >>> <a >>> >>> >> href='https://lists.sourceforge.net/lists/listinfo/lisp-cffi-qt4-list<br' >> target='_blank'>https://lists.sourceforge.net/lists/listinfo/lisp-cffi-qt4-list<br</a> >> /> >> >> >>> >>> >> >> > > -- Benjamin Nortier Software Engineer National Bioinformatics Network e: be...@nb... c: +27 82 693 269 |
From: Benjamin N. <be...@NB...> - 2006-08-30 10:21:04
|
Hi Thanks for the reply :) I'll definitely try out Emacs+Slime on a linux machine. Just a question, should the examples all be fully functional? in the widget example ("7-widget-examples"), input to line edit don't work, and the scroll bars don't work either. I'm wondering if this is a Mac OS X issue. But like I said, I'll try thing out on a Linux box and see what the results are... Good luck with your life changes :) Ciao Benjamin pa...@my... wrote: > Hi, > > first of all I'm very pleased to hear that you are considering to use my > project for your work! (I didn't get feedback for months...). > > Currently my personal situation is changing a lot, so I don't have > currently internet access (only public Internet Points...). > > I too am relatively new to Lisp (about 1.5 years of experience), > previously I used Qt for about 5 years. > > As I mentioned I'm currently in some trouble (no internet, no work, no > time for the lisp-cffi-qt4 project), but this will all be solved within > the next few weeks. > > Regarding your problem I don't really have a clue, but maybe it's > related to a timing problem with the SLIME environment (I discovered > that loading something from within SLIME behaves sometimes differently > as loading directly from the command line). > > Maybe you have any chance to try it on a Linux box, because there it > works well with Emacs+SLIME. > > Sorry that currently I can't help you much, but please continue to tell > me your experience, I'm open to any suggestion / improvement, in order > to make my project stable and usable for production code (as soon as I > get solved my private situation). > > Paul > > > > >> Hi >> >> An update on my previous post. I've gotten things working by >> > doing it > >> from the command line instead of Emacs+Slime. The examples work now :) >> >> Any ideas on how to get thing working from within Emacs+Slime? >> >> Platform: Mac OS X 10.4 >> LISP: SBCL >> >> Regards >> Benjamin >> >> -- >> Benjamin Nortier >> Software Engineer >> National Bioinformatics Network >> e: <a >> > href='email_neu.php?writeTo=be...@nb...'>be...@nb...</a> > >> c: +27 82 693 269 >> >> >> >> > ------------------------------------------------------------------------- > >> Using Tomcat but need to do more? Need to support web services, >> > security? > >> Get stuff done quickly with pre-integrated technology to make your job >> > easier > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> > Geronimo > >> <a >> > href='http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br' > target='_blank'>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br</a> > /> > >> _______________________________________________ >> Lisp-cffi-qt4-list mailing list >> <a >> > href='email_neu.php?writeTo=Lis...@li...'>Lis...@li...</a> > >> <a >> > href='https://lists.sourceforge.net/lists/listinfo/lisp-cffi-qt4-list<br' > target='_blank'>https://lists.sourceforge.net/lists/listinfo/lisp-cffi-qt4-list<br</a> > /> > >> >> >> > > > -- Benjamin Nortier Software Engineer National Bioinformatics Network e: be...@nb... c: +27 82 693 269 |
From: Benjamin N. <be...@NB...> - 2006-08-30 09:18:09
|
Hi An update on my previous post. I've gotten things working by doing it from the command line instead of Emacs+Slime. The examples work now :) Any ideas on how to get thing working from within Emacs+Slime? Platform: Mac OS X 10.4 LISP: SBCL Regards Benjamin -- Benjamin Nortier Software Engineer National Bioinformatics Network e: be...@nb... c: +27 82 693 269 |
From: Benjamin N. <be...@NB...> - 2006-08-30 09:00:40
|
Hello Lisp-cffi-qt4 I'm new to LISP, but have lots of Qt experience, and potentially want to use LISP+QT4 in our project. The aim is visualisation of bioinformatics data. So, I'd like to get involved and contribute to the project. I've downloaded the code, but haven't got things working yet. As I said, I'm new to lisp, but I've tried getting thins working by doing 1. Changing loading the foreign lib to (load-foreign-library #+unix "./libgui.dylib" #+win32 "gui") 2. (compile-file "qt.lisp") (I had to do a manual (asdf:operate 'asdf:load-op :cffi) to get it to work) 3. (load "qt.fasl") 4. (compile-file "1-hello-world.lisp") (I commented out (run) first) 5. (load "1-hello-world.fasl") 6. (run) And I get: HELLO-WORLD> (run) NIL Should I be seeing a hello world? The other examples exhibit the same behaviour Any ideas? Platform: Max OS X 10.4 LISP: SBCL Regards Benjamin -- Benjamin Nortier Software Engineer National Bioinformatics Network e: be...@nb... c: +27 82 693 269 |