Git Product home page Git Product logo

Comments (9)

repetier avatar repetier commented on June 28, 2024

Stream.h is part of the Arduino IDE board definition. It is in hardware/arduino/cores/arduino and should be found.

Perhaps you have a non Arduino board where the file is missing?

What IDE version are you using? I checked the current 1.0.3 and there it is.

from repetier-firmware.

grumblebear avatar grumblebear commented on June 28, 2024

Ah OK, I use the new 1.0.3 version. But because I have a Gen7 1.3.1, I also installed the Arduino support package from the Gen7 repository, which does not ship with Stream.h. If the Gen7 Arduino support package is not necessary with Repetier firmware, you should maybe state that explicitly in the documentation.

from repetier-firmware.

repetier avatar repetier commented on June 28, 2024

I guess it is necessary. Only I didn't know it has no Stream.h like Arduino does. I need to take a look at it. I have no Gen 7 so I never tried and other could compile. But I guess you are trying the new development version?

from repetier-firmware.

repetier avatar repetier commented on June 28, 2024

One more thing you could do if you use the development version. Put into Configuration.h

#define EXTERNALSERIAL // Force using arduino serial

then the Stream.h is not required, because the Arduino serial is used instead, or in your case the Gen7 version of it.

from repetier-firmware.

grumblebear avatar grumblebear commented on June 28, 2024

Yes, after not having touched my Reprap for 9 month or so, I now try to compile the Repetier development version. It looks like the Gen7 support package is not quite up to date. I have now copied over Stream.h and WString.h and inserted the following includes in Print.h to satisfy the compiler:
#include <stdio.h>
#include "WString.h"

So far so good, but then I get this error:

In file included from ui.h:440,
from ui.cpp:23:
uiconfig.h: In function ‘void ui_init_keys()’:
uiconfig.h:379: error: ‘DIO42_DDR’ was not declared in this scope
uiconfig.h:379: error: ‘DIO42_PIN’ was not declared in this scope
uiconfig.h:379: error: ‘DIO42_WPORT’ was not declared in this scope
uiconfig.h:379: error: ‘DIO42_PIN’ was not declared in this scope
uiconfig.h:379: error: ‘DIO42_WPORT’ was not declared in this scope
uiconfig.h:379: error: ‘DIO42_PIN’ was not declared in this scope
uiconfig.h: In function ‘void ui_check_keys(int&)’:
uiconfig.h:391: error: ‘DIO42_RPORT’ was not declared in this scope
uiconfig.h:391: error: ‘DIO42_PIN’ was not declared in this scope
ui.cpp: In function ‘void beep(byte, byte)’:
ui.cpp:58: error: ‘DIO37_DDR’ was not declared in this scope
ui.cpp:58: error: ‘DIO37_PIN’ was not declared in this scope
ui.cpp:68: error: ‘DIO37_WPORT’ was not declared in this scope
ui.cpp:68: error: ‘DIO37_PIN’ was not declared in this scope
ui.cpp:68: error: ‘DIO37_WPORT’ was not declared in this scope
ui.cpp:68: error: ‘DIO37_PIN’ was not declared in this scope
ui.cpp:84: error: ‘DIO37_WPORT’ was not declared in this scope
ui.cpp:84: error: ‘DIO37_PIN’ was not declared in this scope
ui.cpp:84: error: ‘DIO37_WPORT’ was not declared in this scope
ui.cpp:84: error: ‘DIO37_PIN’ was not declared in this scope

I guess that is related to the "new" LCD support. In Configuration.h there seems to be no switch to completely turn that feature off.

from repetier-firmware.

repetier avatar repetier commented on June 28, 2024

Thanks for the reply. That is really helpful. I really need to change the config structure a bit to prevent such problems. In your case set BEEPER_TYPE 0 and delete the contents of
void ui_init_keys() {
}
and
void ui_check_keys(int &action) {
}

I guess Sanguino boards will have similar problems, so I will also remove the Stream dependency and make switches in Configuration.h to disable the user interface.

from repetier-firmware.

grumblebear avatar grumblebear commented on June 28, 2024

Let me summarize how to compile Repetier firmware with Arduino 1.0.3. I mistakenly tried to use the Gen7 Arduino support package built from the Generation_7_Electronics sources hosted on Github. Instead download and use the Ge7 Arduino IDE support package 2.0 provided as a zipfile. That one contains all the needed header files. Do not use the modified files from the boards folder of the Repetier sources.

from repetier-firmware.

repetier avatar repetier commented on June 28, 2024

The newest development version shouldn't have any problems any more.
It now only needs the Print.h file. It now also easy to disable the ui completely in the Configuration.h. Simple set
#define FEATURE_CONTROLLER 0
You should also not use any boards changes. Simply use the original arduino/gen7/sanguino files for Arduino 1.x and it should compile.

from repetier-firmware.

MikeP-NZ avatar MikeP-NZ commented on June 28, 2024

Sent from my mobile phone. Please excuse my brevity.

repetier [email protected] wrote:

The newest development version shouldn't have any problems any more.
It now only needs the Print.h file. It now also easy to disable the ui completely in the Configuration.h. Simple set
#define FEATURE_CONTROLLER 0
You should also not use any boards changes. Simply use the original arduino/gen7/sanguino files for Arduino 1.x and it should compile.


Reply to this email directly or view it on GitHub:
#54 (comment)

from repetier-firmware.

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.