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

Using libavrdude as a standalone library #819

Open
yegorich opened this issue Jan 10, 2022 · 6 comments
Open

Using libavrdude as a standalone library #819

yegorich opened this issue Jan 10, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@yegorich
Copy link
Contributor

So far libavrdude will be built internally as a static library. For the common usage it has to provide the following features:

  • static or dynamic build (there is a related CMake option)
  • install target for both the library and header file
  • the header file must not include local headers like ac_cfg.h
@dl8dtl
Copy link
Contributor

dl8dtl commented Jan 10, 2022

the header file must not include local headers like ac_cfg.h

See PR #820 - you're welcome to review it.

@dl8dtl
Copy link
Contributor

dl8dtl commented Jan 11, 2022

Btw., with PR #826 merged, I notice it's now either a shared or a static library.
This is probably OK, but with autoconf/automake, both used to be built.

@yegorich
Copy link
Contributor Author

Yes, this is normal CMake procedure. But there are tricks to make both like what libftdi1 makes.

Generally, it is not a problem. When you package avrdude, you would run the build twice with different options and use these artefacts. This is what Debian rules do for many CMake-based packages

@dl8dtl
Copy link
Contributor

dl8dtl commented Jan 11, 2022

I just opened issue #827 - libavrdude.so is built but not installed.

@mcuee
Copy link
Collaborator

mcuee commented May 23, 2022

As of now, macOS and WIndows shared library build will fail.

Related discussion (including macOS patch)

Windows share library will fail now and need more work to get it working.

@mcuee
Copy link
Collaborator

mcuee commented Jun 21, 2023

Related issue:

As of now, it is not possible to build libavrdude.dll dynamic library under Windows.

@mcuee mcuee added the help wanted Extra attention is needed label Jun 24, 2023
@mcuee mcuee removed the help wanted Extra attention is needed label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants