Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.34 KB

INSTALL_FROM_SOURCE.md

File metadata and controls

57 lines (42 loc) · 1.34 KB

Install PyAER from Source

Install libcaer

# for Ubuntu
sudo apt-get install libcaer-dev
# for macOS
brew install libcaer

Install swig

This repository uses SWIG to create Python bindings. And you will need to compile the latest SWIG from source. The reason is because current SWIG cannot handle some cases in libcaer, we made a modified SWIG for this purpose.

  1. Install compilation dependency

    sudo apt-get install automake
    sudo apt-get install bison

    There might be other dependencies for compiling SWIG.

  2. Compile SIWG

    git clone https://github.com/duguyue100/swig
    cd swig
    ./autogen.sh
    ./configure
    # For compiling SWIG with Python
    ./configure --without-alllang --with-python=$(command -v python)
    make -j4
    sudo make install

    NOTE: For ARM-based Linux, you may also add --without-pcre to ignore the error during compilation.

    NOTE: If you are not compile the SWIG with system Python distribution, it won't link to the custom Python automatically.

    You will need to configure LD_LIBRARY_PATH for swig running properly, i.e.,

    LD_LIBRARY_PATH=$HOME/miniconda/lib:$LD_LIBRARY_PATH swig

Build pyaer from source

git clone https://github.com/duguyue100/pyaer.git
cd pyaer
make develop