Standa-Optomechanics / libximc

Cross-platform library for Standa 8SMC5-USB motor controllers
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

For build and usage instructions please consult documentation at libximc/docs/doc-en or libximc/docs/doc-ru. Files are generated during library build. Source files for documentation can be found at libximc/docs/doc-en/docmainpage or libximc/docs/doc-ru/docmainpage.

Building a library for Windows

Dependencies

Building a library for Ubuntu (Debian based)

The following instruction has been tested on Ubuntu 14.04, Ubuntu 20.04 and Ubuntu 23.04.

I. Install dependencies

1. Install lsb_release:
    sudo apt install lsb-release

2. Install build essentials:
    sudo apt install build-essential

3. Install git:
    sudo apt install git

4. Install make and cmake:
    sudo apt install make
    sudo apt install cmake

    Note: if you are using Ubuntu 14, instead of "sudo apt install cmake" use
    "sudo apt install cmake3"

5. Install autotools:
    sudo apt install autoconf autotools-dev libtool libglib2.0-dev

6. Install flex and bison:
    sudo apt install flex bison

7. Install doxygen and latex:
    sudo apt install doxygen
    sudo apt install texlive texlive-latex-extra texlive-fonts-extra texlive-lang-cyrillic

8. Install Java:
    8.1. Install Java 8:
        sudo apt install openjdk-8-jdk

    8.2. Or in case Java 8 is unavailable, install Java 7:
        sudo apt install openjdk-7-jdk

    Note: You should use Java 7 or 8. So in case your system use another version, after installation
    of Java 7(8) one extra action may be needed -- set default Java version to 7 (or 8) using
    "update-alternatives --config java".

II. Build

* Only library:
    ./build.sh libfast

* Library and its docs:
    ./build.sh lib

Working with the library