[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

Help with using RSS feed
Forum Index » tcMenu Arduinio library
Author Message
DeeEmm


Joined: Nov 28, 2019
Messages: 13
Offline
Hi All,

I have read through the instructions and have created a project with some menu items. I have generated the code, which I have moved to my arduino project.

However, I cannot compile the project as it is telling me that it does not have tcMenu.h which it is calling within the generated tcmenu files - #include <tcMenu.h>

The generated files I have are...

tcmenu_menu.cpp
tcmenu_menu.h
tcmenu.ino
tcMenuLiquidCrystal.cpp
tcMenuLiquidCrystal.h

I assume that I am missing the actual library files, however, these are not generated, nor do they seem to be available in the download or to download from the site. Additionally, I cannot find reference to this file or a library in the documentation or on the github page.

I'm sure that I'm missing something simple,

If anyone can advise.

Thanks

/DM
DeeEmm


Joined: Nov 28, 2019
Messages: 13
Offline
Additionally tcMenu is not available in the arduino library manager
DeeEmm


Joined: Nov 28, 2019
Messages: 13
Offline
Okay managed to find the library files and copy them to the library folder, that's one issue fixed.

However the code is still not compiling, it is now throwing errors about multiple definitions.

I have only one include to the menu file along with the setup and main calls

If anyone has any ideas?

My Main Program

#include <Arduino.h>
#include "tcMenu_menu.h"

//#include "sensors.h"
#include "displays.h"
#include "controls.h"

#include "configuration.h"


#include "calculations.h"
#include "calibration.h"


/****************************************
 * INITIALISATION
 ***/
void setup ()
{
    setupMenu();// Set up the menu + display system
}

/****************************************
 * MAIN PROGRAM LOOP
 ***/
void loop ()
{
    taskManager.runLoop(); //run tcMenu
//    readSensors ();
    parseControls();
    calculateMafFlow();
    calculateSensor1Pressure();
    calculateSensor2Pressure();
    updateDisplays();
    writeOutputs();

}


Compile Error

Arduino: 1.8.9 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/Mick/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Mick/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/Mick/Documents/Arduino/libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10809 -build-path /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710 -warnings=none -build-cache /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_cache_378002 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -verbose /Users/Mick/Documents/Arduino/DIY-Flow-Bench/DIY-Flow-Bench.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/Mick/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Mick/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/Mick/Documents/Arduino/libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10809 -build-path /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710 -warnings=none -build-cache /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_cache_378002 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -verbose /Users/Mick/Documents/Arduino/DIY-Flow-Bench/DIY-Flow-Bench.ino
Using board 'mega' from platform in folder: /Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1
Using core 'arduino' from platform in folder: /Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1
Detecting libraries used...
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/variants/mega /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp -o /dev/null
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/variants/mega -I/Users/Mick/Documents/Arduino/libraries/tcMenu/src /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp -o /dev/null
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/variants/mega -I/Users/Mick/Documents/Arduino/libraries/tcMenu/src -I/Users/Mick/Documents/Arduino/libraries/IoAbstraction/src /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp -o /dev/null
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/variants/mega -I/Users/Mick/Documents/Arduino/libraries/tcMenu/src -I/Users/Mick/Documents/Arduino/libraries/IoAbstraction/src -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire/src /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp -o /dev/null
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/variants/mega -I/Users/Mick/Documents/Arduino/libraries/tcMenu/src -I/Users/Mick/Documents/Arduino/libraries/IoAbstraction/src -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire/src -I/Users/Mick/Documents/Arduino/libraries/LiquidCrystalIO/src /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp -o /dev/null
Using cached library dependencies for file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp
Using cached library dependencies for file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenuLiquidCrystal.cpp
Using cached library dependencies for file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/BaseDialog.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/BaseRenderers.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/EditableLargeNumberMenuItem.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/EepromItemStorage.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/GfxMenuConfig.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/MenuItems.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/MenuIterator.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/MessageProcessors.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/RemoteAuthentication.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/RemoteConnector.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/RemoteMenuItem.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/RuntimeMenuItem.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/SecuredMenuPopup.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/tcMenu.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/tcMenuKeyboard.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/tcMenu/src/tcUtil.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/IoAbstraction/src/BasicIoAbstraction.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/IoAbstraction/src/EepromAbstraction.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/IoAbstraction/src/EepromAbstractionWire.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/IoAbstraction/src/IoAbstraction.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/IoAbstraction/src/IoAbstractionWire.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/IoAbstraction/src/KeyboardManager.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/IoAbstraction/src/SwitchInput.cpp
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/IoAbstraction/src/TaskManager.cpp
Using cached library dependencies for file: /Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire/src/Wire.cpp
Using cached library dependencies for file: /Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire/src/utility/twi.c
Using cached library dependencies for file: /Users/Mick/Documents/Arduino/libraries/LiquidCrystalIO/src/LiquidCrystalIO.cpp
Generating function prototypes...
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/variants/mega -I/Users/Mick/Documents/Arduino/libraries/tcMenu/src -I/Users/Mick/Documents/Arduino/libraries/IoAbstraction/src -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire/src -I/Users/Mick/Documents/Arduino/libraries/LiquidCrystalIO/src /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp -o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenuLiquidCrystal.cpp.o
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/variants/mega -I/Users/Mick/Documents/Arduino/libraries/tcMenu/src -I/Users/Mick/Documents/Arduino/libraries/IoAbstraction/src -I/Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire/src -I/Users/Mick/Documents/Arduino/libraries/LiquidCrystalIO/src /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp -o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o
Compiling libraries...
Compiling library "tcMenu"
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/GfxMenuConfig.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/MenuItems.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/MenuIterator.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/EditableLargeNumberMenuItem.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/RuntimeMenuItem.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/MessageProcessors.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/tcMenuKeyboard.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/tcUtil.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/SecuredMenuPopup.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/BaseRenderers.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/RemoteAuthentication.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/tcMenu.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/BaseDialog.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/RemoteMenuItem.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/EepromItemStorage.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/RemoteConnector.cpp.o
Compiling library "IoAbstraction"
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/EepromAbstractionWire.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/IoAbstractionWire.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/EepromAbstraction.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/TaskManager.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/SwitchInput.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/BasicIoAbstraction.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/IoAbstraction.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/KeyboardManager.cpp.o
Compiling library "Wire"
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/Wire/Wire.cpp.o
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/Wire/utility/twi.c.o
Compiling library "LiquidCrystalIO"
Using previously compiled file: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/LiquidCrystalIO/LiquidCrystalIO.cpp.o
Compiling core...
Using precompiled core: /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_cache_378002/core/core_arduino_avr_mega_cpu_atmega2560_057c7a48433da884acafad4e1f43358e.a
Linking everything together...
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/DIY-Flow-Bench.ino.elf /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench.ino.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenuLiquidCrystal.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/BaseDialog.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/BaseRenderers.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/EditableLargeNumberMenuItem.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/EepromItemStorage.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/GfxMenuConfig.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/MenuItems.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/MenuIterator.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/MessageProcessors.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/RemoteAuthentication.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/RemoteConnector.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/RemoteMenuItem.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/RuntimeMenuItem.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/SecuredMenuPopup.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/tcMenu.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/tcMenuKeyboard.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/tcMenu/tcUtil.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/BasicIoAbstraction.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/EepromAbstraction.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/EepromAbstractionWire.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/IoAbstraction.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/IoAbstractionWire.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/KeyboardManager.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/SwitchInput.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/IoAbstraction/TaskManager.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/Wire/Wire.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/Wire/utility/twi.c.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/libraries/LiquidCrystalIO/LiquidCrystalIO.cpp.o /var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/../arduino_cache_378002/core/core_arduino_avr_mega_cpu_atmega2560_057c7a48433da884acafad4e1f43358e.a -L/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710 -lm
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/Users/Mick/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: Disabling relaxation: it will not work with multiple definitions
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `setupMenu()'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `lcd'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `renderer'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuFlowRate'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuRefPressure'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuTemperature'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuPitotDiffPres'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuSettingsLeakTestCheck'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuSettingsLeakTestCal'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuSettingsFlowRefCheck'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuSettingsFlowRefCal'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuBackSettings'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `menuSettings'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/tcMenu_menu.cpp.o (symbol from plugin): In function `fnSettingsRtCall(RuntimeMenuItem*, unsigned char, RenderFnMode, char*, int)':
(.text+0x0): multiple definition of `applicationInfo'
/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T/arduino_build_256710/sketch/DIY-Flow-Bench_menu.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Using library tcMenu at version 1.3.5 in folder: /Users/Mick/Documents/Arduino/libraries/tcMenu 
Using library IoAbstraction at version 1.4.10 in folder: /Users/Mick/Documents/Arduino/libraries/IoAbstraction 
Using library Wire at version 1.0 in folder: /Users/Mick/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire 
Using library LiquidCrystalIO at version 1.1.0 in folder: /Users/Mick/Documents/Arduino/libraries/LiquidCrystalIO 
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
DeeEmm


Joined: Nov 28, 2019
Messages: 13
Offline
I should add that i get the same error if I comment out all of my functions calls and imports, and just leave the code related to tcMenu - basically emulating the example file.

/DM
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Hi there please could you provide a directory listing of the files in the project directory. I suspect there are two sets of files ending with _menu.cpp and .h.

If that is the case the fix is very straightforward.

Thanks
Dave
DeeEmm


Joined: Nov 28, 2019
Messages: 13
Offline
Hi Dave,

Yes, it has created two sets of files. I've deleted one set and got the project to compile, so all good there. But when I change the menu and try to regenerate it appears to be creating a second set of files with a different name.

I should add that I have tried to change the name of the project - and that one set of files appears to be named after the default naming and one after my new name.

I also wanted to keep the tcMenu files in a subdir, so as to make it easier for users to follow the code, however I note that


okay, after playing around a bit I think I understand whats going on.

The generator looks for an .ino file extension and grabs this for the name of the generated files - I'm assuming this is so that the generated functions can be automagically created within the main file. (nice touch).

I'm sure i can work with this, however I'd like to run something past you...

What I would really like to do is to move the tcMenu files into a subdirectory so that the main directory is not littered. However, when I do this by generating the files in the subdir and creating the appropriate include path/link in the main program file I get a compile error

/var/folders/p9/lz7vnz210zz_93r1dvp3tmrr0000gp/T//ccck9fmy.ltrans0.ltrans.o: In function `main':
<artificial>:(.text.startup+0x1a4): undefined reference to `setupMenu()'
collect2: error: ld returned 1 exit status


I suspect that the generated files need to reside in the same folder as the main program as the file references are relative.

Any thoughts on how I can achieve this?
Is it possible to include a path field to allow the files to be generated in a subdir?

With thanks in advance.

/DM
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Yep, this is a bit of a shortcoming in the present generator. We are actually heavily refactoring the generator at the moment, moving over to the same language as the remote control app (Xamarin C#). This will provide a nicer interface - completely Native on both Mac and Windows. It would even be possible to support it on Android and iOS! There'll be improvements around code generation based on what we've found in the wild. IE: Only allow one EMF design file in a directory. Renaming the EMF / directory at least provides a warning that there may now be duplicate _menu.cpp/h files etc.

The new version is a few months off, but will also be available from the Mac and Windows app stores, meaning no more having to jump through security hoops to run it.

* Mac will be almost any Mac supported by Xamarin, which is a huge range.
* Windows will be UWP app store, with the current Win 7 solution supported for another year or so.
TheTomRom


Joined: Mar 26, 2020
Messages: 10
Offline
I hope it is okay to bump this as I have exactly the same problem with TcMenu: Trying to compile, I get the error "tcMenu.h: No such file or directory".

Here is what I did:
1) Install the TcMenu designer, update all the libraries (clicking the button)
2) Use the U8g2 example, generate code as shown in the tutorial. -> got this error while compiling
3) Tried saving an example under a different name -> got the error while compiling
4) Tried to look for the tcMenu.h manually. It is there, in the folder "C:\Users\MYUSERNAME\Documents\Arduino\libraries\tcMenu\src" where it probably belongs
5) Tried to copy tcMenu.h to different locations along the path and tried to include it manually by the arduino app "Sketch -> add file..." -> got this error while compiling

Help would be much appreaciated!

Thanks, Tom

davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
There are a few possibilities here. My suspicion is that there could be a duplicate set of _menu.cpp/h files in the directory. Renaming the EMF file may cause this, it's really a designer bug.

Please could you send me the full list of errors and warnings from the compiler? If you don't want to do it publicly feel free to send using email (using the contact form from the main site).

Also, please could you also send a directory listing of all the files in the directory?

[EDIT] Also, if I recall you have a working menu compiling and running recently, was there something that changed? Is this a new project?
TheTomRom


Joined: Mar 26, 2020
Messages: 10
Offline
Hi Dave,

I sent you an email with the error message and file list via the contact form. By the way: I am getting this error even when I am not using the TcMenu UI designer and just double click one any of the exmample files. To make sure I did not break anything, I deleted and reinstalled the library - so this is happening after a complete "vanilla" install.

Thanks for the help!

Tom
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
For other users: Given the sensitive nature of the log files, directory structure and projects this is being dealt with offline. A summary will be posted here later.
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
This was caused by a problem with the Arduino installation or library setup. Now solved by re-installation.
 
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.