open-laser-tag / tagger

A open source / open hardware laser tag project built on esp32.
GNU General Public License v3.0
64 stars 5 forks source link

Compiling error #14

Open Kean4711DUB opened 2 years ago

Kean4711DUB commented 2 years ago

I need assistance I'm still new at coding. I added all the files I saw come up with an error and now I have the following error message please assist. Any assistance would be greatly appreciated. Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"

In file included from C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_i2s_esp32.h:106,
                 from C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:6,
                 from C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/platforms.h:36,
                 from C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
                 from D:\All Laser tag attempts\tagger-master\tagger\tagger.h:65,
                 from D:\All Laser tag attempts\tagger-master\tagger\tagger.ino:9:

C:\Users\Antoi\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.0/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:16:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
  ^~~~~~~
In file included from D:\All Laser tag attempts\tagger-master\tagger\tagger.h:65,
                 from D:\All Laser tag attempts\tagger-master\tagger\tagger.ino:9:
C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
 #    pragma message "FastLED version 3.004.000"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:6,
                 from C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/platforms.h:36,
                 from C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
                 from D:\All Laser tag attempts\tagger-master\tagger\tagger.h:65,
                 from D:\All Laser tag attempts\tagger-master\tagger\tagger.ino:9:
C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_i2s_esp32.h:89:17: note: #pragma message: NOTE: ESP32 support using I2S parallel driver. All strips must use the same chipset
 #pragma message "NOTE: ESP32 support using I2S parallel driver. All strips must use the same chipset"
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/FastLED.h:65,
                 from D:\All Laser tag attempts\tagger-master\tagger\tagger.h:65,
                 from D:\All Laser tag attempts\tagger-master\tagger\tagger.ino:9:
C:\Users\Antoi\Documents\Arduino\libraries\FastLED\src/fastspi.h:135:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output
 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o): in function `loopTask(void*)':
C:\Users\Antoi\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.0\cores\esp32/main.cpp:38: undefined reference to `setup()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.0\cores\esp32/main.cpp:44: undefined reference to `loop()'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "WiFi.h"
 Used: C:\Users\Antoi\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.0\libraries\WiFi
 Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\WiFi
exit status 1

Error compiling for board ESP32 Dev Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Kean4711DUB commented 2 years ago

Also I mainly just want to get 1 or 2 taggers working to start off with. and is there a possibility to contact over email or back and forward on here to make sure I have all I need.

gldhnchn commented 2 years ago

Hey, sorry for the late response. I haven't been here in a while. Do you still need help?

So, first of all, your problem is this:

c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o): in function `loopTask(void*)':
C:\Users\Antoi\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.0\cores\esp32/main.cpp:38: undefined reference to `setup()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.0\cores\esp32/main.cpp:44: undefined reference to `loop()'
collect2.exe: error: ld returned 1 exit status

The linker is missing some references. I guess you wanted to compile this with the arduino IDE, am I correct? Did you install the Arduino-ESP32 support like described here? https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html

Kean4711DUB commented 2 years ago

Hey thanks for your response. I just saw it. I actually am using platformio with visual studio code using the arduino framework. I'm not sure if that's considered the same thing. Can this work on arduino the same? or will platformio be better?

gldhnchn commented 2 years ago

Platformio + VSCode is fine. This should work. Are you still having the same trouble like when you did your first post?

Kean4711DUB commented 2 years ago

Thanks for the quick response. Yes I am. This is the issue I'm getting now though. (See below) I don't know if "logtag" and "lagtag" are supposed to be the same thing but they are not shown to be declared. And setup and loop for tagger is suddenly not working.

[{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ble.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 63, "startColumn": 18, "endLineNumber": 63, "endColumn": 18 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ble.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 81, "startColumn": 18, "endLineNumber": 81, "endColumn": 18 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ir_and_trigger.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 18, "startColumn": 14, "endLineNumber": 18, "endColumn": 14 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ir_and_trigger.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 115, "startColumn": 14, "endLineNumber": 115, "endColumn": 14 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/IR32/IR32-master/src/IRRecv.cpp", "owner": "cpp", "severity": 8, "message": "too few arguments to function 'void vRingbufferGetInfo(RingbufHandle_t, UBaseType_t, UBaseType_t, UBaseType_t, UBaseType_t, UBaseType_t*)'", "startLineNumber": 49, "startColumn": 55, "endLineNumber": 49, "endColumn": 55 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/tagger.cpp", "owner": "cpp", "severity": 8, "message": "redefinition of 'void setup()'", "startLineNumber": 104, "startColumn": 6, "endLineNumber": 104, "endColumn": 6 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/tagger.cpp", "owner": "cpp", "severity": 8, "message": "redefinition of 'void loop()'", "startLineNumber": 183, "startColumn": 6, "endLineNumber": 183, "endColumn": 6 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/.vscode/c_cpp_properties.json", "owner": "c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger", "severity": 4, "message": "Cannot find \"c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger\include\".", "startLineNumber": 11, "startColumn": 17, "endLineNumber": 11, "endColumn": 87 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/.vscode/c_cpp_properties.json", "owner": "c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger", "severity": 4, "message": "Cannot find \"c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger\include\".", "startLineNumber": 239, "startColumn": 21, "endLineNumber": 239, "endColumn": 91 }]

Kean4711DUB commented 2 years ago

Thanks for the quick response. Yes I am. This is the issue I'm getting now though. (See below) The "logtag" is not declared is still giving me trouble and the ring buffer.

[{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ble.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 63, "startColumn": 18, "endLineNumber": 63, "endColumn": 18 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ble.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 81, "startColumn": 18, "endLineNumber": 81, "endColumn": 18 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ir_and_trigger.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 18, "startColumn": 14, "endLineNumber": 18, "endColumn": 14 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ir_and_trigger.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 115, "startColumn": 14, "endLineNumber": 115, "endColumn": 14 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/IR32/IR32-master/src/IRRecv.cpp", "owner": "cpp", "severity": 8, "message": "too few arguments to function 'void vRingbufferGetInfo(RingbufHandle_t, UBaseType_t, UBaseType_t, UBaseType_t, UBaseType_t, UBaseType_t*)'", "startLineNumber": 49, "startColumn": 55, "endLineNumber": 49, "endColumn": 55 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/.vscode/c_cpp_properties.json", "owner": "c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger", "severity": 4, "message": "Cannot find \"c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger\include\".", "startLineNumber": 11, "startColumn": 17, "endLineNumber": 11, "endColumn": 87 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/.vscode/c_cpp_properties.json", "owner": "c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger", "severity": 4, "message": "Cannot find \"c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger\include\".", "startLineNumber": 239, "startColumn": 21, "endLineNumber": 239, "endColumn": 91 }]