OpenGarage Forums OpenGarage Firmware Compile OG failed looking for OpenGarage.h

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #768

    penright
    Participant

    I was trying to compile an out of box OG in the Arduino environment.

    I was following these instruction at

    Snippet

    To compile, launch Arduino, select:
    
    File -> Examples -> OpenGarage -> mainArduino.
    Tools -> Board -> Generic ESP8266 Module (if this is not available, check if you've installed the ESP8266 core).
    Tools -> Flash Size -> 4M (1M SPIFFS).
    Press Ctrl + R to compile. The compiled firmware (named mainArduino.cpp.bin) is by default copied to a temporary folder.
    
    The firmware supports built-in web interface. The HTML data are embedded as program memory strings. Go to the html/ subfolder, which contains the original HTML files, and a gen_html.sh tool to convert these HTML files into program memory strings. If you make changes to the HTML files, re-run gen_html.sh to re-generate the program memory strings.

    Should I be able to?

    Here is my compile debug:

    
    Arduino: 1.8.5 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 4M (1M SPIFFS), ck, Disabled, None"
    
    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bradmin\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bradmin\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bradmin\Documents\Arduino\libraries -fqbn=esp8266:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=4M1M,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -ide-version=10805 -build-path C:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133 -warnings=none -build-cache C:\Users\Bradmin\AppData\Local\Temp\arduino_cache_311398 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.esptool.path=C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -verbose C:\Users\Bradmin\Documents\Arduino\OpenGarage-Firmware-master\OpenGarage\examples\ogMainArduino\ogMainArduino.ino
    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bradmin\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bradmin\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bradmin\Documents\Arduino\libraries -fqbn=esp8266:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=4M1M,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -ide-version=10805 -build-path C:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133 -warnings=none -build-cache C:\Users\Bradmin\AppData\Local\Temp\arduino_cache_311398 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.esptool.path=C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -verbose C:\Users\Bradmin\Documents\Arduino\OpenGarage-Firmware-master\OpenGarage\examples\ogMainArduino\ogMainArduino.ino
    Using board 'generic' from platform in folder: C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0
    Using core 'esp8266' from platform in folder: C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0
    Detecting libraries used...
    "C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include" "-IC:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP01"  -DESP8266 "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\variants\generic" "C:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133\sketch\ogMainArduino.ino.cpp" -o "nul"
    "C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include" "-IC:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP01"  -DESP8266 "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\variants\generic" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src" "C:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133\sketch\ogMainArduino.ino.cpp" -o "nul"
    "C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include" "-IC:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP01"  -DESP8266 "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\variants\generic" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src" "C:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133\sketch\ogMainArduino.ino.cpp" -o "nul"
    "C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include" "-IC:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP01"  -DESP8266 "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\variants\generic" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266mDNS" "C:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133\sketch\ogMainArduino.ino.cpp" -o "nul"
    "C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include" "-IC:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP01"  -DESP8266 "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\variants\generic" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src" "-IC:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266mDNS" "C:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133\sketch\ogMainArduino.ino.cpp" -o "C:\Users\Bradmin\AppData\Local\Temp\arduino_build_532133\preproc\ctags_target_for_gcc_minus_e.cpp"
    C:\Users\Bradmin\Documents\Arduino\OpenGarage-Firmware-master\OpenGarage\examples\ogMainArduino\ogMainArduino.ino:31:24: fatal error: OpenGarage.h: No such file or directory
    
     #include <OpenGarage.h>
    
                            ^
    
    compilation terminated.
    
    Using library ESP8266WiFi at version 1.0 in folder: C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi 
    Using library ESP8266WebServer at version 1.0 in folder: C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer 
    Using library ESP8266mDNS in folder: C:\Users\Bradmin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266mDNS (legacy)
    exit status 1
    Error compiling for board Generic ESP8266 Module.
    #769

    penright
    Participant

    I have an update. I thought about editing the my original post, after further thought I will leave it in case someone else makes the same mistakes.

    As I suspected it was the directory tree. Since I am new to Github/Arduino/microcontroller world/C++/… Still building my skeleton little on starting to flesh it out.
    So the 3 steps were 60,000 foot and assumed more than basic knowledge.
    So when I found OpenGarage.h, then I had to figure out why IDE was not finding it. Found some examples on other sketch, moved the the OpenGarage folder into my ..\Arduino\libraries directory, then I got past that error and to the next one .

      C:\Users\Bradmin\Documents\Arduino\libraries\OpenGarage\main.cpp: In function ‘void on_sta_upload_fin()’:
      C:\Users\Bradmin\Documents\Arduino\libraries\OpenGarage\main.cpp:533:12: error: ‘class UpdaterClass’ has no member named ‘reset’
      Update.reset();

    So I found this read me in the Modification directory.

    This folder contains modifications to files in other libraries. Copy these files to the corresponding folders to overwrite the existing files there, or make changes according to the description below.
    * Updater.h: (under esp8266/x.x.x/cores/esp8266 folder)
    Added a public reset function to allow OTA update to abort and reset upon error.

    I can’t find the “exp8286” directory

    • This reply was modified 6 years, 5 months ago by penright.
    • This reply was modified 6 years, 5 months ago by penright.
    • This reply was modified 6 years, 5 months ago by penright.
    #773

    penright
    Participant

    I ran accross this post

    In it there was this line Also, copy Updater.h and paste it into C: |Users | (name of your computer user) | AppData | Local | Arduino15 | packages | esp8266 | hardware | esp8266 | 2.2.2 | cores
    Now I can verify/compile without errors.

    #777

    lawrence_jeff
    Participant

    If you are doing custom development I would recommend starting with my fork – I add lots of serial debug statements that make it easier to use (as well as a number of improvements). I also improved the compile instructions (which probably don’t help you now that you have worked through it)

    https://github.com/lawrence-jeff/OpenGarage-Firmware

    #780

    penright
    Participant

    I would recommend starting with my fork

    Thanks.
    I will do that.
    I had to put a lot of debug for me. My board is only a meg flash. So now I learned about flash memory and SPIFS. 🙂

    Right now I am waiting for my parts. I did have a dev board that had buzzer, led’s, relay, … But of course they are not pin the same. I did have some HC-SR04 that I bought laying around. I had someday envision using them for car sensing. Right now my Home Automation (HA) is Almond+. I am looking to switch to Home Assistant (HASS).
    HASS uses openzwave (OZW) for it’s zwave. OZW has a bug with barrier. That is when I found OpenGarage (OG).

    So, I have reassign the pin’s to fit my dev board.Everything works except for the HC-SR04. I cut the distance code out of OG and created a hello world .ino sketch. I may have a bad HC-SR04, it never toggles the echo line. I wish I had a scope :-). Anyway I had to put it away for today and get to my day job. Probably be Monday before I can look at it again. I need to google some on the HC-SR04 and make sure I am hooking it up right.

    • This reply was modified 6 years, 5 months ago by penright.
    #789

    penright
    Participant

    My last couple of post have disappeared. I did get my HC-SR04 working. Then I did get it working with OG. Then I downloaded

    that @lawrence_jeff posted above. Got it working.

    Before I go to my next step, I want to mention that this project is not only teaching me ESP2866, how to compile, but also Github and pull request. It’s like going from 0 to 100 in 6 sec. Thanks in advance for the instruction.

    So our building has 3 SSID (Red, Blue, White). The Red is WPA Enterprise, which by the way is what my HA is connected to. So what will it take to connect to WPA Enterprise. I did find this thread for a feature request here

    . First question is it possible? If yes then what would it take to implement it into OG. Lets answer the first question, it could make everything else moot.
    After some searching I think the answer is yes. Since this thread was about compiling errors and where to put the OpenGarage.h, I going to use the WPA2 Enterprise thread for the first question. Then start a new thread on what it takes to implement a feature into OG.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

OpenGarage Forums OpenGarage Firmware Compile OG failed looking for OpenGarage.h