How to install deepstream SDK in jetson nano

sol@sol-desktop:~/Downloads$ git clone https://github.com/edenhill/librdkafka.git
Cloning into ‘librdkafka’…
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 23473 (delta 8), reused 9 (delta 5), pack-reused 23452
Receiving objects: 100% (23473/23473), 16.12 MiB | 678.00 KiB/s, done.
Resolving deltas: 100% (18026/18026), done.
sol@sol-desktop:~/Downloads$ cd librdkafka/
sol@sol-desktop:~/Downloads/librdkafka$ ./configure
checking for OS or distribution… ok (ubuntu)
checking for C compiler from CC env… failed
checking for gcc (by command)… ok
checking for C++ compiler from CXX env… failed
checking for C++ compiler (g++)… ok
checking executable ld… ok
checking executable nm… ok
checking executable objdump… ok
checking executable strip… ok
checking executable libtool… failed (disable)
checking for pkgconfig (by command)… ok
checking for install (by command)… ok
checking for PIC (by compile)… ok
checking for GNU-compatible linker options… ok
checking for GNU linker-script ld flag… ok
checking for __atomic_32 (by compile)… ok
checking for __atomic_64 (by compile)… ok
checking for socket (by compile)… ok
parsing version ‘0x01060000’… ok (1.6.0)
checking for librt (by pkg-config)… failed
checking for librt (by compile)… ok
checking for libpthread (by pkg-config)… failed
checking for libpthread (by compile)… ok
checking for c11threads (by pkg-config)… failed
checking for c11threads (by compile)… failed (disable)
checking for libdl (by pkg-config)… failed
checking for libdl (by compile)… ok
checking for zlib (by pkg-config)… ok
checking for libcrypto (by pkg-config)… failed
checking for libcrypto (by compile)… failed (disable)
checking for libsasl2 (by pkg-config)… failed
checking for libsasl2 (by compile)… failed (disable)
checking for libsasl (by pkg-config)… failed
checking for libsasl (by compile)… failed (disable)
checking for libzstd (by pkg-config)… failed
checking for libzstd (by compile)… failed (disable)
checking for libm (by pkg-config)… failed
checking for libm (by compile)… ok
checking for liblz4 (by pkg-config)… failed
checking for liblz4 (by compile)… failed (disable)
checking for syslog (by compile)… ok
checking for rapidjson (by compile)… failed (disable)
checking for crc32chw (by compile)… failed (disable)
checking for regex (by compile)… ok
checking for rand_r (by compile)… ok
checking for strndup (by compile)… ok
checking for strlcpy (by compile)… failed (disable)
checking for strerror_r (by compile)… ok
checking for pthread_setname_gnu (by compile)… ok
checking for nm (by env NM)… ok (cached)
checking for python3 (by command)… ok
checking for getrusage (by compile)… ok
Generated Makefile.config
Generated config.h

Configuration summary:
prefix /usr/local
MKL_DISTRO ubuntu
SOLIB_EXT .so
ARCH aarch64
CPU generic
GEN_PKG_CONFIG y
MKL_APP_NAME librdkafka
MKL_APP_DESC_ONELINE The Apache Kafka C/C++ library
CC gcc
CXX g++
LD ld
NM nm
OBJDUMP objdump
STRIP strip
CPPFLAGS -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align
PKG_CONFIG pkg-config
INSTALL install
LIB_LDFLAGS -shared -Wl,-soname,(LIBFILENAME) LDFLAG_LINKERSCRIPT -Wl,--version-script= RDKAFKA_VERSION_STR 1.6.0 MKL_APP_VERSION 1.6.0 LIBS -lm -lz -ldl -lpthread -lrt MKL_PKGCONFIG_LIBS_PRIVATE -lm -ldl -lpthread -lrt MKL_PKGCONFIG_REQUIRES_PRIVATE zlib CFLAGS MKL_PKGCONFIG_REQUIRES zlib CXXFLAGS -Wno-non-virtual-dtor SYMDUMPER (NM) -D
MKL_DYNAMIC_LIBS -lm -lz -ldl -lpthread -lrt
exec_prefix /usr/local
bindir /usr/local/bin
sbindir /usr/local/sbin
libexecdir /usr/local/libexec
datadir /usr/local/share
sysconfdir /usr/local/etc
sharedstatedir /usr/local/com
localstatedir /usr/local/var
runstatedir /usr/local/var/run
libdir /usr/local/lib
includedir /usr/local/include
infodir /usr/local/info
mandir /usr/local/man
BUILT_WITH GCC GXX PKGCONFIG INSTALL GNULD LDS LIBDL PLUGINS ZLIB HDRHISTOGRAM SYSLOG SNAPPY SOCKEM
Generated config.cache

Now type ‘make’ to build
sol@sol-desktop:~/Downloads/librdkafka$ make
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src’
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka.c -o rdkafka.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_broker.c -o rdkafka_broker.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_msg.c -o rdkafka_msg.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_topic.c -o rdkafka_topic.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_conf.c -o rdkafka_conf.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_timer.c -o rdkafka_timer.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_offset.c -o rdkafka_offset.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_transport.c -o rdkafka_transport.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_buf.c -o rdkafka_buf.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_queue.c -o rdkafka_queue.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_op.c -o rdkafka_op.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_request.c -o rdkafka_request.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_cgrp.c -o rdkafka_cgrp.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_pattern.c -o rdkafka_pattern.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_partition.c -o rdkafka_partition.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_subscription.c -o rdkafka_subscription.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_assignment.c -o rdkafka_assignment.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_assignor.c -o rdkafka_assignor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_range_assignor.c -o rdkafka_range_assignor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_roundrobin_assignor.c -o rdkafka_roundrobin_assignor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_sticky_assignor.c -o rdkafka_sticky_assignor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_feature.c -o rdkafka_feature.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdcrc32.c -o rdcrc32.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c crc32c.c -o crc32c.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdmurmur2.c -o rdmurmur2.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdfnv1a.c -o rdfnv1a.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdaddr.c -o rdaddr.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdrand.c -o rdrand.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdlist.c -o rdlist.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c tinycthread.c -o tinycthread.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c tinycthread_extra.c -o tinycthread_extra.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdlog.c -o rdlog.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdstring.c -o rdstring.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_event.c -o rdkafka_event.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_metadata.c -o rdkafka_metadata.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdregex.c -o rdregex.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdports.c -o rdports.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_metadata_cache.c -o rdkafka_metadata_cache.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdavl.c -o rdavl.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_sasl.c -o rdkafka_sasl.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_sasl_plain.c -o rdkafka_sasl_plain.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_interceptor.c -o rdkafka_interceptor.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_msgset_writer.c -o rdkafka_msgset_writer.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_msgset_reader.c -o rdkafka_msgset_reader.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_header.c -o rdkafka_header.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_admin.c -o rdkafka_admin.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_aux.c -o rdkafka_aux.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_background.c -o rdkafka_background.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_idempotence.c -o rdkafka_idempotence.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_cert.c -o rdkafka_cert.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_txnmgr.c -o rdkafka_txnmgr.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_coord.c -o rdkafka_coord.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdvarint.c -o rdvarint.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdbuf.c -o rdbuf.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdmap.c -o rdmap.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdunittest.c -o rdunittest.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_mock.c -o rdkafka_mock.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_mock_handlers.c -o rdkafka_mock_handlers.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_mock_cgrp.c -o rdkafka_mock_cgrp.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_error.c -o rdkafka_error.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c snappy.c -o snappy.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdgz.c -o rdgz.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdhdrhistogram.c -o rdhdrhistogram.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_lz4.c -o rdkafka_lz4.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -O3 -c rdxxhash.c -o rdxxhash.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -O3 -c lz4.c -o lz4.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -O3 -c lz4frame.c -o lz4frame.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -O3 -c lz4hc.c -o lz4hc.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rddl.c -o rddl.o
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="“v1.6.0-PRE3"” -c rdkafka_plugin.c -o rdkafka_plugin.o
Generating linker script librdkafka.lds from rdkafka.h rdkafka_mock.h
Creating shared library librdkafka.so.1
gcc -shared -Wl,-soname,librdkafka.so.1 -Wl,–version-script=librdkafka.lds rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignment.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_sticky_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdfnv1a.o rdaddr.o rdrand.o rdlist.o tinycthread.o tinycthread_extra.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdkafka_idempotence.o rdkafka_cert.o rdkafka_txnmgr.o rdkafka_coord.o rdvarint.o rdbuf.o rdmap.o rdunittest.o rdkafka_mock.o rdkafka_mock_handlers.o rdkafka_mock_cgrp.o rdkafka_error.o snappy.o rdgz.o rdhdrhistogram.o rdkafka_lz4.o rdxxhash.o lz4.o lz4frame.o lz4hc.o rddl.o rdkafka_plugin.o -o librdkafka.so.1 -lm -lz -ldl -lpthread -lrt
Creating static library librdkafka.a
ar rcs librdkafka.a rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignment.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_sticky_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdfnv1a.o rdaddr.o rdrand.o rdlist.o tinycthread.o tinycthread_extra.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdkafka_idempotence.o rdkafka_cert.o rdkafka_txnmgr.o rdkafka_coord.o rdvarint.o rdbuf.o rdmap.o rdunittest.o rdkafka_mock.o rdkafka_mock_handlers.o rdkafka_mock_cgrp.o rdkafka_error.o snappy.o rdgz.o rdhdrhistogram.o rdkafka_lz4.o rdxxhash.o lz4.o lz4frame.o lz4hc.o rddl.o rdkafka_plugin.o
Creating librdkafka.so symlink
rm -f “librdkafka.so” && ln -s “librdkafka.so.1” “librdkafka.so”
Generating pkg-config file rdkafka.pc
Generating pkg-config file rdkafka-static.pc
Checking librdkafka integrity
librdkafka.so.1 OK
librdkafka.a OK
Symbol visibility OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src’
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src-cpp’
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c RdKafka.cpp -o RdKafka.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c ConfImpl.cpp -o ConfImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c HandleImpl.cpp -o HandleImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c ConsumerImpl.cpp -o ConsumerImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c ProducerImpl.cpp -o ProducerImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c KafkaConsumerImpl.cpp -o KafkaConsumerImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c TopicImpl.cpp -o TopicImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c TopicPartitionImpl.cpp -o TopicPartitionImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c MessageImpl.cpp -o MessageImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c HeadersImpl.cpp -o HeadersImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c QueueImpl.cpp -o QueueImpl.o
g++ -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -c MetadataImpl.cpp -o MetadataImpl.o
Creating shared library librdkafka++.so.1
g++ -shared -Wl,-soname,librdkafka++.so.1 RdKafka.o ConfImpl.o HandleImpl.o ConsumerImpl.o ProducerImpl.o KafkaConsumerImpl.o TopicImpl.o TopicPartitionImpl.o MessageImpl.o HeadersImpl.o QueueImpl.o MetadataImpl.o -o librdkafka++.so.1 -L…/src -lrdkafka
Creating static library librdkafka++.a
ar rcs librdkafka++.a RdKafka.o ConfImpl.o HandleImpl.o ConsumerImpl.o ProducerImpl.o KafkaConsumerImpl.o TopicImpl.o TopicPartitionImpl.o MessageImpl.o HeadersImpl.o QueueImpl.o MetadataImpl.o
Creating librdkafka++.so symlink
rm -f “librdkafka++.so” && ln -s “librdkafka++.so.1” “librdkafka++.so”
Generating pkg-config file rdkafka++.pc
Generating pkg-config file rdkafka+±static.pc
Checking librdkafka++ integrity
librdkafka++.so.1 OK
librdkafka++.a OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src-cpp’
make -C examples
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/examples’
gcc -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I…/src rdkafka_example.c -o rdkafka_example
…/src/librdkafka.a -lm -lz -ldl -lpthread -lrt

rdkafka_example is ready

Run producer (write messages on stdin)

./rdkafka_example -P -t -p

or consumer

./rdkafka_example -C -t -p

More usage options:

./rdkafka_example -h
gcc -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I…/src rdkafka_performance.c -o rdkafka_performance
…/src/librdkafka.a -lm -lz -ldl -lpthread -lrt

rdkafka_performance is ready

Run producer

./rdkafka_performance -P -t -p -s

or consumer

./rdkafka_performance -C -t -p

More usage options:

./rdkafka_performance -h
g++ -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -I…/src-cpp rdkafka_example.cpp -o rdkafka_example_cpp
…/src-cpp/librdkafka++.a …/src/librdkafka.a -lm -lz -ldl -lpthread -lrt
gcc -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I…/src rdkafka_complex_consumer_example.c -o rdkafka_complex_consumer_example
…/src/librdkafka.a -lm -lz -ldl -lpthread -lrt

rdkafka_complex_consumer_example is ready

./rdkafka_complex_consumer_example <topic[:part]> <topic2[:part]> …

More usage options:

./rdkafka_complex_consumer_example -h
g++ -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -I…/src-cpp rdkafka_complex_consumer_example.cpp -o rdkafka_complex_consumer_example_cpp
…/src-cpp/librdkafka++.a …/src/librdkafka.a -lm -lz -ldl -lpthread -lrt
g++ -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wno-non-virtual-dtor -I…/src-cpp kafkatest_verifiable_client.cpp -o kafkatest_verifiable_client
…/src-cpp/librdkafka++.a …/src/librdkafka.a -lm -lz -ldl -lpthread -lrt
gcc -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I…/src producer.c -o producer
…/src/librdkafka.a -lm -lz -ldl -lpthread -lrt
gcc -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I…/src consumer.c -o consumer
…/src/librdkafka.a -lm -lz -ldl -lpthread -lrt
gcc -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I…/src idempotent_producer.c -o idempotent_producer
…/src/librdkafka.a -lm -lz -ldl -lpthread -lrt
gcc -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I…/src transactions.c -o transactions
…/src/librdkafka.a -lm -lz -ldl -lpthread -lrt
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/examples’
Updating CONFIGURATION.md
Checking integrity
CONFIGURATION.md OK
examples/rdkafka_example OK
examples/rdkafka_performance OK
examples/rdkafka_example_cpp OK
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src’
Generating pkg-config file rdkafka-static.pc
Checking librdkafka integrity
librdkafka.so.1 OK
librdkafka.a OK
Symbol visibility OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src’
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src-cpp’
Generating pkg-config file rdkafka+±static.pc
Checking librdkafka++ integrity
librdkafka++.so.1 OK
librdkafka++.a OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src-cpp’
sol@sol-desktop:~/Downloads/librdkafka$ make
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src’
Generating pkg-config file rdkafka-static.pc
Checking librdkafka integrity
librdkafka.so.1 OK
librdkafka.a OK
Symbol visibility OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src’
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src-cpp’
Generating pkg-config file rdkafka+±static.pc
Checking librdkafka++ integrity
librdkafka++.so.1 OK
librdkafka++.a OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src-cpp’
make -C examples
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/examples’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/examples’
Updating CONFIGURATION.md
Checking integrity
CONFIGURATION.md OK
examples/rdkafka_example OK
examples/rdkafka_performance OK
examples/rdkafka_example_cpp OK
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src’
Generating pkg-config file rdkafka-static.pc
Checking librdkafka integrity
librdkafka.so.1 OK
librdkafka.a OK
Symbol visibility OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src’
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src-cpp’
Generating pkg-config file rdkafka+±static.pc
Checking librdkafka++ integrity
librdkafka++.so.1 OK
librdkafka++.a OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src-cpp’
sol@sol-desktop:~/Downloads/librdkafka$ sudo make install
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src’
Install librdkafka to /usr/local
install -d $DESTDIR/usr/local/include/librdkafka
install -d $DESTDIR/usr/local/lib
install rdkafka.h rdkafka_mock.h $DESTDIR/usr/local/include/librdkafka
install librdkafka.a $DESTDIR/usr/local/lib
[ ! -f librdkafka-static.a ] || install librdkafka-static.a $DESTDIR/usr/local/lib
install librdkafka.so.1 $DESTDIR/usr/local/lib
[ -f “rdkafka.pc” ] && (
install -d $DESTDIR/usr/local/lib/pkgconfig &&
install -m 0644 rdkafka.pc $DESTDIR/usr/local/lib/pkgconfig
)
[ -f “rdkafka-static.pc” ] && (
install -d $DESTDIR/usr/local/lib/pkgconfig &&
install -m 0644 rdkafka-static.pc $DESTDIR/usr/local/lib/pkgconfig
)
(cd $DESTDIR/usr/local/lib && ln -sf librdkafka.so.1 librdkafka.so)
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src’
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src-cpp’
Install librdkafka++ to /usr/local
install -d $DESTDIR/usr/local/include/librdkafka
install -d $DESTDIR/usr/local/lib
install rdkafkacpp.h $DESTDIR/usr/local/include/librdkafka
install librdkafka++.a $DESTDIR/usr/local/lib
[ ! -f librdkafka+±static.a ] || install librdkafka+±static.a $DESTDIR/usr/local/lib
install librdkafka++.so.1 $DESTDIR/usr/local/lib
[ -f “rdkafka++.pc” ] && (
install -d $DESTDIR/usr/local/lib/pkgconfig &&
install -m 0644 rdkafka++.pc $DESTDIR/usr/local/lib/pkgconfig
)
[ -f “rdkafka+±static.pc” ] && (
install -d $DESTDIR/usr/local/lib/pkgconfig &&
install -m 0644 rdkafka+±static.pc $DESTDIR/usr/local/lib/pkgconfig
)
(cd $DESTDIR/usr/local/lib && ln -sf librdkafka++.so.1 librdkafka++.so)
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src-cpp’
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src’
Generating pkg-config file rdkafka-static.pc
Checking librdkafka integrity
librdkafka.so.1 OK
librdkafka.a OK
Symbol visibility OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src’
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/src-cpp’
Generating pkg-config file rdkafka+±static.pc
Checking librdkafka++ integrity
librdkafka++.so.1 OK
librdkafka++.a OK
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/src-cpp’
make -C examples
make[1]: Entering directory ‘/home/sol/Downloads/librdkafka/examples’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/sol/Downloads/librdkafka/examples’
Updating CONFIGURATION.md
Installing documentation to /usr/local
install -d $DESTDIR/usr/local/share/doc/librdkafka
install LICENSE LICENSES.txt INTRODUCTION.md README.md CONFIGURATION.md STATISTICS.md CHANGELOG.md DESTDIR/usr/local/share/doc/librdkafka sol@sol-desktop:~/Downloads/librdkafka sudo cp /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream-5.0/lib
cp: cannot stat ‘/usr/local/lib/librdkafka’: No such file or directory
cp: cannot stat ‘/usr/local/lib/librdkafka++’: No such file or directory

Hi,
Did you do this,
git reset --hard 7101c2310341ab3f4675fc565f64f0967e135a6a
and make sure you configure with option --enable-ssl

1 Like