Open antigravity99 opened 7 years ago
The coap-server is only a component; it can't be built alone. But, you can disable most of the components if you don't want to work with them. The README file tells you how to do that.
Then, you must build the entire example project:
make clean all BOARD=launchpad/cc2650
I am completely new to contiki and embedded development (just a little experience with Arduino).
I cloned contiki on a Ubuntu 17.10 VM and can compile and run simple applications to make an LED blink. I cannot compile the coap-server example: /home/josh/contiki/examples/cc26xx/cc26xx-web-demo
Here is the command I am using to make:
sudo make clean TARGET=srf06-cc26xx BOARD=launchpad/cc2650 coap-server
Here is what I get near the end of the process when it fails the build:
CC coap-server.c LD coap-server.elf obj_srf06-cc26xx/coap-server.o:(.data.coap_server_process+0x0): multiple definition of
coap_server_process' coap-server.co:(.data.coap_server_process+0x0): first defined here obj_srf06-cc26xx/coap-server.o:(.data.coap_server_supported_msg+0x0): multiple definition of
coap_server_supported_msg' coap-server.co:(.data.coap_server_supported_msg+0x0): first defined here obj_srf06-cc26xx/coap-server.o:(.data.coap_server_not_found_msg+0x0): multiple definition ofcoap_server_not_found_msg' coap-server.co:(.data.coap_server_not_found_msg+0x0): first defined here contiki-srf06-cc26xx.a(contiki-main.o): In function
main': contiki-main.c:(.text.startup.main+0x248): undefined reference to `autostart_processes' collect2: error: ld returned 1 exit status ../../../cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx:114: recipe for target 'coap-server.elf' failed make: *** [coap-server.elf] Error 1 rm coap-server.co obj_srf06-cc26xx/fault-handlers.o obj_srf06-cc26xx/startup_gcc.oI have been searching on google and github for about 3 hrs trying to find a solution but with no luck. Any idea's why? It is not obvious to me. Thanks!