Running cooja in contiki with cmd "ant run"

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

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

but actually i ran

             git submodule init
             git submodule update

before using "ant run".

Please help me in solving this problem, I am new to contiki-os and should use it for my master's thesis

+6
source share
7 answers

:

  1. mspsim https://github.com/contiki-os/mspsim ( home/contiki/tools/mspsim home/contiki-3.0/tools/mspsim, , , ).
  2. mspsim
  3. mspsim-master mspsim-master .
  4. mspsim-master mspsim .
  5. ( @instant-contiki: ~/contiki-3.0/tools/cooja $) ant run
  6. sudo

!

+17

. , Goolge Translate, . "git --init" "ant run".

+3

, I, ant ,

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"?

:

cd tools/cooja
rm -rf .git
cd ..
sudo git submodule update --init

Cooja:)

+1

Instant Contiki:

mkdir ~/Downloads/contiki_clone

cd ~/Downloads/contiki_clone

git clone https://github.com/contiki-os/contiki.git

Contiki, :

cd contiki/tools/cooja

git submodule update --init

ant run

Contiki Contiki VM. contiki . , :

mkdir ~/Downloads/contiki_clone

cd ~/Downloads/contiki_clone

git clone https://github.com/contiki-os/contiki.git

cd contiki

git checkout hash_of_the_older_version

cd tools/cooja

git submodule update --init
+1

submodule:

cd /home/user/contiki-3.0/
git submodule update --init
0
  • : contiki/tools/cooja
  • : git submodule update --init
  • : ant run
0

contiki 3.0 VMware.

cd contiki

git submodule update --init

cd tools/cooja/

ant run

Instant Tricks 3.0 downloaded from here .

The rest of the instructions are here .

-2
source

Source: https://habr.com/ru/post/1609224/


All Articles