Thursday, July 11, 2013

Compile and run Taucs on Windows

Taucs (http://www.tau.ac.il/~stoledo/taucs/) is a library of sparse linear solvers, which was frequently used in computational geometry and mesh processing. I have built the Taucs on Windows and made a small demo program for using Taucs in VS2010, which will run on Windows platform and solve a set of linear equations. The package can be downloaded from:

http://www.4shared.com/zip/b35JMBfc/Taucs.html

The process of building and test-running Taucs on Windows is as follows: after download the package from the link above, cd to the taucs_full folder, and enter the following command:

$"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat"
$configure.bat
$nmake
$bin\win32\direct -mesh2d 400 -log stdout -snmf
$cl -c -Isrc -Ibuild\win32 -EHsc test_taucs.cpp
$cl test_taucs.obj libtaucs.lib libmetis.lib liblapack.lib libf77blas.lib libcblas.lib libatlas.lib vcf2c.lib -link -LIBPATH:lib\win32 -LIBPATH:external\lib\win32
$test_taucs.exe

To start a C++ project that uses Taucs, copy the Taucs_full to the solution folder, then add the following settings to the C++ project properties page.

IncludePath:
$(SolutionDir)taucs_full\build\win32
$(SolutionDir)taucs_full\src

LibPath:
$(SolutionDir)taucs_full\external\lib\win32
$(SolutionDir)taucs_full\lib\win32

Additional Lib:
libtaucs.lib
libmetis.lib
liblapack.lib
libf77blas.lib
libcblas.lib
libatlas.lib
vcf2c.lib
blas_win32.lib

The above details of these configurations and settings can be found in the RunTaucs project in the package from the above link.


No comments:

Post a Comment