sds icon indicating copy to clipboard operation
sds copied to clipboard

Generate libsds.so

Open Poorneshmindteck opened this issue 2 years ago • 2 comments

Hello team , I am cross-compiling sds for i.MX6UL SoC . I could successfully able to build sds-test . But now I have requirement of ".so". Can anyone kindly suggest me what modifications needs to be done in Makefile to generate .so file .

Error I am getting : arm-poky-linux-gnueabi/bin/ld: cannot find -lsds

Thanks

Poorneshmindteck avatar Nov 29 '23 05:11 Poorneshmindteck

It seems that you wanna to create a Dynamic Library ? Try gcc -c -fPIC sds.c -o sds.o; gcc sds.o -I. -shared -o libsds.so command

Robinsssson avatar Jul 07 '24 07:07 Robinsssson

The i.MX6UL SoC cannot use .so files due to the absence of a file system. To create a static library, use ar rcs libsds.a sds.o.

Robinsssson avatar Jul 07 '24 07:07 Robinsssson