Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running cooja in contiki with cmd "ant run"

When I want to run "ant run" in contiki-3.9/tools/cooja, I am facing following error:

BUILD FAILED /home/user/contiki-3.0/tools/cooja/build.xml:199: The following error occurred while executing this line: /home/user/contiki-3.0/tools/cooja/apps/mspsim/build.xml:29: - Could not find the MSPSim build file. Did you run "git submodule update --init"?

but actually I ran

             git submodule init
             git submodule update

before using "ant run".

Please help me on this problem, I'm new to contiki-os and should use it for my master thesis

like image 864
niousha Avatar asked Sep 28 '15 00:09

niousha


People also ask

How do you open Cooja in Contiki?

/contiki/tools/cooja/ - This folder has Cooja Simulator source code. You can run Cooja inside this directory. /contiki/examples/hello-world/ - This has the source code of Hello World example.

What are Contiki OS and Cooja simulator explain?

Contiki is an operating system with a focus on low power IoT devices. Cooja is the Contiki network simulator. Cooja allows the large and small networks of Contiki motes to be simulated. This article takes the reader through the process of programming IoT with Contiki and Cooja.

How install Contiki on Windows?

You simply need to download Instant Contiki, which is a virtual machine created with all necessary toolchains and software for ContikiOS development. After downloading Instant Contiki you need also to download either VMWare Player or VirtualBox, if you are using Windows as your host OS.


2 Answers

The following worked for me:

  1. Download the mspsim separately from this link https://github.com/contiki-os/mspsim (check your home/contiki/tools/mspsim and home/contiki-3.0/tools/mspsim directories, both are probably empty).
  2. Remove the empty mspsim directory from both places
  3. After unzip mspsim-master, paste the unzipped mspsim-master directory on both places
  4. Rename the directory from mspsim-master to mspsim on both palces.
  5. Go to terminal (user@instant-contiki:~/contiki-3.0/tools/cooja$) and run this command ant run
  6. No need to use sudo

Enjoy!

like image 109
Renan Avatar answered Sep 23 '22 20:09

Renan


  • go to: contiki/tools/cooja
  • run: git submodule update --init in the terminal
  • now, try: ant run
like image 22
Ashwin Kannan Avatar answered Sep 21 '22 20:09

Ashwin Kannan