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

Not compiling static libraries #2606

Closed
Ev3nt1ne opened this issue Aug 8, 2022 · 1 comment
Closed

Not compiling static libraries #2606

Ev3nt1ne opened this issue Aug 8, 2022 · 1 comment

Comments

@Ev3nt1ne
Copy link

Ev3nt1ne commented Aug 8, 2022

I tried several configurations and commands, but this version (differently from previous ones) is not compiling static libraries.

For reference I'm using
make clean binary CC=gcc LIB_CFLAGS="-I../openssl/include/" LIB_LIBADD=-L../compiled/lib WITH_STATIC_LIBRARIES=YES WITH_SHARED_LIBRARIES=no WITH_CJSON=no
but with several other combination of commands is not working too.

(also had to add WITH_CJSON=no because mosquitto config.h was tring to include cjson as <cjson/cjson.h>, instead of letting me inlcuding it as a library, like openssl, don't know if this behavior is wanted or it is another bug)

G

@ralight
Copy link
Contributor

ralight commented Aug 9, 2022

Try WITH_STATIC_LIBRARIES=yes instead of WITH_STATIC_LIBRARIES=YES :)

#include <cjson/cJSON.h> is the standard way to include the cJSON header, but it does need to be installed - you can't use it straight from the cJSON repository like that.

@Ev3nt1ne Ev3nt1ne closed this as completed Aug 9, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants