running cooja in contiki with cmd "ant run"
Then when I, ant run same appears again
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"?
My solution:
cd tools/cooja
rm -rf .git
cd ..
sudo git submodule update --init
Enjoy Cooja :)
The following worked for me:
- 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).
- Remove the empty mspsim directory from both places
- After unzip mspsim-master, paste the unzipped mspsim-master directory on both places
- Rename the directory from mspsim-master to mspsim on both palces.
- Go to terminal (user@instant-contiki:~/contiki-3.0/tools/cooja$) and run this command ant run
- No need to use sudo
Enjoy!
Please notice the last warring. If your English is not good, use Goolge Translate please. Just run "git submodule update --init" before run "ant run".