12 Dec
2007
5378
hits
hits
Cherokee-Win32 from OS X
Some time ago, I wrote about how to compile the native Win32 version Cherokee in a Linux machine (it is exactly the same for a OpenSolaris box), and here I am again with a little update over that post: How to compile Cherokee-Win32 from OS X.
First of all, you will have to install MinGW for OS X and to check out the latest version of the source code, then fetch, uncompress and install pthreads-win32.
unzip pthreads-w32-2-8-0-release.exe
cp Pre-built.2/lib/libpthreadGCE2.a \
/usr/local/i386-mingw32-3.4.5/lib/libpthread.a
cp Pre-built.2/include/* \
/usr/local/i386-mingw32-3.4.5/lib/gcc/*/*/include/
Then you will have to set a few environment variables,
CC=i386-mingw32-gcc
LD=i386-mingw32-ld
AR=i386-mingw32-ar
RC=i386-mingw32-windres
run the configuration script,
ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes \
./configure \
--host=i386-mingw32 \
--prefix=/usr/local/i386-mingw32-3.4.5/ \
--enable-static \
--enable-shared=no \
--enable-static-module=all \
--disable-readdir_r \
--disable-tls \
--enable-beta \
--enable-trace \
CC=i386-mingw32-gcc
and finally compile it with make. Right after which the final binary should be available. Isn't it easy?
-rwxr-xr-x 1 alo alo 3483690 Dec 12 16:34 cherokee.exe
Posted by Alvaro Lopez Ortega
Comments
Andrea Mannori on Wed Dec 12 18:18:40 2007
389
what about compile _for_ os x itself? is possible?
