Package Details: esp-idf 5.3.1-1

Git Clone URL: https://aur.archlinux.org/esp-idf.git (read-only, click to copy)
Package Base: esp-idf
Description: Espressif IoT Development Framework. Official development framework for ESP32.
Upstream URL: https://github.com/espressif/esp-idf
Licenses: Apache
Submitter: GPereira
Maintainer: alex.henrie
Last Packager: alex.henrie
Votes: 25
Popularity: 0.31
First Submitted: 2018-04-01 22:44 (UTC)
Last Updated: 2024-10-01 05:51 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

laura7089 commented on 2024-09-18 11:54 (UTC)

I'm getting an error running the install script:

ERROR: tool openocd-esp32 is found in PATH, but has failed: non-zero exit code (127) with message: openocd: error while loading shared libraries: libcapstone.so.4: cannot open shared object file: No such file or directory

The script exits fine afterwards.

Looks like there's a dependency on capstone=4?

shtrom commented on 2024-08-22 07:30 (UTC)

Hum, now I'm seeing a lot of

fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git

when building projects, so maybe we can't get away with dropping the .git directory.

shtrom commented on 2024-08-20 09:25 (UTC)

... ah, but that won't work because it does a git submodule update in the build step.

We need to remove the .git directories after that. This can be done with

find . -path \*/.git/\* -delete -o -name .git -delete

That will remove the .git directory from the submodules, too.

So, this:

build() {
    cd "$srcdir/${pkgname}-v${pkgver}"
    git submodule update --init
    find . -path \*/.git/\* -delete -o -name .git -delete
}

Which gives us a ~80MiB package, at around 450MiB when installed.

shtrom commented on 2024-08-20 08:57 (UTC)

FWIW, you can skip extracting the .git directory altogether by adding the following at the end of the unzip command the prepare function:

... -x \*/.git/\*

So:

prepare() {
    unzip -o ${pkgname}-v${pkgver}.zip -x \*/.git/\*
}

taba commented on 2024-06-24 02:48 (UTC)

Am I talking to myself or what

taba commented on 2023-10-18 17:11 (UTC)

Is the .git folder needed for anything? It takes up a gigabyte.

taba commented on 2023-10-08 17:22 (UTC)

@alex.henrie Are you sure dependencies are not missing anything? The official docs https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html list other dependencies.

abougouffa commented on 2021-08-02 10:56 (UTC)

Hello,

I'm trying to install this package, I'm getting a bunch of annoying strip messages:

  -> Stripping unneeded symbols from binaries and libraries...
strip: Unable to recognise the format of the input file `./opt/esp-idf/components/bt/controller/lib_esp32/esp32/libbtdm_app.a(arch_main.o)'
strip: Unable to recognise the format of the input file `./opt/esp-idf/components/bt/controller/lib_esp32/esp32/libbtdm_app.a(btdm_log.o)'
strip: Unable to recognise the format of the input file `./opt/esp-idf/components/bt/controller/lib_esp32/esp32/libbtdm_app.a(bt_util_buf.o)'
strip: Unable to recognise the format of the input file `./opt/esp-idf/components/bt/controller/lib_esp32/esp32/libbtdm_app.a(bt_util_sp.o)'

I think you need to disable the strip option in this package, you can just modify the PKGBUILD like this:

diff --git a/PKGBUILD b/PKGBUILD
index c857013..d4f435e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,6 +10,7 @@ depends=('cmake' 'git' 'libusb' 'python' 'python-click' 'python-cryptography' 'p
 makedepends=('unzip')
 install='esp-idf.install'
 source=(https://github.com/espressif/${pkgname}/releases/download/v${pkgver}/${pkgname}-v${pkgver}.zip)
+options=(!strip)
 noextract=(${pkgname}-v${pkgver}.zip)
 sha512sums=('8580fbda9208bf4fb807c5f7e5c04621985ca7894cd56862928b68dedf097dca5bacc9d8a104f5b3dccd52a82c54997284350b960ab476122b7fae4397cd9961')