Page 1 of 1

Build errors when using Erika3

Posted: Wed Mar 07, 2018 5:26 pm
by Junjie
Hi,

My name is Junjie Shi, I am a PhD student from TU Dortmund.
Recently, I am using the new release of ERIKA V3 on windows 10-64 bit.
After installing all the needed software following the "quick start", I am unable to build the project, the error messages are shown as follows:

15:51:34 **** Incremental Build of configuration Default for project fachproject ****
make all
make[1]: Entering directory '/cygdrive/c/Users/JUNJIE~1/WORKSP~1/FACHPR~1/erika'
ERIKA_FILES=/cygdrive/c/Users/JUNJIE~1/DOCUME~1/ARDUIN~1/ECLIPS~1/eclipse/plugins/COMEUE~1.201/ee_files
make[2]: Entering directory '/cygdrive/c/Users/JUNJIE~1/WORKSP~1/FACHPR~1/erika/doc'
************************************************
* Erika Enterprise Documentation Generation... *
************************************************
**********************************************************
* Erika Enterprise Documentation Generated successfully! *
**********************************************************
make[2]: Leaving directory '/cygdrive/c/Users/JUNJIE~1/WORKSP~1/FACHPR~1/erika/doc'
make[2]: Entering directory '/cygdrive/c/Users/JUNJIE~1/WORKSP~1/FACHPR~1/erika'
***************************************
* Erika Enterprise Libraries build... *
***************************************
CC hooks.c
/bin/sh: C:\PROGRA~1\cygwin/bin/avr-gcc: No such file or directory
make[2]: *** [/cygdrive/c/Users/JUNJIE~1/WORKSP~1/FACHPR~1/erika/mk/ee_arch_rules.mk:201: obj/hardware/arduino/avr/cores/arduino/hooks.c.o] Error 127
make[2]: Leaving directory '/cygdrive/c/Users/JUNJIE~1/WORKSP~1/FACHPR~1/erika'
make[1]: *** [makefile:77: all] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/JUNJIE~1/WORKSP~1/FACHPR~1/erika'
make: *** [makefile:92: /cygdrive/c/Users/JUNJIE~1/WORKSP~1/FACHPR~1/erika/lib] Error 2

15:51:38 Build Finished (took 4s.467ms)

It may be caused by the path problem. Can anyone give me some suggestions? Thanks in advance!

Re: Build errors when using Erika3

Posted: Wed Mar 07, 2018 6:51 pm
by paolo.gai
The makefile cannot find the compiler...

You need to:
1) install the Arduino tools
2) link the compiler inside the properties, see
http://www.erika-enterprise.com/wiki/in ... figuration

I hope it helps...

PJ

Re: Build errors when using Erika3

Posted: Thu Mar 08, 2018 9:39 am
by Junjie
Hi,

Thanks for your answer.
I have installed the Arduino (tried both 1.8.4 and 1.8.5), and it still doesn't work. (the same error message)

It seems that there is no file under "obj" folder, all the files haven't been copied from Arduino tool.

Re: Build errors when using Erika3

Posted: Thu Mar 08, 2018 10:39 am
by paolo.gai
Can you please write:

- the directory where arduino is installed on your machine

- the value that you put in the RT-Druid properties (I mean the 4 values on the properties in Figure 12 of http://www.erika-enterprise.com/wiki/in ... figuration )

PJ

Re: Build errors when using Erika3

Posted: Thu Mar 08, 2018 11:12 am
by Junjie
Hi,

I just find the reason...
I set the path of "AVR GCC Compiler" to the cygwin, which causes the problem. I should leave it as empty.
Now, it works~
Thanks a lot!