Skip to content

Tutorial for Linux

Takuya Takeuchi edited this page May 4, 2018 · 2 revisions

Requirements

How to build LIBLINEAR

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

Or

g++ -shared -fPIC linear.cpp -o liblinear.so

Or

clang -shared -fPIC linear.cpp -o liblinear.so

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

How to build LibLinearDotNet by Command Line

Preparations

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

Build

  1. Open LibLinearDotNet\src\LibLinearDotNet 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