Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate libsds.so #149

Open
Poorneshmindteck opened this issue Nov 29, 2023 · 2 comments
Open

Generate libsds.so #149

Poorneshmindteck opened this issue Nov 29, 2023 · 2 comments

Comments

@Poorneshmindteck
Copy link

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

@Robinsssson
Copy link

Robinsssson commented Jul 7, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants