Coder Social home page Coder Social logo

Trouble compiling controlino about instrumentino HOT 8 CLOSED

yoelk avatar yoelk commented on September 7, 2024
Trouble compiling controlino

from instrumentino.

Comments (8)

yoelk avatar yoelk commented on September 7, 2024

Hi Daniel,
Are you the same Daniel that recently wrote me (from uni-weimar)>

Anyway, eclipse is definitely not a must.

Controlino is a single file, so you can easily open it with the normal
Arduino editor, and use it to compile and upload Controlino to your arduino
device.
It would be good if you look a bit in the Controlino code, at least in its
beginning.
There is a list of definitions you should set before compiling, such as
which Arduino board you're using, which libraries you want to use etc.
If you want to use the PID library, for example, you need to have it
"installed" in the appropriate place, so the "#include" statement will find
it.

If you're still not successful doing it this way, please let me know, with
the error you get from the normal Arduino editor/loader.

Good luck,
Joel

from instrumentino.

daniellikessoccer avatar daniellikessoccer commented on September 7, 2024

I am no longer using this account.
Please change my email address and resend your message to [email protected]

from instrumentino.

 avatar commented on September 7, 2024

Update 2: See my comment below which fixed my issue.

Update 1: After looking around I believe "SoftwareSerial" is an arduino supported library. I'll see if I can get it to work...

I'm having a similar issue. I'm using "sketch" to compile + load the controlino.cpp file onto my arduino uno and it's unable to load the libraries (SoftwareSerial is the one I'm using).

sketch uses serveral things to load libraries, but for .cpp it appears I need both the SoftwareSerial.cpp file and the SoftwareSerial.h file, otherwise the #include "SoftwareSerial.h" line fails inside sketch.

If you're not using sketch or want to test/see what I'm doing, here's the sketch library loading documentation: http://arduino.cc/en/guide/libraries

Can you include the .h/.cpp files for the controlino libraries or list the source location/software you're using for them?

from instrumentino.

daniellikessoccer avatar daniellikessoccer commented on September 7, 2024

from instrumentino.

 avatar commented on September 7, 2024

I found out why I was having issues. Possibly old software, probably how I loaded the file into sketch.

  1. I was running a fairly old version of what they now call "Arduino Editor", which was called "sketch" at one time. I upgraded to Arduino Editor 1.62 (the latest)
  2. To do that upgrade, I had to go from java 7.x (open source) to 8 (oracle). Lots of issues on the Arduino Editor forums about startup issues and using java 1.8 is the "fix".
  3. As suggested above, but I really didn't pick it out when I first read it, is how you need to load controlino.cpp into the Arduino Editor. What didn't work for me was to include it via the "add file" option. It will load, but will not compile (it cannot find SoftwareSerial.h). What did work was to make a copy of controlino.cpp and call this copy controlino.ino, put this in your sketchbook directory (for ease of the next step), then load it directly via file -> sketchbook-> controlino

After that it compiles and I loaded it into the Arduino.

from instrumentino.

yoelk avatar yoelk commented on September 7, 2024

Hi Snarfums,
So, do I understand your issue is resolved?
Sorry for taking so long, I've been away last week.

On Mon, Mar 30, 2015 at 12:46 AM, Snarfums [email protected] wrote:

I found out why I was having issues. Possibly old software, probably how I
loaded the file into sketch.

  1. I was running a fairly old version of what they now call "Arduino
    Editor", which was called "sketch" at one time. I upgraded to Arduino
    Editor 1.62 (the latest)
  2. To do that upgrade, I had to go from java 7.x (open source) to 8
    (oracle). Lots of issues on the Arduino Editor forums about startup issues
    and using java 1.8 is the "fix".
  3. As suggested above, but I really didn't pick it out when I first read
    it, is how you need to load controlino.cpp into the Arduino Editor. What
    didn't work for me was to include it via the "add file" option. It will
    load, but will not compile (it cannot find SoftwareSerial.h). What did
    work was to make a copy of controlino.cpp and call this copy
    controlino.ino, put this in your sketchbook directory (for ease of the next
    step), then load it directly via file -> sketchbook-> controlino

After that it compiles and I loaded it into the Arduino.


Reply to this email directly or view it on GitHub
#5 (comment).

from instrumentino.

 avatar commented on September 7, 2024

Yes: Issue resolved! I figured I'd post all the details in case anyone else ran into similar issues/questions.

from instrumentino.

daniellikessoccer avatar daniellikessoccer commented on September 7, 2024

from instrumentino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.