Hi Everyone.
I am working with contiki and I want to integrate EXIP to my app.
However I got an error during the building process.
I did this:
--->I edited the Makefile under /build/gcc and I changed the TARGET value to contiki, like this:
TARGET ?= contiki
--->And I edited de build-params.mk file under /gcc/contiki and changed the platform to:
# Specify compiler to be used
COMPILER = msp430-gcc
# Specify ar tool to be used
ARCHIVER = msp430-gcc-ar
# Debug flags if any
DEBUGGING = #-O0 -g
# Warning flags
WARNING = -Wpacked -Wall
--->I commented this line because was causing some errors.
# Add aditional CFLAGS if any
#ADDITIONAL_CFLAGS = -mcpu=m16c -falign-functions=2 -nostartfiles -DROMSTART
# Whether to include the grammar generation module in the build
INCLUDE_GRAMMAR_GENERATION = false
# In case INCLUDE_GRAMMAR_GENERATION equals true; whether to
# support parsing of schema-mode EXI encoded XML Schemas
INCLUDE_SCHEMA_EXI_GRAMMAR_GENERATION = false
--->Finally I did a $sudo make and I got the next error:
msp430-gcc -Wpacked -Wall -I../../src/common/include -I../../src/contentIO/include -I../../src/grammar/include -I../../src/grammarGen/include -I../../src/streamIO/include -I../../src/stringTables/include -I../../include -Icontiki -I../../examples/simpleEncoding -I../../examples/simpleDecoding -I../../tests -I../../utils/schemaHandling/include -c ../../src/common/src/ASCII_stringManipulate.c -o ../../bin/ASCII_stringManipulate.o
In file included from ../../include/stringManipulate.h:20:0,
from ../../src/common/src/ASCII_stringManipulate.c:18:
../../include/procTypes.h:23:18: error fatal: time.h: No such file or directory compilation terminated
make: *** [../../bin/ASCII_stringManipulate.o] Error 1
The error is : No such file or directory compilation terminated
No such file or directory compilation terminated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
exip reuses the "struct tm" definition from time.h header. Obviously time.h is not part of the standard libraries included as part of your compiler (msp430-gcc). You need to define "struct tm" manually to resolve this issue (see http://www.acm.uiuc.edu/webmonkeys/book/c_guide/2.15.html#variables).
Regards,
Rumen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Everyone.
I am working with contiki and I want to integrate EXIP to my app.
However I got an error during the building process.
I did this:
--->I edited the Makefile under /build/gcc and I changed the TARGET value to contiki, like this:
TARGET ?= contiki
--->And I edited de build-params.mk file under /gcc/contiki and changed the platform to:
# Specify compiler to be used
COMPILER = msp430-gcc
--->I commented this line because was causing some errors.
# Add aditional CFLAGS if any
#ADDITIONAL_CFLAGS = -mcpu=m16c -falign-functions=2 -nostartfiles -DROMSTART
--->Finally I did a $sudo make and I got the next error:
msp430-gcc -Wpacked -Wall -I../../src/common/include -I../../src/contentIO/include -I../../src/grammar/include -I../../src/grammarGen/include -I../../src/streamIO/include -I../../src/stringTables/include -I../../include -Icontiki -I../../examples/simpleEncoding -I../../examples/simpleDecoding -I../../tests -I../../utils/schemaHandling/include -c ../../src/common/src/ASCII_stringManipulate.c -o ../../bin/ASCII_stringManipulate.o
In file included from ../../include/stringManipulate.h:20:0,
from ../../src/common/src/ASCII_stringManipulate.c:18:
../../include/procTypes.h:23:18: error fatal: time.h: No such file or directory compilation terminated
make: *** [../../bin/ASCII_stringManipulate.o] Error 1
The error is : No such file or directory compilation terminated
No such file or directory compilation terminated
Hi Patricia,
exip reuses the "struct tm" definition from time.h header. Obviously time.h is not part of the standard libraries included as part of your compiler (msp430-gcc). You need to define "struct tm" manually to resolve this issue (see http://www.acm.uiuc.edu/webmonkeys/book/c_guide/2.15.html#variables).
Regards,
Rumen