Linear Collider Forum

Home » Simulation » Mokka » Mokka Developers: Mokka on Windows with Cygwin
icon3.gif  Mokka Developers: Mokka on Windows with Cygwin [message #479] Fri, 19 May 2006 17:05 Go to previous message
Messages: 46
Registered: March 2004
Location: SLAC

I am working on bundling Mokka with an automated build system for ILC simulation projects. I currently have the SLIC package running on Linux, Windows (Cygwin/g++), and Mac OSX. However, Mokka does not work "out of the box" on Windows without a few tweaks.

Firstly, Cygwin needs to be installed for all the GNU tools.

The MySQL package needs to be downloaded and installed manually.

I used the 'Windows (x86)' download link. (Why MySQL isn't a Cygwin package, I don't know.)

The Windows MySQL distributions do not have a directory structure similar to that found on Linux MySQL installs.

I changed the file GNUmakefile.common in Kernel to look for the variables MYSQL_INCLUDEDIR for the mysql.h header and MYSQL_LIBDIR for the libraries.

  $(error define MYSQL_INCLUDEDIR)


  $(error define MYSQL_INCLUDEDIR)

EXTRALIBS += -lmysqlclient -lmysql -lzlib

The MYSQL_INCLUDEDIR should contain the directory 'mysql' with the MySQL headers. I had to symlink the include directory from the Windows MySQL distribution, as it does not have the 'mysql' directory by default.

The MYSQL_LIBDIR should have all the MySQL libraries.

The mysql and zlib libraries need to be included or the linking stage fails.

Finally, the MYSQL_LIBDIR must be added to the Windows PATH variable when Mokka is run.

Mokka developers, please let me know your thoughts on what we can do to include these changes.

[Updated on: Fri, 19 May 2006 17:48]

Jeremy McCormick, SLAC <>
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:MySQL server upgraded
Next Topic:Mokka webpages down or moved?
Goto Forum:

Current Time: Sun Feb 23 04:47:43 Pacific Standard Time 2020
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software