ik icon indicating copy to clipboard operation
ik copied to clipboard

Better Documentation for Building

Open mkadirtan opened this issue 5 years ago • 1 comments

Hi there,

I have a noob request. I would like to use your library for my arduino project however build instructions are not very clear for a beginner.

I couldn't run the example on my project.

mkadirtan avatar Nov 25 '19 11:11 mkadirtan

Hey!

I didn't think about supporting micro controllers, but in theory it should be possible. The same build instructions found here apply, but in addition, you will have to provide a toolchain file to cmake. You can find examples of what this file looks like here.

Building will then look something like:

mkdir build && cd build
cmake \
    -DCMAKE_TOOLCHAIN_FILE=path/to/arduino/toolchain.cmake \
    -DCMAKE_INSTALL_PREFIX=path/to/install/arduino/libraries \
    -DCMAKE_BUILD_TYPE=Release \
    -DIK_LIB_TYPE=STATIC \
    -DIK_PYTHON=OFF \
    ../CMakeLists.txt
cmake --build . --target install

I'm not sure how the library performs on hardware with limited resources. Is malloc() available?

TheComet avatar Nov 25 '19 13:11 TheComet