Creating a test library

Hi guys
I am getting some errors registering this library

Attaching the command line error

 ~/Arduino/Projects/RF24_test  platformio lib register https://github.com/mcprakash/Eigen313/blob/master/library.json

Could not retrieve a library data by this URL → https://github.com/mcprakash/Eigen313/blob/master/library.json

:latin_cross:  ~/Arduino/Projects/RF24_test 

Could you let me know if I am doing something wrong (either on Github or on registering) ?

Thanks

Chandra

Hi Ivan
I uploaded the json to google drive and it works now.

Please accept the library request as moderator, so that I can start using the same with Arduino Due.

You can test run it by doing the following:

Uncomment Line 122 in
/home/chandra/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/4.8.4/cstdio

using::printf to //using::printf

It should work fine.

Also, let me know how to create a doc page for the same in platformio libs.

Thanks

Chandra

See docs Redirecting...

Next time click on Raw button on GitHub. See valid JSON URL https://raw.githubusercontent.com/mcprakash/Eigen313/master/library.json

P.S: I see that you have 2 manifests: Arduino and PlatformIO. If you don’t need extra options to control build system, you can register Arduino library.properties manifest and support only it.

What is better for you?

Hi Ivan
Got it. Thanks for the info on using raw.

P.S: I see that you have 2 manifests: Arduino and PlatformIO. If you don’t need extra options to control build system, you can register Arduino library.properties manifest and support only it.

What is the difference ? Platformio (library.json) vs Arduino (library.properties). In this particular case, the library is good only for Arduino Due, so likely library.properties is the way to go ?

Thanks

Chandra

Yes, you can keep only library.properties. The difference is significant between 2 manifests. In your case, library.properties is good for you.

Hi Ivan
I have removed the library.json and it is good to be merged.

Thanks.

Also, I wanted to know if it is possible to add support to this STM32 board. I have seen other boards of the same family but this one (with higher flash 256KB) is missing.

https://developer.mbed.org/platforms/ST-Nucleo-L432KC/

Best

Chandra

Please post feature request here GitHub - platformio/platform-ststm32: ST STM32: development platform for PlatformIO

Hi Ivan
I changed the format of the Eigen313 library.

If I add all the files to the src directory, the linker is able to find all the files.

With the previous structure,

lib
----> Eigen313.h
----> Core
----> Dense
----> src
---->----> Core ---->
---->----> SVD ---->

The linker is only able to see the src/* files and is not able to see the lib/* files

Hence, I created a nested src structure

lib ---->
---->src ---->
---->----> Eigen313.h
---->----> Core
---->----> Dense
---->----> src
---->---->----> Core ---->
---->---->----> SVD ---->

Let me know if this will work. Also, please update the Eigen313 library.

Finally, the Eigen313 library also works with mbed platform. I haven’t tested with other ARM devices (it should ideally work). So, I will be adding the library.json file as well. Hope it helps.

Best

Chandra

Hi Ivan
Also, just a quick update

I changed the github repository name from Eigen313 to Eigen as version number looked a little awkward.

It would be great to incorporate that change as well.

If it is not possible to change, you can delete the former and create a new library with the following json
Here is the updated link - https://raw.githubusercontent.com/mcprakash/Eigen/master/library.json

Thanks

Chandra

Short question: do you use PlatformIO?

Hi Ivan
I used to use Visual Studio, but I recently started using PlatformIO just a week ago. Sorry if I am troubling you.

Best

Chandra

Hi Ivan
Could you complete the changes to Eigen library (rename from Eigen313 to Eigen) and/or put the latest version 3.13.1 for the same ?

Link to github repo - https://github.com/mcprakash/Eigen
Link to JSON - https://raw.githubusercontent.com/mcprakash/Eigen/master/library.json

Or rather if you prefer, I can request a new library using register command and the obsolete library Eigen313 can be deleted. Let me know the same.

Thanks

Chandra

Done! Thanks!

http://platformio.org/lib/show/1001/Eigen