Hi Guys, i just found out that it is not able to find the libraries specified for some reason even though i add them to the current path in Matlab. I dont know why it would do such a thing, would anyone have any idea?
Hi, I keep getting #failed to generate all binary outputs message when using the S function block.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi. I am using an Arduino UNO with an adafruit 10 dof IMU. I am running an example sketch on using only the accelerometer,on Simulink using the S-function block. Every time I run it I keep getting this error message. I didnt post the whole code as it is very long, just the part showing the error.
I/Users/Hammodi/Documents/MATLAB/SupportPackages/R2015b/arduino-1.6.1/Arduino.app/Contents/Resources/Java/libraries/Servo/src -I/Users/Hammodi/Documents/MATLAB/SupportPackages/R2015b/arduino/toolbox/target/supportpackages/arduinotarget/registry/../include -I/Users/Hammodi/Documents/MATLAB/SupportPackages/R2015b/arduino/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -I/Users/Hammodi/Documents/MATLAB/SupportPackages/R2015b/arduinobase/toolbox/target/supportpackages/arduinobase/include -o "Accelerometer_wrapper.o" "../Accelerometer_wrapper.cpp"
../Accelerometer_wrapper.cpp:19:18: fatal error: Wire: No such file or directory
#include <Wire>.h
^
compilation terminated.
gmake: *** [Accelerometer_wrapper.o] Error 1
### Build procedure for model: 'Aceleromoter_test' aborted due to an error.
Error(s) encountered while building "Aceleromoter_test":
### Failed to generate all binary outputs.
Antworten (1)
Walter Roberson
am 13 Apr. 2016
#include <Wire.h>
You had the .h in the wrong place
2 Kommentare
Walter Roberson
am 14 Apr. 2016
Which .h is accel declared in?
You should not be #include'ing a .cpp in this situation.
Siehe auch
Kategorien
Mehr zu Modeling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!