ladislas / Bare-Arduino-Project

Start your Arduino projects right out of the box
MIT License
564 stars 68 forks source link

Doesn't build objects from sources under lib/ #24

Closed sagargp closed 8 years ago

sagargp commented 8 years ago

I have some custom libraries under the lib/ directory, similar to FooLib and BarLib. When building, the compiler is invoked with -I.../FooLib properly, but a FooLib.o is never built and linked into the final executable. Therefore, the final linker step fails with "undefined references" errors.

ladislas commented 8 years ago

can you show me your directory structure? also, does your library have the same name as your folder?

if you have a github repository with everything, that would be even better for me to take a look.

sagargp commented 8 years ago

They do have the same name, although the directory/file names are in all-lowercase while the class name is in CamelCase. I don't know if that matters. Here's a link to the code I'm talking about.

ladislas commented 8 years ago

this exemple works

https://github.com/ladislas/hermes2-firmware/tree/hermes

ladislas commented 8 years ago

you need to change the makefile a bit

ladislas commented 8 years ago

@sagargp any news on that?

I'm closing the issue, feel free to reopen it if needed.