Menu

Correct Library.zip to use

Tom Gibson
2018-02-01
2018-02-06
  • Tom Gibson

    Tom Gibson - 2018-02-01

    I could do with a hand sorting out what seems like a mismatch between the library files and the firmware that I installed. I have been backing down in stages from a 1.8.n ide and myFocuserPro2 build so could have wires crossed somewhere.

    Presently on Linux using IDE 1.6.8. The firmware: V171, I downloaded the Libraries.zip file from Libraries directory.

    Focuserv171_DRV8825_HW203_M firmware built okay.

    Building Focuserv171_DRV8825_HW203_F the #include <LCD.h> failed & I haven't found it.
    There is an #include <LiquidCrystal_I2C.h> in the firmware code but the library I 'm working with has
    LiquidCrystal_I2C1602.

    I suspect that I have the wrong library file, which LiquidCrystal_I2C should I be using.

    Tom

     
    • brownrb

      brownrb - 2018-02-06

      LiquidCrystal_I2C1602. is the wrong library - we dropped that ages ago

       
  • brownrb

    brownrb - 2018-02-01

    Hi Tom
    The myFocuserPro2 is completely different, and has firmware starting with v2xx.ino

    The myFocuserPro uses firmware v1xx.ino

    The LCD library was changed ages ago to the one attached.
    Use the Sketch-Include Library menu option of the Arduino IDE to import the library before trying to compile the firmware (and repeat for other libraries .zip files)

    Regards
    Robert
    I am using Arduino IDE 1.6.8 but I know that 1.8.5 also works. Ignore warning messages.

     

    Last edit: brownrb 2018-02-01
  • Tom Gibson

    Tom Gibson - 2018-02-02

    Hello Bob,

    Thanks for the file, this is where I have been going wrong. Where would I find this file along with the other .zip library files you mention. What I find is a single file "Libraries.zip" in the V1 "libraries" sub-directory which contains individual directories and files. These I have been copying into ~/Arduino/libraries and compiling against them. I am obviously looking in the wrong place.

    Home BrowseSystem AdministrationHardwareArduino ASCOM Focuser Pro DIY Files
    Home / Libraries/Libraries.zip.

    Sorry to be dim but I'd like to understand so I don't need hand feeding the next time.

    Regards
    Tom

     
  • Tom Gibson

    Tom Gibson - 2018-02-03

    Bob,

    Thanks, the new libraries.zip is what I was searching for.
    I now get the following errors.

    1) The following 2 libraries have only a .ino file when unzipped and are missing in the IDE's sketch > libraries > contributed libraries list.

    Error compiling for board Arduino Nano.
    Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser: /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser

    Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner: /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner

    2) Don't know if these are important since the above #1 seems to be the fatal error. There is
    some kind of duplication/multiple definitions going on involving Wire / OneWire and the DallasTempurature libraries.
    <Wire.h> and <OneWire.h> are included in the .ino source and both pulled in as libraries.
    Dallas Temperature is found in both the firmware directory, the libraries .zip.
    There is a lot, so just including the initial few:

    "/home/tg/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/myFocuserPro1.ino.elf" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/myFocuserPro1.ino.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/Wire/Wire.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/Wire/utility/twi.c.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/OneWire/OneWire.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/FastIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/I2CIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LCD.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_I2C.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_I2C_ByVac.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SI2C.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR2W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR3W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/SI2CIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/core/core.a" "-L/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp" -lm
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition ofDallasTemperature::readScratchPad(unsigned char const, unsigned char)'
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition ofDallasTemperature::isConnected(unsigned char const, unsigned char)'
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition ofDallasTemperature::DallasTemperature()'
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
    Multiple libraries were found for "OneWire.h"
    Used: /home/tg/Arduino/myFocuserPro1/libraries/OneWire
    Not used: /home/tg/Arduino/myFocuserPro1/libraries/DallasTemperature
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition ofDallasTemperature::DallasTemperature()'
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
    /tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition ofDallasTemperature::DallasTemperature(OneWire*)'

     
  • Tom Gibson

    Tom Gibson - 2018-02-05

    Last post is 2 days "awaiting moderation", should I resubmit?

     
    • brownrb

      brownrb - 2018-02-06

      multiple definition
      means it is finding more than one occurrence of the file -
      So it should be only be in one place - in the libraries folder
      Delete all other files of the same name
      Its referencing myDallasTemperature.h (which was in a folder called myDallasTemperature, you copied the folder to the libraries folder - so thats the only place where that folder should now be with those two files)

       
  • brownrb

    brownrb - 2018-02-06

    Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser: /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser

    Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner: /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner

    Remove the above

    For the firmware .ino, it should only be one file in the firmware folder.
    Everything is in the file
    https://sourceforge.net/projects/arduinofocuscontrollerpro/files/CODE%20ARDUINO/Arduino%20Firmware%20myFocuserPro%20v171.zip/download

    Email me at yahoo and I will send you v172
    Robert

     

    Last edit: brownrb 2018-02-06
  • Tom Gibson

    Tom Gibson - 2018-02-06

    Robert,
    I cleaned up my environment and followed the directions. Everything built fine.
    Thank you for the support.
    Tom

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.