Closed thinkyhead closed 8 years ago
Hi, I'll close this issue as it seems to relate to an issue of another TMC2130 library and another fork of Marlin. Thanks anyway! Much appreciated!
@makertum I'm the lead on MarlinFirmware, and we are trying to use your library to integrate TMC2130 support into the upcoming 1.1.0 release.
Here's what we're doing in our .travis.yml
:
# Install: TMC2130 Stepper Motor Controller library
- git clone https://github.com/makertum/Trinamic_TMC2130.git
- sudo mv Trinamic_TMC2130 /usr/local/share/arduino/libraries/Trinamic_TMC2130
git clone https://github.com/makertum/Trinamic_TMC2130.git
That's you!
And the error message I'm getting back from the Arduino build tools is:
Invalid library found in /usr/local/share/arduino/libraries/Trinamic_TMC2130: /usr/local/share/arduino/libraries/Trinamic_TMC2130
Now then, why do you suppose Arduino is throwing that error? Should we not be using your library? It seems pretty complete to me.
@thinkyhead Maybe
sudo mv Trinamic_TMC2130/Trinamic_TMC2130 /usr/local/share/arduino/libraries/Trinamic_TMC2130
solves your problem.
Hi again!
Sorry for prematurely closing this issue and thanks for your persistence.
esenapaj is probably right, since the actual library lives within the subfolder.
Nevertheless, the ´library.properties´ also wasn't really to spec, so I've made the necessary changes. Could you please try what esenapaj suggested above, along with the current version of the library, and see if it works for you?
Best, Moritz
Trinamic_TMC2130/Trinamic_TMC2130
D'oh! That's probably it! Testing now….
Sure enough, just didn't think to try that. Now the "invalid library" complaint has gone away. Thanks!
I had a couple of typos, so now just waiting for Travis CI to catch any of my remaining errors.
I also made a fork for testing so I could also play with the properties file. The one other thing I did there was to move the .cpp
and .h
files into a src
subfolder. When we publish Marlin for other architectures —which may happen pretty soon for Due— we might need architecture-based subfolders, unless the code is universal. I presume it is…?
It is - as long as the library is provided a suiteble SPI.h, it'll work fine on any architecture.
I'm trying to get Travis CI to do a test build of Marlin… https://travis-ci.org/MarlinFirmware/Marlin/builds/174050993 …but when it installs Trinamic_TMC2130 library Arduino complains:
Is the library in need of an update, or is there some way I can get Arduino to accept it?