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:
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.
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>
<source dir> is the libSBML source directory, and
<dependency dir> the extracted directory. If you downloaded the debug archive, replace
-DCMAKE_BUILD_TYPE=Debug. In case you downloaded the file with dynamic runtime replace: -
Hope this helps …