building GNU Scientific Library

brand17
Posts: 7
Joined: Wed Jun 01, 2022 6:16 pm

building GNU Scientific Library

Postby brand17 » Sun Nov 27, 2022 12:25 pm

I need to use GSL library in my code. Unfortunately it is based on GNU Make build system (not cmake). As far as I understand from https://docs.espressif.com/projects/esp ... ld-process - I have to use `externalproject_add` command.

I downloaded GSL library to a separate folder `gsl` within `components` folder in my esp-idf project. And I added there the following `CMakeLists.txt`:

Code: Select all

idf_component_register()
ExternalProject_Add(gsl_build
    PREFIX ${COMPONENT_DIR}
    SOURCE_DIR ${COMPONENT_DIR}
    CONFIGURE_COMMAND ${COMPONENT_DIR}/configure
    BUILD_IN_SOURCE 1
    BUILD_COMMAND make CC=${CMAKE_C_COMPILER}
    INSTALL_COMMAND ""
    )
But I am getting an error: `'C:\Users\FA.PROJECTOR-MSK\YandexDisk\Software\esp\robot\components\gsl\configure' is not recognized as an internal or external command, operable program or batch file.`

I checked that the file `configure` exists in `components/gsl` folder.

How can I configure the library before building?

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 72 guests