From: Ralf J. <jue...@cs...> - 2013-04-15 15:05:30
|
Hi Robert, If you look into sdl-config.lsh you see that the code tries to locate the SDL library and then define variable 'sdl-libs'. To fix your problem you would set this variable before loading the sdl package. Ie, (defvar sdl-libs "/usr/lib/x86_64-linux-gnu/libSDL.so") (libload "sdl/SDL") As for the state of lush2, there has been little activity in the last few years. The wrappers to various libraries have not been kept up-to-date, so it is not expected that everything works out of the box. Ralf On Mon, 15 Apr 2013, Robert Herman wrote: > I just recently discovered Lush and I am very excited to have a Lisp for numerical computing. I > use wxMaxima and Mathematica. I just switched to Linux, and compiled Lush2. I am running Ubuntu > 12.10 and I definitely have libSDL.so in my path, however, it is in the x86_x64-linux-gnu > directory under /usr/lib/x86_64-linux-gnu/libSDL.so. I put this in my PATH variable. I can run > the calculator demo, but cannot run any of the openGL or SDL demos. The error I get is: > > <code> > [lushrc.lsh] t > [sdl-bounce] > +++ Warning: use <defvar> to declare global variable <nobj>. > [libsdl.lsh] > [libc.lsh] > [idx-macros.lsh] > [idx-int.lsh] > [rgbaimage.lsh] > [idx-sort.lsh] > [overload.lsh] > [image-transform.lsh] > [SDL.lsh] > [sdl-config.lsh] > libSDL.so could not be found. > please make sure SDL is installed. > Both the library and the development packages are needed. > (see /usr/local/share/lush2/packages/sdl/sdl-config.lsh for more details) > </code> > > What can I do to get it working? I wish to use Lush2 for my math studies and game programming. > Is Lush2 still being developed even if intermittently? Any experience with it would not be > wasted I am sure. Thanks. > > Rob > > |