cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Eigen library C++ to STM32CUBEIDE

Bachir
Associate

Hi, 

I need help with instructions how I add the Eigen library C++ library to an STM32CUBE IDE project. I have created a project with no target for simplicity, using C++ as the basis language. I have downloaded the open source Eigen C++ library which supports matrix calculations. But I am having difficulties how to add it to the STM32 project. 

Can someone who has used this library with STM32 Cube, help with instructions how I can add it please ? 

1 - I created a foder lib under my project explorer, and copied the Eigen library to this folder (as shown in the attached picture pic1)

2 - I added the path to eigen lib in both the includes and source locations in the paths and symbols. (pic2)

When I build the main.cpp as it is first, I get a lot of errors. 

Can Anybody help by giving instructions how i add this library? 

 

I am attaching my project to this post too.

 

 

1 REPLY 1
Rim LANDOLSI
ST Employee

Hello @Bachir  and welcome to the community,

This knowledge base article may help you link an external library to the STM32CubeIDE project.

Hope this helps you!

Thanks,
Rim.