psychogenic / SerialUI

A Serial User Interface for embedded devices, namely Arduinos.
48 stars 7 forks source link

Cannot compile for Arduino Pro Mini #12

Open LloydTSmith opened 3 years ago

LloydTSmith commented 3 years ago

I pivoted from my earlier attempt to use a Teensy 4.0 board, and I now have a new design incorporating Arduino Pro Mini. Sample Device Druid code has been confirmed to run on this platform. I created a few dialogs with DruidBuilder and hacked my way through incorporating my own code and tying tracked variables to the code. I am using Arduino IDE 1.8.13 and SerialUI 3.2.2 (downloaded today). Library manager shows SerialUI 3.1, but I downloaded 3.2.2 from your site and unpacked it into the SerialUI-3 folder under libraries. Not sure if that is correct. Here is the full text I get when I try to compile:

libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdCXX\CMakeCXXCompilerId.cpp.o (symbol from plugin): In function main': (.text+0x0): multiple definition ofmain' libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdC\CMakeCCompilerId.c.o (symbol from plugin):(.text+0x0): first defined here libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdCXX\CMakeCXXCompilerId.cpp.o (symbol from plugin): In function main': (.text+0x0): multiple definition ofinfo_compiler' libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdC\CMakeCCompilerId.c.o (symbol from plugin):(.text+0x0): first defined here libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdCXX\CMakeCXXCompilerId.cpp.o (symbol from plugin): In function main': (.text+0x0): multiple definition ofinfo_platform' libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdC\CMakeCCompilerId.c.o (symbol from plugin):(.text+0x0): first defined here libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdCXX\CMakeCXXCompilerId.cpp.o (symbol from plugin): In function main': (.text+0x0): multiple definition ofinfo_language_dialect_default' libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdC\CMakeCCompilerId.c.o (symbol from plugin):(.text+0x0): first defined here libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdCXX\CMakeCXXCompilerId.cpp.o (symbol from plugin): In function main': (.text+0x0): multiple definition ofinfo_arch' libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdC\CMakeCCompilerId.c.o (symbol from plugin):(.text+0x0): first defined here libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\ShowIncludes\main.c.o (symbol from plugin): In function main': (.text+0x0): multiple definition ofmain' libraries\SerialUI-3\out\build\x64-Debug\CMakeFiles\3.16.19112601-MSVC_2\CompilerIdC\CMakeCCompilerId.c.o (symbol from plugin):(.text+0x0): first defined here collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino Pro or Pro Mini.

LloydTSmith commented 3 years ago

False alarm. I had SerialUI 3.1 AND SerialUI 3.2.2 in the libraries folder, but the IDE only recognized SerialUI 3.1. I removed that, and my project compiled. Some of it works, and some does not, but those seem to be issues of properly tying my variables to the code produced by Druid Builder. Thanks for this sweet tool!