Problems compiling and running on T20 LXDE LINUX

Dear Toradex team and Toradex community,

Trying to compile/run the HelloWorld application on a colibri T20 with linux LXDE 2.8, an executable binary is generated but it won’t run.

We are using toolchain:

https://developer1.toradex.com/files/toradex-dev/uploads/media/Colibri/Linux/SDKs/2.8/colibri-t20/angstrom-lxde-image/

configured on CodeBlocks.

The build succeeds, see below:

-------------- Build: Debug in HelloWorld (compiler: GNU GCC Compiler for ARM)---------------

arm-angstrom-linux-gnueabi-g++ -Wall -fexceptions -g -std=c++11 -mfpu=vfpv3-d16 -march=armv7-a -mthumb -mfpu=vfp -mfloat-abi=hard -I/usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-angstrom-linux-gnueabi/usr/include/c++/7.3.0 -I/usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-angstrom-linux-gnueabi/usr/include/c++/7.3.0/arm-angstrom-linux-gnueabi/ -I/usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-angstrom-linux-gnueabi/usr/include -I/usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-angstrom-linux-gnueabi/usr/lib -c main.cpp -o obj/Debug/main.o --sysroot=/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi

arm-angstrom-linux-gnueabi-g++  -o bin/Debug/HelloWorld obj/Debug/main.o  --sysroot=/usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-angstrom-linux-gnueabi -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -no-pie  
Output file is bin/Debug/HelloWorld with size 31.41 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
------------------------------------------------------------------------

The flags we used are:

armv7-a
-mthumb
-mfpu=vfp

However, the output executable does not run.
Any ideas on what we are missing?

thank you in advance

No need to answer this question, as we have now figured.

It was solved adding:

–library-path “/lib;/usr/lib”

Hi @Henry

Perfect that you found a solution.
Thanks for the feedback.

Best regards,
Jaski