Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Documentation for Building #5

Open
mkadirtan opened this issue Nov 25, 2019 · 1 comment
Open

Better Documentation for Building #5

mkadirtan opened this issue Nov 25, 2019 · 1 comment

Comments

@mkadirtan
Copy link

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.

@TheComet
Copy link
Owner

TheComet commented Nov 25, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants