Download Links

Simulate 3D | SBW (Win32) | Bifurcation Discovery | FluxBalance

Thursday, November 28, 2013

Building LibSBML on Windows …

Building libSBML is really straightforward on all platforms. Especially with CMake. All one needs to do is to specify the dependencies. And while one of the parser libraries (libxml, expat or xerces-c) is surely available on every Linux or OS X system. It is sometimes difficult to track those binaries down for windows.

Since I upgraded my machine to use VS2013 today, I released new dependency archives on SourceForge. (for recent releases of Visual Studio (both in 32 and 64 bit and with / without static runtime)). The downloads are available from:

http://sf.net/projects/sbml/files/libsbml/win-dependencies

The binaries included are for the following libraries:

  • bzip2 v1.0.6
  • check v0.9.8
  • expat v2.0.1
  • iconv v1.9.2
  • libxml2 v2.7.7
  • xerces v3.1
  • zlib v1.2.3

Using the dependency archives

Please download the dependency archive, that matches your Visual Studio Version (i.e vs9 files, if you use Visual Studio 2008, vs11 files if you use Visual Studio 2012 ... ) as well as the build type (release / debug) and desired VS runtime (static runtime, vs dynamic (no extension)).

Then extract the file which will contain a folder libSBML Dependencies-1.0.0-b1-win32 for 32 bit, or libSBML Dependencies-1.0.0-b1-win64 for 64bit files.

Now checkout libSBML or download one of the release archives. Next create a build directory from the Visual Studio Command line. Ensure you have cmake in the path and run:

cmake -DLIBSBML_DEPENDENCY_DIR=<dependency dir> -DCMAKE_BUILD_TYPE=Release -DWITH_STATIC_RUNTIME=ON <source dir>

Here <source dir> is the libSBML source directory, and <dependency dir> the extracted directory. If you downloaded the debug archive, replace -DCMAKE_BUILD_TYPE=Release with -DCMAKE_BUILD_TYPE=Debug. In case you downloaded the file with dynamic runtime replace: -DWITH_STATIC_RUNTIME=ON with -DWITH_STATIC_RUNTIME=OFF.


Hope this helps …

3 comments:

david warnear said...

On Review this blog I examined that your blog is so nice and and which of this content are including in this are most attractive and most forceful l all about of this. Nice Blog and more you get more information abou this you can visit nowroadrunneremailsupport

Jon Tim said...

Thanks for the blog...very nice .I have read complete blog and get more information from your blog...
please follow the http://outlookcostumersupport.com

KOMAL SINGH said...

On Review this blog I examined that your blog is so nice and and which of this content are including in this are most attractive and most forceful l all about of this. Nice Blog and more you get more information about this you can visit now http://allantivirussupport.com/