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
jeremy
Messages: 46
Registered: March 2004
Location: SLAC
Hello,

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.

http://www.cygwin.com

The MySQL package needs to be downloaded and installed manually.

http://dev.mysql.com/downloads/mysql/5.0.html

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.

ifndef MYSQL_INCLUDEDIR
  $(error define MYSQL_INCLUDEDIR)
endif

CPPFLAGS += -I$(MYSQL_INCLUDEDIR)

ifndef MYSQL_LIBDIR
  $(error define MYSQL_INCLUDEDIR)
endif

EXTRALIBS += -L$(MYSQL_LIBDIR)
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 <jeremym@slac.stanford.edu>
 
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: Thu Nov 14 15:28:51 Pacific Standard Time 2019
.:: Contact :: Home ::.

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