Sunday 6 April 2014

How to get EusLisp compile in Macosx

I was reading about robotic IDE and found this very interesting Japanese robotic development environment call EusLisp.  As usual I just want to play with it.  But it not easy to find information on how to install, seem like it not really popular outside of Japan.



OK.  Here is the step to get it compile:

1) Download the file:

  •      I use this command to get the file from svn, and it base on Trunk R671:
     svn checkout svn://svn.code.sf.net/p/euslisp/code/trunk euslisp-code     
  •      then cd to the lisp directory once it finish downloading:
     cd euslisp-code/EusLisp

     You can checkout the README file included in lisp directory for detail on how to install.. or continue with my description...

2) Setup make/compile environment variable:

  •     In the terminal.  Type in this in the terminal, make sure you are in csh (type csh in terminal to make it c-shell).

   setenv MACHINE x86_64   
   setenv EUSDIR $PWD
   setenv XLIB /usr/X11R6/lib
   setenv PUBBINDIR /usr/local/bin
   cd lisp

3) Edit the makefile and compile file for MacOSX:


  • First link the Makefile.Darwin to Makefile:

    ln -s Makefile.Darwin Makefile
  • update X11 library path to Mac path, I use vi to replace path:
    vi Makefile.Darwin
  • Inside VI run this command to replace the X11 path, original file point to /opt/X11 but in Mac, it in /usr/X11R6:
    :%s/\/opt\/X11/\/usr\/X11R6/g
    :wq
  • Next fix the wrong compile flag in comp/comp.l, it should be -falign-functions but instead it set to -malign-functions :
    vi comp/comp.l

  • Inside VI run this command to replace the error flag:

    :%s/-malign-functions/-falign-functions/g
    :wq

4) Build
    
     make all

Now you can try the build by running this command:

$EUSDIR/Darwin/bin/eusgl


If run successful, you will see this screen in you terminal.



JSK EusLisp have better demo, and the step to fix the build problem is the same.  Include is the JSK EusLisp demo:

Particle Demo




IRT Viewer Demo
Hand Grasp IK Demo



No comments:

Post a Comment