[Buildroot] [Help] Compiling egt app with Buildroot SDK fails due to hardcoded path

Nayabbasha.Sayed at microchip.com Nayabbasha.Sayed at microchip.com
Wed Jun 26 06:48:59 UTC 2024


Hi all,

We have created Buildroot SDK for our target board. We tried to compile 
an external application called `egt` with this SDK and the build fails 
with the following error:

    CXX      detail/charts/libegt_la-plplotimpl.lo
    CXX      libegt_la-virtualkeyboard.lo
    CXXLD    libegt.la
    libtool: warning:
    '/work2/arm-buildroot-linux-gnueabi_sdk-buildroot/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/lib/libcairo-gobject.la'
    seems to be moved
    /usr/bin/grep:
    /home/jenkins/agent/workspace/MPUCI/System/mpu-ci-L4S-BR/linux4sam/build/buildroot/buildroot-mchp/output/build/cairo-1.17.4/src/libcairo.la:
    No such file or directory
    /usr/bin/sed: can't read
    /home/jenkins/agent/workspace/MPUCI/System/mpu-ci-L4S-BR/linux4sam/build/buildroot/buildroot-mchp/output/build/cairo-1.17.4/src/libcairo.la:
    No such file or directory
    libtool:   error:
    '/home/jenkins/agent/workspace/MPUCI/System/mpu-ci-L4S-BR/linux4sam/build/buildroot/buildroot-mchp/output/build/cairo-1.17.4/src/libcairo.la'
    is not a valid libtool archive
    make[3]: *** [Makefile:2226: libegt.la] Error 1
    make[3]: Leaving directory '/work2/egt/src'
    make[2]: *** [Makefile:1991: all] Error 2
    make[2]: Leaving directory '/work2/egt/src'
    make[1]: *** [Makefile:1458: all-recursive] Error 1
    make[1]: Leaving directory '/work2/egt'
    make: *** [Makefile:1359: all] Error 2

As I can see from the above lines, it's trying to find libcairo.la from 
the path 
`/home/jenkins/agent/workspace/MPUCI/System/mpu-ci-L4S-BR/linux4sam/build/buildroot/buildroot-mchp/output/build/cairo-1.17.4/src/libcairo.la` 
which is actually from the different machine on which this SDK is generated.

Inputs on how to resolve this error would be appreciated. Here are the 
additional details:

Buildroot SDK: 
https://www.linux4sam.org/bin/view/Linux4SAM/SoftwareTools#Buildroot_SDK 
(I am trying ot cross-compile with 
https://files.linux4sam.org/pub/demo/br-sdk/linux4sam-buildroot-sam9x60ek-graphics-sdk-2024.04.tar.gz)

Buildroot repo: https://github.com/linux4microchip/buildroot-mchp/

External buildroot tree: 
https://github.com/linux4microchip/buildroot-external-microchip

The config file from which SDK is generated: 
sam9x60_curiosity_graphics_defconfig (Issue is there with any of the 
*graphics_defconfig presented at 
https://github.com/linux4microchip/buildroot-external-microchip/tree/master/configs)

App trying to cross-compile: https://github.com/linux4sam/egt

The steps I followed to cross-compile egt once I downloaded the SDK from 
above source:

    tar xvf
    linux4sam-buildroot-sam9x60_curiosity-graphics-sdk-2024.04.tar.gz

    cd arm-buildroot-linux-gnueabi_sdk-buildroot/

    ./relocate-sdk.sh

    source environment-setup

    cd ..

    git clone --recursive https://github.com/linux4sam/egt.git

    cd egt

    ./autogen.sh

    ./configure --host="arm"

    make

Any inputs on how to resolve the above mentioned error are appreciated.

-- 
Thanks,
Nayab



More information about the buildroot mailing list