Subscribe to


Here are a few pieces of software that I have released.

EditRights: A cygwin tool for modifying Windows NT/2000/XP/Vista user privileges. See my original post for details. The latest version is included with any cygwin installation. The code is stored in the cygwin-apps CVS repository.

Fast Spherical Harmonic Transform: Matlab MEX interface to the S2Kit library for calculating Fast Spherical Harmonic Transforms on the 2-sphere.

MATLABio: Mathematica add-on that supports reading and writing to Matlab .mat files for data exchange.

The following software is obsolete, but listed here in case anyone is interested:

ActiveWebMenu: A java-based menu system for websites. I wrote this as an exercise whilst teaching myself Java. There are many better DHTML/CSS-based systems available these days.

Patch for Courier IMAP: This patch modifies the filenames used by Courier IMAP’s maildir code so that they do not contain any colons (“:”). This means that it is possible to store a maildir on a FAT/FAT32/NTFS partition. I used this code so that I could access my e-mail archive from both FreeBSD and Windows 2000 (using cygwin).

5 Responses to “Software”

  1. on 21 Oct 2007 at 6:44 pmRoland

    Do you know how to install Fast Spherical Harmonic Transform (including S2kit and FFTW3) on a Windows XP platform?

  2. on 10 Sep 2009 at 8:48 pmBrian

    Was there ever a response to Roland’s question? I’d also like to install on Windows XP.

  3. on 24 Sep 2009 at 2:26 pmJames

    I don’t know if there was already an answer to Roland’s and Brian question.
    For a project I work on, I had to compile s2kit and yawtb on Windows XP SP3. I used MS Visual Studio 2005.
    A copy of the modified s2kit10 folder can be found on:
    Note that is is’nt a proper port, but just a quick hack to get the files to compile. I used premake to create project files for each target in the makefile.
    Hope this helps. Remmber that those modifications come with no warranty.

    Cheers, James

  4. on 23 Sep 2010 at 6:54 pmShibu

    I would like to get s2fst and s2ifst be run on Windows. When I run the JMu_mexS2Kit.m file I got the error message as shown below.
    Can anyone help me out

    Building s2fst mex file …
    s2fst.obj .text: undefined reference to ‘_fftw_plan_r2r_1d’
    s2fst.obj .text: undefined reference to ‘_fftw_plan_guru_split_dft’
    s2fst.obj .text: undefined reference to ‘_fftw_destroy_plan’
    cospmls.obj .text: undefined reference to ‘__imp__fftw_plan_r2r_1d’
    cospmls.obj .text: undefined reference to ‘__CIsin’
    cospmls.obj .text: undefined reference to ‘__imp__fftw_execute’
    cospmls.obj .text: undefined reference to ‘__CIsqrt’
    cospmls.obj .text: undefined reference to ‘__imp__fftw_destroy_plan’
    fst_semi_fly.obj .text: undefined reference to ‘__imp__fftw_execute_split_dft’
    fst_semi_fly.obj .text: undefined reference to ‘__imp__fftw_plan_guru_split_dft’
    primitive.obj .text: undefined reference to ‘__CIcos’
    seminaive.obj .text: undefined reference to ‘__imp__fftw_execute_r2r’

    C:\MATLAB701\BIN\WIN32\MEX.PL: Error: Link of ‘s2fst.dll’ failed.

    ??? Error using ==> mex
    Unable to complete successfully

    Error in ==> JMu_mexS2Kit at 30
    eval([‘mex’ ‘ -I’ fftwPath ‘ -I’ s2kpath …

  5. on 27 Sep 2010 at 10:10 amJames


    The error messages you quoted seem to indicate that the compiler cannot find the FFTW libraries. Have you downloaded and installed those libraries on your system ? They are available from . The libraries for windows include a command line utility to benchmark how fast the FFTW libraries work ou your machine. You could use this utility to check that your FFTW installation is working properly.
    Then, the variable fftwPath in the Matlab script must be modified to point to your FFTW installation.
    Hopefully, this should solve your problem.
    If this doesn’t work, more information will be recquired to help you (version of Windows, compiler, Matlab and FFTW you are using).
    If you need further help you can contact me at :
    james . mure – dubois NOSPAM unine . ch
    (remove spaces and replace nospam by @)
    As my usage of S2Kit ended in 2009, I cannot promise that I’ll be able to help you, but I can try

    Cheers, James

Leave a Reply

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image