Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #1

Open
fabianoriccardi opened this issue Dec 20, 2020 · 3 comments
Open

Compile error #1

fabianoriccardi opened this issue Dec 20, 2020 · 3 comments

Comments

@fabianoriccardi
Copy link

Hi,
thanks for your work.
I was trying to compile your project, but it fails for all the platforms. The first "issue" was about the ambiguity of the dependencies, so I had fix it specifying the full ID of each library, accordingly to your readme:

  sv-zanshin/INA2xx
  greiman/SdFat
  rlogiacco/CircularBuffer
  mathertel/OneButton
  adafruit/RTClib
  olikraus/U8g2

Then I had commented libdeps_dir = ~/.platformio/lib since I don't want to pollute the environment. Then I just type pio run (default env is ATmega328p) and I got:

Building in release mode
Compiling .pio\build\ATmega328p\src\main.cpp.o
Compiling .pio\build\ATmega328p\lib691\Wire\Wire.cpp.o
Compiling .pio\build\ATmega328p\lib691\Wire\utility\twi.c.o
avr-g++: fatal error: no input files
compilation terminated.
Compiling .pio\build\ATmega328p\lib737\INA2xx\INA.cpp.o
Compiling .pio\build\ATmega328p\lib9a6\SPI\SPI.cpp.o
avr-g++: fatal error: no input files
compilation terminated.
avr-gcc: fatal error: no input files
compilation terminated.
Compiling .pio\build\ATmega328p\libf7e\SdFat\ExFatLib\ExFatDbg.cpp.o
Compiling .pio\build\ATmega328p\libf7e\SdFat\ExFatLib\ExFatFile.cpp.o
*** [.pio\build\ATmega328p\src\main.cpp.o] Error 1
Compiling .pio\build\ATmega328p\libf7e\SdFat\ExFatLib\ExFatFilePrint.cpp.o
*** [.pio\build\ATmega328p\lib691\Wire\Wire.cpp.o] Error 1
avr-g++: fatal error: no input files
compilation terminated.
*** [.pio\build\ATmega328p\lib691\Wire\utility\twi.c.o] Error 1
*** [.pio\build\ATmega328p\lib737\INA2xx\INA.cpp.o] Error 1
avr-g++: fatal error: no input files
compilation terminated.
avr-g++: fatal error: no input files
compilation terminated.
avr-g++: fatal error: no input files
compilation terminated.
*** [.pio\build\ATmega328p\libf7e\SdFat\ExFatLib\ExFatDbg.cpp.o] Error 1
*** [.pio\build\ATmega328p\lib9a6\SPI\SPI.cpp.o] Error 1
*** [.pio\build\ATmega328p\libf7e\SdFat\ExFatLib\ExFatFile.cpp.o] Error 1
avr-g++: fatal error: no input files
compilation terminated.
*** [.pio\build\ATmega328p\libf7e\SdFat\ExFatLib\ExFatFilePrint.cpp.o] Error 1

May you help me? Should I specify specific version of the libraries?

@avaldebe
Copy link
Owner

I can not reproduce your error.

Are you on Windows?
In that case, I suspect that the following definition is giving you problems

build_flags =
  !echo -D GIT_REV=\\\"`git describe`\\\"

try replacing it with something like

build_flags =
  -D GIT_REV="0.1.1++"

@fabianoriccardi
Copy link
Author

fabianoriccardi commented Dec 21, 2020

Yes, i'm on windows. I had solved with

!echo -D GIT_REV="\"`git describe`\""

EDIT: I didn't tested it, it just prints "git describe"

@avaldebe
Copy link
Owner

let me know if this solves you problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants