[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 

PlatformIO and Linux RSS feed
Forum Index » tcMenu Arduinio library
Author Message
chirrindulari


Joined: Jan 23, 2021
Messages: 22
Offline
Hi dear members.

I have PlatformIO as the design envirinment. I have added tcMenu library from the design environment. It has put all the files in
/home/angel/Documents/PlatformIO/Projects/thermostat/.pio/libdeps/esp32dev/tcMenu


I have installed tcMenu Designer and it asked me for the Arduino path. I entered the above path. It asked the same one more time and put the same path.

Now, tcMenu Designer doesn't recognize the version of tcMenu (see photo1)

1. How can I put the correct path of "Arduino" (although it is really PlatformIO)?
2. What is the corect path I must introduce?

I've found a log (home/angel/.tcmenu/logs/tcmenu.log.0) and this is the contents:
2021-01-23 17:41:26 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader reload Traversing /home/angel/.tcmenu/plugins for plugins
2021-01-23 17:41:26 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader reload Plugins are now fully loaded
2021-01-23 17:41:27 INFO com.thecoderscorner.menu.editorui.uimodel.CurrentProjectEditorUIImpl createPanelForMenuItem creating new panel for menu item editing 0
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.arduino.ArduinoLibraryInstaller getArduinoDirectory Looking for √Ārduino directory
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.arduino.ArduinoLibraryInstaller getArduinoDirectory Not found in /home/angel/Documents/Arduino
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.arduino.ArduinoLibraryInstaller getArduinoDirectory Not found in /home/angel/Arduino
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.arduino.ArduinoLibraryInstaller getArduinoDirectory Not found in /home/angel/OneDrive/Documents/Arduino
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.arduino.ArduinoLibraryInstaller getArduinoDirectory Arduino directory found at /home/angel/Documents/PlatformIO/Projects/thermostat/.pio/libdeps/esp32dev/tcMenu
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.arduino.ArduinoLibraryInstaller getArduinoDirectory looking for libraries
2021-01-23 17:41:28 SEVERE com.thecoderscorner.menu.editorui.controller.MenuEditorController populateMenu Examples directory not found
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.OnlineLibraryVersionDetector addVersionsToMap Starting to acquire version list from core site
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.OnlineLibraryVersionDetector addVersionsToMap Successfully got version list from core site for STABLE
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.OnlineLibraryVersionDetector addVersionsToMap Starting to acquire version list from core site
2021-01-23 17:41:28 INFO com.thecoderscorner.menu.editorui.generator.OnlineLibraryVersionDetector addVersionsToMap Successfully got version list from core site for STABLE
2021-01-23 18:56:23 INFO com.thecoderscorner.menu.editorui.dialog.AppInformationPanel$UpgradeTask run Updating core-display
2021-01-23 18:56:23 INFO com.thecoderscorner.menu.editorui.generator.OnlineLibraryVersionDetector performUpgradeFromWeb Upgrade in progress for core-display to 1.7.2
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.dialog.AppInformationPanel$UpgradeTask run Updating core-remote
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.OnlineLibraryVersionDetector performUpgradeFromWeb Upgrade in progress for core-remote to 1.7.2
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader reload Traversing /home/angel/.tcmenu/plugins for plugins
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader reload Plugin xml found in /home/angel/.tcmenu/plugins/core-display
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader loadPluginLib Loading plugins in directory /home/angel/.tcmenu/plugins/core-display
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item dfRobotJoystick.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item dfRobotJoystick.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item dfRobotLcd.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item dfRobotLcd.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item i2cLiquidCrystalDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item i2cLiquidCrystalDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item liquidCrystalDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item liquidCrystalDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item adaArduinoSimpleBuilder.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item adaArduinoSimpleBuilder.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item adaGfxDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item adaGfxDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item u8g2SimpleBuilder.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item u8g2SimpleBuilder.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item u8g2Display.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item u8g2Display.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item ssd1306asciiDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item ssd1306asciiDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item rotaryEncoderInput.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item rotaryEncoderInput.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item upDownSwitchesInput.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item upDownSwitchesInput.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item analogJoystickInput.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item analogJoystickInput.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item adaMbedOled.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item adaMbedOled.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item noInput.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item noInput.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item noDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item noDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item customDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item customDisplay.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader reload Plugin xml found in /home/angel/.tcmenu/plugins/core-remote
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader loadPluginLib Loading plugins in directory /home/angel/.tcmenu/plugins/core-remote
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item noRemote.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item noRemote.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item remoteSerial.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item remoteSerial.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item remoteEthernet.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item remoteEthernet.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item remoteSerialESP.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item remoteSerialESP.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item remoteWifiESP.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item remoteWifiESP.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item remoteMbedEthernet.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item remoteMbedEthernet.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loading plugin item simhubConnector.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader lambda$loadPluginLib$3 Loaded item simhubConnector.xml
2021-01-23 18:56:24 INFO com.thecoderscorner.menu.editorui.generator.plugin.DefaultXmlPluginLoader reload Plugins are now fully loaded


Actually there is a folder with examples (see photo2)

Any hint with this environment will be appreciated.
Thanks.
[Thumb - photo2.jpg]
 Filename photo2.jpg [Disk] Download
 Description photo2
 Filesize 41 Kbytes
 Downloaded:  19072 time(s)

[Thumb - photo1.jpg]
 Filename photo1.jpg [Disk] Download
 Description photo1
 Filesize 35 Kbytes
 Downloaded:  18961 time(s)

chirrindulari


Joined: Jan 23, 2021
Messages: 22
Offline
Update.

I've found where the path I introduced is saved:
/home/angel/.java/.userPrefs/com/thecoderscorner/menu/editorui/generator/arduino/prefs.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE map SYSTEM "http://java.sun.com/dtd/preferences.dtd">
<map MAP_XML_VERSION="1.0">
  <entry key="ArduinoCustomPath" value="/home/angel/Documents/PlatformIO/Projects/thermostat/.pio/libdeps/esp32dev/tcMenu"/>
</map>
davetcc


Joined: Jan 19, 2019
Messages: 514
Offline
To be honest, the libraries showing as out of date should not be a problem, it should be able to generate code just fine in that situation. It's really just a warning so you know they are not current. But platformIO keeps things up to date, so less of a problem there. Let me know if the UI is blocking code generation because of this, if so we'll put a patch in the next version so it ignores the lack of globally installed libraries.

Another quick fix, for now, would be just to put the libraries in place in the usual Arduino directory: ~/Documents/Arduino/libraries and it won't complain. Even if just the libraries.properties was in the right place!

In the newer Xamarin based UI (that we've not been able to port to Linux yet), it actually has an option for platformIO and mbed studio, where it stops looking for globally installed libraries. We'll see how much work it is to get that back into the Java UI.

BTW, we've got a few people having major problems trying to get JavaFX working on Linux. If you could spend a couple of minutes telling us how to set it up that would be very helpful to a few others who are struggling.
chirrindulari


Joined: Jan 23, 2021
Messages: 22
Offline
Let me know if the UI is blocking code generation because of this, if so we'll put a patch in the next version so it ignores the lack of globally installed libraries.

You are right, it genrates the code without problem.
If you could spend a couple of minutes telling us how to set it up that would be very helpful to a few others who are struggling.

It will be a pleasure.

Mi environment is Ubuntu 20.

The problem is that first I tried to use the java version precompiled in your web page (https://www.thecoderscorner.com/app-downloads/designer-linux-1.7.0.tar.gz) but didn't work. It showed this exception:
java.lang.ClassNotFoundException: com.sun.glass.ui.gtk.GtkPlatformFactory
...
Failed to load Glass factory class


Trying to make it work I installed all those packages with "sudo apt install"
openjdk-14-jre
openjdk-14-jdk
openjfx
libgtk-3-dev 
maven


Finally I decided to see your github instructions. Then simply cloned the github project and used the script that builds the java app:
git clone https://github.com/davetcc/tcMenu
cd tcMenu/
cd tcMenuGenerator/
./install_linux.sh


and executed the app. This time it went well, no exception. The script installed the binary in
$HOME/.local/bin/tcmenu

davetcc


Joined: Jan 19, 2019
Messages: 514
Offline
Many thanks for that, I'll point the github issue at this forum entry for now.

For the next release of the Java UI, we'll actually build the package on a Linux VM using the same instructions, similar to how we build the Win10 image on an actual windows box. Maybe that is needed to pull the correct native libraries.
davetcc


Joined: Jan 19, 2019
Messages: 514
Offline
https://github.com/davetcc/tcMenu/issues/110 - ability to turn off the global libraries check, backport from the Xamarin version.
 
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.