Skip to content

Add support for library.properties #1208

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

Closed
LusterWong opened this issue Jul 23, 2020 · 2 comments
Closed

Add support for library.properties #1208

LusterWong opened this issue Jul 23, 2020 · 2 comments
Labels
domain: build The build does not work as the Arduino IDE. importance: improvement request importance: usability OS: all status: Arduino IDE incompatibility Somethig that is not exactly the same as the arduino ide status: duplicate

Comments

@LusterWong
Copy link

Sloeber v4.3.3
windows 7 64bit
ESP32

I compiled an encryption algorithm in the Arduino IDE, and successfully generated static library files, and tested it in the Arduino IDE.The library directory looks like this (3 files):
LibTest/src/esp32/LibTest.a
LibTest/src/LibTest.h
LibTest/library.properties
There's only one function in LibTest

void LibTestP(void)
{
    printf("hello world\n");
}

The contents of the LISdsf. A file look like this:

name=LibTest
version=1.0.0
author=Test
maintainer=Test
sentence=A Test
paragraph=
category=Other
url=
architectures=*
precompiled=true
ldflags=-Test

Sloeber can identify the library and successfully add it to the project. LibTestP() was called in setup() and an error occurred after compilation.

undefined reference to `LibTestP(void)'

If Eclipse's standard C/C++ project setup has the option to link to a static library, but Sloeber doesn't, can it be added in the next version?Or are there any other solutions at the moment?

@jantje
Copy link
Member

jantje commented Sep 26, 2020

I don't think this will currently work in Sloeber because Sloeber does not support library.properties

As a workaround you could add /LibTest.a to the link command in project properties

@jantje jantje added domain: build The build does not work as the Arduino IDE. importance: usability OS: all status: Arduino IDE incompatibility Somethig that is not exactly the same as the arduino ide labels Sep 26, 2020
@jantje jantje changed the title How to link a static library (.a file) ? Add support for library.properties Oct 12, 2020
@jantje
Copy link
Member

jantje commented Jul 11, 2021

duplicate of #1126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: build The build does not work as the Arduino IDE. importance: improvement request importance: usability OS: all status: Arduino IDE incompatibility Somethig that is not exactly the same as the arduino ide status: duplicate
Projects
None yet
Development

No branches or pull requests

2 participants