This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/66AK2G02: No lpthread library found in process SDK.

Part Number: 66AK2G02

Tool/software: Linux

Hello Everyone,

I was trying the example of thread-ex.c given in process SDK getting started in the link.

software-dl.ti.com/.../Overview.html

but when i compiled

[linux-devkit]:~/ti-processor-sdk-linux-k2g-evm-04.03.00.05> arm-linux-gnueabihf-gcc ‘-lpthread’ thread.c -o thread

i am getting an error

arm-linux-gnueabihf-gcc: error: ‘-lpthread’: No such file or directory

I checked the folder

/ti-processor-sdk-linux-k2g-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin

but there was no lpthread binary was there

is there anything wrong with my SDK or what?

thanks

  • Hi Sagar,

    Use the following set of commands:

    ykovachev@lin-0373:~/ti-processor-sdk-linux-k2g-evm-04.03.00.05$ export ARCH=arm
    ykovachev@lin-0373:~/ti-processor-sdk-linux-k2g-evm-04.03.00.05$ export PATH=~/ti-processor-sdk-linux-k2g-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/:$PATH
    ykovachev@lin-0373:~/ti-processor-sdk-linux-k2g-evm-04.03.00.05$ arm-linux-gnueabihf-gcc '-lpthread' thread-ex.c -o thread-ex

    After this I was able to build the thread-ex.c and as a result got the thread-ex binary in ~/ti-processor-sdk-linux-k2g-evm-04.03.00.05/.

    Best Regards,
    Yordan