Page 1 of 1

building GNU Scientific Library

Posted: Sun Nov 27, 2022 12:25 pm
by brand17
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?