Ok, if you look at the top of gtk.ffi vocabulary, you'll see the new way we look for libraries:
<< "gtk" { { linux "gtk-x11-2.0" } { windows "libgtk-win32-2.0-0" } } os of [ find-library cdecl add-library ] when* >> You can test how well the find-library mechanism works by trying it in your listener: IN: scratchpad "gtk-x11-2.0" find-library . "/usr/lib/libgtk-x11-2.0.so.0" If you want to revert back to the old mechanism, you can replace that "new way" with this "old way": << "gtk" { { [ os windows? ] [ "libgtk-win32-2.0-0.dll" cdecl add-library ] } { [ os macosx? ] [ drop ] } { [ os unix? ] [ "libgtk-x11-2.0.so" cdecl add-library ] } } cond >> Hopefully this can get you up and running on the 0.97 release, but I would like to figure out why our find-library isn't working on Ubuntu 14.04. Thanks, John. On Mon, Nov 3, 2014 at 6:39 PM, mr wzrd <wzr...@gmail.com> wrote: > > On 11/03/2014 03:05 PM, John Benediktsson wrote: > > Okay, we switched to using alien.libraries.finder to look for C libraries > instead of hard-coding their paths. > > > Seems logical. > > Sounds like there is something about your setup that is not able to work. > > > Setup here is pretty mundane. > > Ubuntu 14.04, with Openbox window-manager. > > Installed Ubuntu with a minimum-install-cd, and then pulled in necessary > packages over the network with apt-get. > > Before unpacking Factor 0.96, I copied and pasted an apt-get command from > somewhere in factorcode.org, which installed the necessary packages for > factor. > > The command is now ... > > sudo apt-get install libc6-dev libpango1.0-dev libx11-dev libgl1-mesa-dev > > ... at http://concatenative.org/wiki/revision/2023 . > > Seem to remember, though, that the command included more packages before. > > After running the command just now, tried again to open the listener in > 0.97. > > Got the same error message. > > Would it be easier to help us debug it or would you like me to show you > how to revert GTK to its previous behavior? Or both? > > > Both sounds fun. > > Sorry it's not working! > > > It's ok. If a great coding idea comes to me, 0.96 is still working. > > Sorry that Algol took over the world in 1960! > > Thanks, > John. > > > Cheers, > mrw > > > > On Nov 3, 2014, at 11:24 AM, mr wzrd <wzr...@gmail.com> wrote: > > Don't have /usr/lib/libgtk-x11-2.0.so.0. > > On 11/02/2014 11:11 PM, John Benediktsson wrote: > > Do you have a /usr/lib/libgtk-x11-2.0.so.0? > > On Sun, Nov 2, 2014 at 8:00 PM, mr wzrd <wzr...@gmail.com> wrote: > >> Got this error after downloading and unpacking the 0.97 tarball ... >> >> $ ./factor >> Cannot resolve C library function >> Library: DLL" /usr/lib/libgtk-x11-2.0.so.0" >> Symbol: gtk_init >> DlError: none >> See http://concatenative.org/wiki/view/Factor/Requirements >> (U) Quotation: [ c-to-factor -> ] >> Word: c-to-factor >> (U) Quotation: [ [ catchstack* push ] dip call -> catchstack* pop* ] >> (O) Word: command-line-startup >> (O) Method: M\ gtk-ui-backend (with-ui) >> (U) Quotation: [ >> OBJ-CURRENT-THREAD special-object error-thread set-global >> current-continuation -> error-continuation set-global >> [ original-error set-global ] [ rethrow ] bi >> ] >> >> Pretty sure Factor was running before. >> >> Then I realized that maybe I should have unpacked the 0.97 tarball into a >> different directory than $HOME/Downloads/factor, where 0.96 was residing. >> >> Unpacked the 0.97 tarball into its own directory, >> $HOME/Downloads/factor-0.97. >> >> Still had a 0.96 tarball sitting around. >> >> So I unpacked it into $HOME/Downloads/factor-0.96. >> >> From there, ./factor brings up the listener just fine. >> >> From $HOME/Downloads/factor-0.97, ./factor causes the aforementioned >> error. >> >> - mrw >> >> On 11/02/2014 07:46 PM, John Benediktsson wrote: >> >> "If birds can glide for long periods of time, then... why can’t I?" - >> Orville Wright >> >> I'm very pleased to announce the release of Factor 0.97! You can >> find download links on the Factor website: >> >> http://factorcode.org >> >> ... >> >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Factor-talk mailing > listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Factor-talk mailing > listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > >
------------------------------------------------------------------------------
_______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk