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

Build error #2952

Closed
Sonusss opened this issue Nov 20, 2023 · 1 comment
Closed

Build error #2952

Sonusss opened this issue Nov 20, 2023 · 1 comment

Comments

@Sonusss
Copy link

Sonusss commented Nov 20, 2023

Trying to build latest version (2.0.18) on armhf platform I get the following error:
I have manually installed cJSON.h cJSON.C in ../cjson, do I miss something ?

cc mosquitto_ctrl.o client.o dynsec.o dynsec_client.o dynsec_group.o dynsec_role.o get_password.o memory_mosq.o memory_public.o misc_mosq.o options.o password_mosq.o ../../lib/libmosquitto.so.1 -o mosquitto_ctrl -lcrypto ../../lib/libmosquitto.so.1 -lcjson -ldl
/usr/bin/ld: cannot find -lcjson
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:46: mosquitto_ctrl] Error 1
make[2]: Leaving directory '/usr/src/mosquitto-2.0.18/apps/mosquitto_ctrl'
make[1]: *** [Makefile:9: all] Error 2
make[1]: Leaving directory '/usr/src/mosquitto-2.0.18/apps'
make: *** [Makefile:66: mosquitto] Error 2

@Sonusss
Copy link
Author

Sonusss commented Nov 21, 2023

Need to fully install cJSON library instead of just copying the two files cJSON.h and cJSON.c
https://github.com/DaveGamble/cJSON

@Sonusss Sonusss closed this as completed Nov 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2024
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

1 participant