Skip to content

Tutorial for Linux

Takuya Takeuchi edited this page Apr 28, 2018 · 1 revision

Requirements

How to build LIBSVM

  1. Change to libsvm directory
  2. Type the following code in a console:
gcc -shared -fPIC svm.cpp -o libsvm.so

Or

g++ -shared -fPIC svm.cpp -o libsvm.so

Or

clang -shared -fPIC svm.cpp -o libsvm.so

After this, libsvm.so will be generated in libsvm.

How to build LibSvmDotNet by Command Line

Preparations

  1. Install .NET Core 2.0 by following the official page

Build

  1. Open LibSvmDotNet\src\LibSvmDotNet in console
  2. Type the following code in a console:
dotnet restore
dotnet msbuild /p:DefineConstants=LINUX /p:Configuration=Release

Or

dotnet restore
dotnet msbuild /p:DefineConstants=LINUX /p:Configuration=Debug
Clone this wiki locally