oot@accord-water:/home/user/paho.mqtt.c# make clean
rm -rf build/output/*
rm -rf build/*
root@accord-water:/home/user/paho.mqtt.c# make
mkdir -p build/output/samples
mkdir -p build/output/test
echo OSTYPE is Linux
OSTYPE is Linux
sed -e "s/@CLIENT_VERSION@/1.3.0/g" -e "s/@BUILD_TIMESTAMP@/Monday 15 February 2021 12:12:57 PM IST/g" src/VersionInfo.h.in > build/VersionInfo.h
cc -g -fPIC -Os -Wall -fvisibility=hidden -Ibuild -o build/output/libpaho-mqtt3c.so.1.0 src/Heap.c src/Socket.c src/MQTTProtocolClient.c src/MQTTProtocolOut.c src/SHA1.c src/MQTTProperties.c src/MQTTPersistenceDefault.c src/Messages.c src/MQTTPacketOut.c src/WebSocket.c src/Clients.c src/OsWrapper.c src/Thread.c src/MQTTPacket.c src/MQTTClient.c src/Log.c src/StackTrace.c src/LinkedList.c src/MQTTReasonCodes.c src/MQTTPersistence.c src/utf-8.c src/SocketBuffer.c src/Base64.c src/Tree.c -shared -Wl,-init,MQTTClient_init -lpthread -Wl,-soname,libpaho-mqtt3c.so.1
ln -s libpaho-mqtt3c.so.1.0 build/output/libpaho-mqtt3c.so.1
ln -s libpaho-mqtt3c.so.1 build/output/libpaho-mqtt3c.so
cc -g -fPIC -Os -Wall -fvisibility=hidden -Ibuild -o build/output/libpaho-mqtt3cs.so.1.0 src/Heap.c src/Socket.c src/SSLSocket.c src/MQTTProtocolClient.c src/MQTTProtocolOut.c src/SHA1.c src/MQTTProperties.c src/MQTTPersistenceDefault.c src/Messages.c src/MQTTPacketOut.c src/WebSocket.c src/Clients.c src/OsWrapper.c src/Thread.c src/MQTTPacket.c src/MQTTClient.c src/Log.c src/StackTrace.c src/LinkedList.c src/MQTTReasonCodes.c src/MQTTPersistence.c src/utf-8.c src/SocketBuffer.c src/Base64.c src/Tree.c -DOPENSSL -shared -Wl,--start-group -lpthread -ldl -lssl -lcrypto -Wl,--end-group -Wl,-init,MQTTClient_init -Wl,-soname,libpaho-mqtt3cs.so.1 -Wl,-no-whole-archive
In file included from src/Socket.c:33:
src/SocketBuffer.h:28:10: fatal error: openssl/ssl.h: No such file or directory
28 | #include <openssl/ssl.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
In file included from src/SSLSocket.c:31:
src/SocketBuffer.h:28:10: fatal error: openssl/ssl.h: No such file or directory
28 | #include <openssl/ssl.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
In file included from src/MQTTPacket.h:26,
from src/MQTTProtocolClient.h:25,
from src/MQTTProtocolClient.c:35:
src/SSLSocket.h:29:10: fatal error: openssl/ssl.h: No such file or directory
29 | #include <openssl/ssl.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
In file included from src/MQTTPacket.h:26,
from src/MQTTProtocolOut.h:25,
from src/MQTTProtocolOut.c:36:
src/SSLSocket.h:29:10: fatal error: openssl/ssl.h: No such file or directory
29 | #include <openssl/ssl.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
In file included from src/SHA1.c:17:
src/SHA1.h:21:10: fatal error: openssl/sha.h: No such file or directory
21 | #include <openssl/sha.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
In file included from src/MQTTPacket.h:26,
from src/MQTTProperties.c:19:
src/SSLSocket.h:29:10: fatal error: openssl/ssl.h: No such file or directory
29 | #include <openssl/ssl.h>
|
i tried for mqtt client as per procedure given at at your website. please help for yhis error
Please install below command to install the openssl package in your PC.
sudo apt-get install openssl
What type of applications you are running?Can you specify the error logs correctly?
We tried your link it give
https://developer.ruggedboard.com/g3-how-to-do/mqtt-client-on-rb