Skip to content

Getting error while executing "make" command #1

@usamaahmad-markitech

Description

@usamaahmad-markitech

I am trying to program a Dusun Gateway for Door Sensor. I have followed steps from https://www.dusuniot.com/develop-application-ondusun-gateway but when I execute "sudo make" command on terminal I am getting following output with error:

mipsel-openwrt-linux-gcc -c /home/software/Dusun_Gateway_API/example/test.c -Wall -g -O2 -I/home/software/Dusun_Gateway_API/example/libs/osi/include  -I/home/software/Dusun_Gateway_API/example/libs/other/include  -I/home/software/Dusun_Gateway_API/example/../rbsdk/V1.0.3/include -fPIC -fpermissive -I/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/software/OpenWrt-SDK/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include  -MMD -MP -MF"/home/software/Dusun_Gateway_API/example/build/test.d" -o /home/software/Dusun_Gateway_API/example/build/test.o
cc1: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C [enabled by default]
mipsel-openwrt-linux-gcc -c /home/software/Dusun_Gateway_API/example/cmd.c -Wall -g -O2 -I/home/software/Dusun_Gateway_API/example/libs/osi/include  -I/home/software/Dusun_Gateway_API/example/libs/other/include  -I/home/software/Dusun_Gateway_API/example/../rbsdk/V1.0.3/include -fPIC -fpermissive -I/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/software/OpenWrt-SDK/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include  -MMD -MP -MF"/home/software/Dusun_Gateway_API/example/build/cmd.d" -o /home/software/Dusun_Gateway_API/example/build/cmd.o
cc1: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C [enabled by default]
mipsel-openwrt-linux-gcc -c /home/software/Dusun_Gateway_API/example/parse_argv.c -Wall -g -O2 -I/home/software/Dusun_Gateway_API/example/libs/osi/include  -I/home/software/Dusun_Gateway_API/example/libs/other/include  -I/home/software/Dusun_Gateway_API/example/../rbsdk/V1.0.3/include -fPIC -fpermissive -I/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/software/OpenWrt-SDK/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include  -MMD -MP -MF"/home/software/Dusun_Gateway_API/example/build/parse_argv.d" -o /home/software/Dusun_Gateway_API/example/build/parse_argv.o
cc1: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C [enabled by default]
mipsel-openwrt-linux-gcc  /home/software/Dusun_Gateway_API/example/build/test.o /home/software/Dusun_Gateway_API/example/build/cmd.o /home/software/Dusun_Gateway_API/example/build/parse_argv.o /home/software/Dusun_Gateway_API/example/../rbsdk/V1.0.3/lib/librbsdk.a -lm -lrt -ldl -lpthread -ljson-c -lubox -lblobmsg_json -lubus -lcares -lmosquitto -lssl -lcrypto -lstdc++ -L/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/software/OpenWrt-SDK/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib/  -o /home/software/Dusun_Gateway_API/example/build/test
/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -ljson-c
/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lubox
/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lblobmsg_json
/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lubus
/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lcares
/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lmosquitto
/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lssl
/home/software/OpenWrt-SDK/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Makefile:22: recipe for target 'test' failed
make: *** [test] Error 1

and cmd.o, cmd.h, parse_argv.d, parse_argv.o, test.d and test.o files are created in "build" folder.
But there is no "test" folder created...!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions