Notes On LambdaNative

Looking into Scheme, I found out about a project called LambdaNative.

It lets you write an app in Scheme, and compile it into a phone app (Android, iClone, Blackberry) or a desktop app (Linux, Windows, OSX, BSD).

I downloaded it to my Linux laptop, and I was able to compile an Android app. I think I also got it working for the desktop. I took some notes as I was going along, partially because I had to install some packages along the way to get it to work. The wiki for LambdaNative was not as helpful as it should be.

I am not too sure if I got the Windows app to work or not. This is just here for my own reference.

Install Android NDK
Edit SETUP
Keep trying "make"
install autoconf as root: apt-get install autoconf
Next:
xelatex environment is not complete. Consider installing necessary XeTeX packages
apt-get install texlive-xetex

No OpenGL headers, so I tried this:
apt-get install freeglut3-dev

/usr/bin/ld: cannot find -lasound
 apt-get install libasound2-dev

ERROR: required tool ant not found

add ant

./configure Calculator android
make

./configure Calculator
make

For windows:
aptitude install mingw-w64

as root:
in /usr/bin:
ln -s cpp-4.9 c89-cpp



It puts the file in:  /home/ericm/.cache/lambdanative/packages/Calculator-1.0-android.apk
---------------------
Keeping track of what's installed:
The following packages were automatically installed and are no longer required:
  linux-headers-3.19.0-32 linux-headers-3.19.0-32-generic linux-image-3.13.0-66-generic linux-image-3.19.0-32-generic linux-image-extra-3.13.0-66-generic
    linux-image-extra-3.19.0-32-generic
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
    fonts-lmodern fonts-texgyre libfile-homedir-perl libfile-which-perl libpotrace0 libptexenc1 libsynctex1 libzzip-0-13 lmodern preview-latex-style prosper ps2eps
   tex-common tex-gyre texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc
  texlive-generic-recommended texlive-latex-base texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended
    texlive-latex-recommended-doc texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc tipa
    Suggested packages:
      debhelper perl-tk latexdiff latexmk dvidvi fragmaster lacheck purifyeps xindy chktex dvipng psutils libtcltk-ruby dot2tex prerex
      The following NEW packages will be installed:
        fonts-lmodern fonts-texgyre libfile-homedir-perl libfile-which-perl libpotrace0 libptexenc1 libsynctex1 libzzip-0-13 lmodern preview-latex-style prosper ps2eps
  tex-common tex-gyre texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc
    texlive-generic-recommended texlive-latex-base texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended
     texlive-latex-recommended-doc texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc texlive-xetex tipa
		      
---
The following extra packages will be installed:
  freeglut3 libdrm-dev libgl1-mesa-dev libglu1-mesa-dev libice-dev libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libx11-xcb-dev libxau-dev libxcb-dri2-0-dev
   libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev
   libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxshmfence-dev libxt-dev libxxf86vm-dev mesa-common-dev x11proto-core-dev x11proto-damage-dev
    x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
  libice-doc libsm-doc libxcb-doc libxext-doc libxt-doc
The following NEW packages will be installed:
    freeglut3 freeglut3-dev libdrm-dev libgl1-mesa-dev libglu1-mesa-dev libice-dev libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libx11-xcb-dev libxau-dev
    libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev
    libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxshmfence-dev libxt-dev libxxf86vm-dev mesa-common-dev x11proto-core-dev x11proto-damage-dev
  x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev
0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded.
 Need to get 5,362 kB of archives.
		  
----
Current status: 0 updates [-7].
root@rebirth:/home/ericm# aptitude install mingw-w64
The following NEW packages will be installed:
  binutils-mingw-w64-i686{a} binutils-mingw-w64-x86-64{a} g++-mingw-w64{a} g++-mingw-w64-i686{a} g++-mingw-w64-x86-64{a} gcc-mingw-w64{a} gcc-mingw-w64-base{a}
  gcc-mingw-w64-i686{a} gcc-mingw-w64-x86-64{a} gfortran-mingw-w64{a} gfortran-mingw-w64-i686{a} gfortran-mingw-w64-x86-64{a} gnat-mingw-w64{a}
  gnat-mingw-w64-base{a} gnat-mingw-w64-i686{a} gnat-mingw-w64-x86-64{a} mingw-w64 mingw-w64-common{a} mingw-w64-i686-dev{a} mingw-w64-x86-64-dev{a}
      0 packages upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
      Need to get 163 MB of archives. After unpacking 890 MB will be used.
-----

You’re welcome.

There are 637 words in this article.