GithubHelp home page GithubHelp logo

Weird lib problem about arduino-makefile HOT 9 CLOSED

sudar avatar sudar commented on May 17, 2024
Weird lib problem

from arduino-makefile.

Comments (9)

sudar avatar sudar commented on May 17, 2024

Can you also post your sketch, either as a gist or in pastebin?

Also the SPI library you are using is the build in one? And which Arduino version you are using?

from arduino-makefile.

bradwood avatar bradwood commented on May 17, 2024

Hi.

THe SPI lib is the standard one, not one in my USER LIB folder. Arduino version is 1.0.5.

Sketch is here: http://pastebin.com/eNp2xFxD

Thanks

Brad

from arduino-makefile.

sej7278 avatar sej7278 commented on May 17, 2024

I'm getting this too on Debian with 1.0.5 (and arduino-mk 0.10-5) it seems sometime after 0.10-2 the libs folder isn't being created within the build-uno directory.

I assume its because DEP_FILE is no longer being used (commit 4fdd176) it only seems to affect system libs - same as Brad has with his SPI lib.

-                      ARDUINO_LIBS =
- [USER]                 Adafruit_GFX
- [USER]                 Adafruit_PCD8544
- [USER]                 Adafruit_BMP085
- [USER]                 DHT
- [SYSTEM]               Wire
- [SYSTEM]               Wire/utility
- [SYSTEM]               Wire/utility
-------------------------
/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=105 -I. -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Wire -I/usr/share/arduino/libraries/Wire/utility -I/usr/share/arduino/libraries/Wire/utility -I/home/simon/programming/c++/arduino/libraries/Adafruit_GFX -I/home/simon/programming/c++/arduino/libraries/Adafruit_PCD8544 -I/home/simon/programming/c++/arduino/libraries/Adafruit_BMP085 -I/home/simon/programming/c++/arduino/libraries/DHT -g -Os -Wall -ffunction-sections -fdata-sections -std=gnu99   /usr/share/arduino/libraries/Wire/utility/twi.c -o build-uno/libs/Wire/utility/twi.o
/usr/share/arduino/libraries/Wire/utility/twi.c:526:1: fatal error: opening dependency file build-uno/libs/Wire/utility/twi.d: No such file or directory
compilation terminated.
make: *** [build-uno/libs/Wire/utility/twi.o] Error 1

from arduino-makefile.

matthijskooijman avatar matthijskooijman commented on May 17, 2024

I recently also noticed this. I suspect that one of my commits caused it, I'll see how we can fix this properly.

from arduino-makefile.

sudar avatar sudar commented on May 17, 2024

@matthijskooijman

Some more hints for debugging.

I guess this happens when the library folder has more than one *.cpp file.

from arduino-makefile.

bradwood avatar bradwood commented on May 17, 2024

I have a suspicion its 1.0.5-specific, in particular all the Arduino Robot libs that come with 1.0.5 seem buggy as all hell... Not sure if it's trying (and failing) to build these too...

from arduino-makefile.

sej7278 avatar sej7278 commented on May 17, 2024

The 1.0.5 wifi libs have been a headache too, but I don't think that's the problem

from arduino-makefile.

sudar avatar sudar commented on May 17, 2024

I have a suspicion its 1.0.5-specific

I am able to reproduce this even in Arduino 1.0.3. So I guess this is because of the change in dependency code and not Arduino.

from arduino-makefile.

matthijskooijman avatar matthijskooijman commented on May 17, 2024

Here's a fix. Not as pretty as I would have liked, but Makefiles really are too limited in certain ways, it seems.

from arduino-makefile.

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.