Files
ortools-clone/tools/README.cc.java.dotnet

91 lines
2.5 KiB
Plaintext
Raw Normal View History

2018-09-19 08:44:03 +02:00
# Introduction
This file describes how to install the OR-Tools C++, Java and .Net binary archive.
OR-Tools is located at https://developers.google.com/optimization
These modules have been tested under:
2018-09-19 08:44:03 +02:00
- Ubuntu 14.04, 16.04, 17.10 and 18.04 (64-bit).
- macOS 10.13 High Sierra with Xcode 9.4 (64 bit).
- Microsoft Windows with Visual Studio 2015 and 2017 (64-bit)
Upon decompressing the archive, you will get the following structure:
2018-09-19 08:44:03 +02:00
```
or-tools/
2018-09-19 08:44:03 +02:00
LICENSE-2.0.txt <- Apache 2.0 License
README.md <- This file
Makefile <- Main Makefile for C++,Java and .Net
examples/ <- C++, Java and .Net examples
include/ <- all include files
objs/ <- directory containing C++ compiled object files (*.o)
classes/ <- directory containing Java class files.
packages/ <- directory containing .Net nuget packages.
lib/ <- directory containing libraries and jar files.
bin/ <- directory containing executable files
```
# C++
2018-09-19 08:44:03 +02:00
Running the examples will involve compiling them, then running them.
We have provided a makefile target to help you.
Use Makefile:
2018-09-19 08:44:03 +02:00
```shell
make run SOURCE=examples/cpp/golomb.cc
2018-09-19 08:44:03 +02:00
```
**OR** this is equivalent to compiling and running
`examples/cpp/golomb.cc`.
- on Unix:
```shell
make bin/golomb
./bin/golomb
```
- on Windows:
```shell
make bin\\golomb.exe
bin\\golomb.exe
```
# Java
2016-07-21 11:46:20 -07:00
Running the examples will involve compiling them, then running them.
We have provided a makefile target to help you. You need to have the
java and javac tools accessible from the command line.
2018-09-19 08:44:03 +02:00
Use Makefile:
```shell
2020-10-02 17:47:54 +02:00
make run SOURCE=examples/java/LinearProgramming/src/main/java/com/google/ortools/LinearProgramming.java
2018-09-19 08:44:03 +02:00
```
2020-10-02 17:47:54 +02:00
**OR** this is equivalent to compiling and running `examples/java/LinearProgramming`.
```shell
cd examples/java/LinearProgramming
mvn compile
mvn exec:java
```
2018-09-19 08:44:03 +02:00
# .Net
Running the examples will involve compiling them, then running them.
We have provided a makefile target to help you. You need to have the
2018-09-19 08:44:03 +02:00
dotnet/cli tools accessible from the command line.
2018-09-19 08:44:03 +02:00
Use Makefile:
```shell
make run SOURCE=examples/dotnet/csflow.cs
2018-09-19 08:44:03 +02:00
```
**OR** this is equivalent to compiling and running
`examples/dotnet/csflow.cs`.
- on Unix:
```shell
dotnet build examples/dotnet/csflow.csproj
dotnet run --no-build --project examples/dotnet/csflow.csproj
```
- on Windows:
```shell
dotnet build examples\dotnet\csflow.csproj
dotnet run --no-build --project examples\dotnet\csflow.csproj
```