-
Notifications
You must be signed in to change notification settings - Fork 8
Tutorial for Linux
Takuya Takeuchi edited this page Apr 28, 2018
·
1 revision
-
LIBSVM
- 3.22
- Compiler
- .NET Core 2.0
- Change to libsvm directory
- 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.
- Install .NET Core 2.0 by following the official page
- Open LibSvmDotNet\src\LibSvmDotNet in console
- 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