Software > Software

error in vrbot(voice recognition) example code

(1/8) > >>

aaa3a:
i've downloaded the voice recognition project in the examples and modified the project design to add my hardware and generated the files then modified the example to put my own code to control the hw after rebuild all i found this errors"../hardware.h:33:21: error: libdefs.h: No such file or directory
../hardware.h:34:18: error: core.h: No such file or directory
../hardware.h:35:19: error: timer.h: No such file or directory
../hardware.h:36:17: error: a2d.h: No such file or directory
../hardware.h:37:21: error: rprintf.h: No such file or directory
../hardware.h:38:17: error: led.h: No such file or directory
../hardware.h:41:20: error: switch.h: No such file or directory
../hardware.h:42:20: error: errors.h: No such file or directory
../hardware.h:43:18: error: uart.h: No such file or directory
../hardware.h:44:20: error: buffer.h: No such file or directory
../hardware.h:45:20: error: segled.h: No such file or directory
../hardware.h:46:38: error: Motors/Toshiba/TB6612FNG.h: No such file or directory
../hardware.h:47:43: error: Audio/Text2Speech/Text2Speech.h: No such file or directory
../hardware.h:48:45: error: Sensors/Distance/Ping/PingSonar.h: No such file or directory
In file included from ../hardware.h:49,
                 from ../VR_Axon2_demo.c:5:
../lib/lib_timerdef.h:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Timer'
In file included from ../hardware.h:50,
                 from ../VR_Axon2_demo.c:5:
../lib/lib_iopins.h:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
In file included from ../VR_Axon2_demo.c:5:
../hardware.h:56: warning: type defaults to 'int' in declaration of 'MAKE_WRITER'
../hardware.h:56: warning: parameter names (without types) in function declaration
../hardware.h:57: warning: type defaults to 'int' in declaration of 'MAKE_READER'
../hardware.h:57: warning: parameter names (without types) in function declaration
../hardware.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__C_uart1'
../hardware.h:65: warning: type defaults to 'int' in declaration of 'MAKE_WRITER'
../hardware.h:65: warning: parameter names (without types) in function declaration
../hardware.h:66: warning: type defaults to 'int' in declaration of 'MAKE_READER'
../hardware.h:66: warning: parameter names (without types) in function declaration
../hardware.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__C_Voice_Recognition'
../hardware.h:93: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_button_'
../hardware.h:94: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_led_display_'
../hardware.h:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_marquee_'
../hardware.h:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_led_'
../hardware.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_motor_left_'
../hardware.h:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_motor_right_'
../hardware.h:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_motor_bank_'
../hardware.h:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_sonar_'
In file included from ../VR_Axon2_demo.c:6:
../VR_library.h:9: warning: return type defaults to 'int'
../VR_library.h: In function 'MAKE_WRITER':
../VR_library.h:9: warning: type of 'writerVoice_Recognition' defaults to 'int'
../VR_library.h:10: warning: implicit declaration of function 'Voice_RecognitionSendByte'
../VR_library.h:10: error: 'byte' undeclared (first use in this function)
../VR_library.h:10: error: (Each undeclared identifier is reported only once
../VR_library.h:10: error: for each function it appears in.)
../VR_library.h: In function 'VR_Module_change_language':
../VR_library.h:19: error: 'Writer' undeclared (first use in this function)
../VR_library.h:19: error: expected ';' before 'old'
../VR_library.h:21: warning: implicit declaration of function 'rprintf'
../VR_library.h:24: warning: implicit declaration of function 'Voice_RecognitionGetByte'
../VR_library.h:25: warning: implicit declaration of function 'delay_ms'
../VR_library.h:27: warning: implicit declaration of function 'rprintfInit'
../VR_library.h:27: error: 'old' undeclared (first use in this function)
../VR_library.h: In function 'VR_Module_init':
../VR_library.h:33: warning: implicit declaration of function 'bufferFlush'
../VR_library.h:33: error: 'rx_Voice_Recognition_Buffer' undeclared (first use in this function)
../VR_library.h:34: error: 'tx_Voice_Recognition_Buffer' undeclared (first use in this function)
../VR_library.h:41: error: 'Writer' undeclared (first use in this function)
../VR_library.h:41: error: expected ';' before 'old'
../VR_library.h:51: error: 'old' undeclared (first use in this function)
../VR_library.h:54: error: 'writerVoice_Recognition' undeclared (first use in this function)
../VR_library.h: In function 'VR_Module_start_recognition':
../VR_library.h:110: error: 'Writer' undeclared (first use in this function)
../VR_library.h:110: error: expected ';' before 'old'
../VR_library.h:127: error: 'old' undeclared (first use in this function)
../VR_library.h: In function 'VR_Module_get_result':
../VR_library.h:152: error: 'Writer' undeclared (first use in this function)
../VR_library.h:152: error: expected ';' before 'old'
../VR_library.h:154: error: 'old' undeclared (first use in this function)
../VR_library.h:177: error: expected ';' before 'old'
../VR_Axon2_demo.c: At top level:
../VR_Axon2_demo.c:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'appInitSoftware'
../VR_Axon2_demo.c: In function 'go_back':
../VR_Axon2_demo.c:33: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:34: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: In function 'go_forward':
../VR_Axon2_demo.c:41: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:42: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: In function 'go_left':
../VR_Axon2_demo.c:49: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:50: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: In function 'go_right':
../VR_Axon2_demo.c:60: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:61: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: In function 'robot_stop':
../VR_Axon2_demo.c:71: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:72: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: At top level:
../VR_Axon2_demo.c:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'appControl'
"

i've tried my own code alone in another project it goes well with no errors then i've tested the voice recognition without any modification the same error above the prob. was in the example

here is a copy of the modified project so anyone can help me and tell my why this error pops up

regards

Webbot:
You seem to have multiple projects in the same folder and have generated one as C and the other as C++. That's a no no. Keep your projects in separate folders.

aaa3a:
i am new to programing and i didn't found vrbot lib in webbotlib in the project designer so i've used the one in the example and add my new hardware so after compiling found this error so what i have to do to combine the vrbot lib to my project is there any new version of webbotlib or project designer contains vrbot or there is a modification can be made to the vrbot example to work with my other hardware

Webbot:
WebbotLib doesn't have any built-in support for the vrbot so I'm assuming that you downloaded the vrbot example code from this website and so maybe others users of this site may have used it.
Still - it doesn't change what I said earlier. You've got 2 projects in one directory/folder and that on its own will give you errors. Sort your projects into different folders and it may then compile (I say 'may' as I'm not familiar with the vrbot code).

aaa3a:
my dear friend  i want to make a robot with vrbot and sonar sensor , toshiba motor driver ,text to speech ,led  so who can support me to combine all those together as the vrbot not included in project designer and the webbotlib i've tried to use the project designer file that comes with the example and add to it my hardware then generated the project which generated all this errors

so if you know someone to support me in vrbot please tell me how to contact him
do you think Admin can have a solution ?

Navigation

[0] Message Index

[#] Next page

Go to full version