Importing Libraries into Arduino Code

Hello,

I have code for calibration of a gyro/accel/mag chipset that uses the following libraries:

//------------------------------- import org.ejml.data.; import org.ejml.simple..; import org.ejml.ops.; import java.io.; import processing.opengl.; import processing.serial.; import java.nio.; //-------------------------------

The compiler stops since it looks like it cannot find one or more of these libraries. Any suggestions?

Here is the compiler output:

MagnCalibration:50: error: expected )' before 'serial' MagnCalibration:50: error: expected primary-expression before 'token' MagnCalibration:50: error: initializer expression list treated as compound expression MagnCalibration:53: error: expected)' before 's' MagnCalibration:54: error: variable or field 'skipBytes' declared void MagnCalibration:54: error: expected )' before 's' MagnCalibration:54: error: expected primary-expression before 'int' MagnCalibration:49: error: 'import' does not name a type MagnCalibration:50: error: 'import' does not name a type MagnCalibration:51: error: 'import' does not name a type MagnCalibration:53: error: 'import' does not name a type MagnCalibration:55: error: 'import' does not name a type MagnCalibration:56: error: 'import' does not name a type MagnCalibration:58: error: 'import' does not name a type MagnCalibration:64: error: expected constructor, destructor, or type conversion before 'static' MagnCalibration:67: error: expected constructor, destructor, or type conversion before 'static' MagnCalibration:69: error: 'PFont' does not name a type MagnCalibration:70: error: 'Serial' does not name a type MagnCalibration:74: error: redefinition of 'boolean readToken' MagnCalibration:50: error: 'boolean readToken' previously defined here MagnCalibration:74: error: expected)' before 'serial' MagnCalibration:74: error: expected primary-expression before 'token'

Thank you.

You’re trying to compile Java/Processing using a C/C++ compiler.

Don’t do it - it’s a waste of time.

I apologize for not understanding this. We have a module that is supposed to calibrate a magnetometer, which appears to be calling a Java numerical linear algebra library. This module has evidently bee n used successfully. So, is the waste of time simply because there's an inherent compatibility conflict, or is it something that can actually be resolved through some other means.

Thank you.

It's Processing - use the Processing IDE, not the Arduino IDE.

Thanks. Downloaded it and found there was still a compile issue. Out of pure luck, this library import org.ejml.simple.. was only using a couple of functions from it, so I tried importing them directly sans the wild card and that worked.

Thanks again. Have a nice day.