SerialUI icon indicating copy to clipboard operation
SerialUI copied to clipboard

Cannot compile for Arduino Pro Mini

Open LloydTSmith opened this issue 4 years ago • 1 comments

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 of main' 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 of info_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 of info_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 of info_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 of info_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 of main' 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 avatar May 07 '21 21:05 LloydTSmith

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!

LloydTSmith avatar May 07 '21 21:05 LloydTSmith