Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Issues compiling for bluepad32 for ESP32 (Read 1619 times)
Icesythe7
Newbies
*
Offline


Posts: 8
Joined: Jul 10th, 2024
Issues compiling for bluepad32 for ESP32
Jul 10th, 2024 at 8:10am
Print Post  
Using the latest VM installation as well as the latest VS22 I can't for the life of me figure out why it will not compile Bluepad32 with esp32, The exact same code compiles fine on Arduino IDE (so I have been using VM to write the code and copy paste it to arduino to compile.) I have tried the typical restarts, new project, etc, the odd thing is the paths for said files seem to be in the included directories so I'm not sure why it cant find the files...please find attached the build properties file, thanks for your time. 

Edit: It builds and uploads fine to this board without the bluepad32 lib so it is something to do with paths or something with this lib which as stated seems to be a non issue with arduino ide and same code.
« Last Edit: Jul 10th, 2024 at 8:14am by Icesythe7 »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Issues compiling for bluepad32 for ESP32
Reply #1 - Jul 10th, 2024 at 8:52am
Print Post  
Thanks for the report.

Could you attach the output from the Arduino IDE, with the File > Preferences > Verbose Output During "Compile" Enabled?

Also can you confirm if there is an example sketch, or detail which includes are in your sketch so we can replicate the error?
« Last Edit: Jul 10th, 2024 at 9:01am by Simon@Visual Micro »  
Back to top
IP Logged
 
Icesythe7
Newbies
*
Offline


Posts: 8
Joined: Jul 10th, 2024
Re: Issues compiling for bluepad32 for ESP32
Reply #2 - Jul 10th, 2024 at 9:51am
Print Post  
The bluepad32 has a "controller" example which will produce the same error yes (only has 2 example)
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Issues compiling for bluepad32 for ESP32
Reply #3 - Jul 10th, 2024 at 10:32am
Print Post  
Thanks for the update, and the example and log information.

We can replicate the issue now so we will investigate and update when a fix or workaround is available.
  
Back to top
IP Logged
 
Icesythe7
Newbies
*
Offline


Posts: 8
Joined: Jul 10th, 2024
Re: Issues compiling for bluepad32 for ESP32
Reply #4 - Jul 12th, 2024 at 10:13pm
Print Post  
Any updates or know what the issue is?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issues compiling for bluepad32 for ESP32
Reply #5 - Jul 15th, 2024 at 1:42pm
Print Post  
There is a fix being published today or tomorrow. The function that auto switches to relative paths has a fix for large build commands. This means there is plenty of scope for additional libs to expand the bluepad command.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Issues compiling for bluepad32 for ESP32
Reply #6 - Jul 15th, 2024 at 3:18pm
Print Post  
Please try the very latest version (2024.0715.0) available from the top of the below board, which should resolve the issues for this board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Icesythe7
Newbies
*
Offline


Posts: 8
Joined: Jul 10th, 2024
Re: Issues compiling for bluepad32 for ESP32
Reply #7 - Jul 15th, 2024 at 8:01pm
Print Post  
Do I need to change any settings anywhere? I installed the updated version and have the exact same error still. This is very confusing as you say install version 2024.715.00 and then link to 2024.715.2200 so I'm confused on the miscommunication, I installed 2024.715.2200
« Last Edit: Jul 15th, 2024 at 8:21pm by Icesythe7 »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issues compiling for bluepad32 for ESP32
Reply #8 - Jul 15th, 2024 at 10:45pm
Print Post  
Please use the link in Simons post. It takes you to the releases. It takes a few days for the gallery version
  
Back to top
IP Logged
 
Icesythe7
Newbies
*
Offline


Posts: 8
Joined: Jul 10th, 2024
Re: Issues compiling for bluepad32 for ESP32
Reply #9 - Jul 15th, 2024 at 11:13pm
Print Post  
I did lol again that link that states its 2024.715.00 is 2024.715.2200

I was just opening there to show u the version that is installed, I used the link he posted above


^^^^^^^^^^^^^^^^^^^^^^^^^^^
« Last Edit: Jul 15th, 2024 at 11:18pm by Icesythe7 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issues compiling for bluepad32 for ESP32
Reply #10 - Jul 16th, 2024 at 12:13am
Print Post  
The 22 is vs version. After install build and post output
  
Back to top
IP Logged
 
Icesythe7
Newbies
*
Offline


Posts: 8
Joined: Jul 10th, 2024
Re: Issues compiling for bluepad32 for ESP32
Reply #11 - Jul 16th, 2024 at 12:38am
Print Post  
Again I did its above in the post uploaded as a file



There seems to be a communication breakdown somewhere here so let me clarify, I installed (via the link posted) the new version, I then tried to build and got the exact same error as on the old version, since I got the exact same error I'm gonna assume by default you will think that I didn't install the new version so I opened the extensions (so it shows what version is currently installed) and took a picture before the question was asked "did I install the new version" I then also uploaded the new output file.
« Last Edit: Jul 16th, 2024 at 12:48am by Icesythe7 »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Issues compiling for bluepad32 for ESP32
Reply #12 - Jul 16th, 2024 at 9:05am
Print Post  
Could you try running Build > Clean, and then compiling the project again?

If it still has issues can you attach the output after this latest compilation for us to review?
  
Back to top
IP Logged
 
Icesythe7
Newbies
*
Offline


Posts: 8
Joined: Jul 10th, 2024
Re: Issues compiling for bluepad32 for ESP32
Reply #13 - Jul 16th, 2024 at 1:58pm
Print Post  
That was also done in the post above but will do it again.



posted build output on pastebin as the upload thing disappeared
https://pastebin.com/4xNs70JV
« Last Edit: Jul 16th, 2024 at 2:06pm by Icesythe7 »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Issues compiling for bluepad32 for ESP32
Reply #14 - Jul 17th, 2024 at 2:41pm
Print Post  
Thanks for persisting with this, and the continued feedback.

We have replicated the issue on the latest version, and there are two solutions available currently:

1) The best solution we can see is to move the VMBuild Folder to a shorter path.
a) If you change the Tools > Options > Visual Micro > (Compiler Section) Build Folder to e.g C:\ArduinoTemp
b) Click OK to the warning message, and then restart Visual Studio

s) Alternatively override the MAX path limit to 32500 chars, bearing in mind this will likely fail eventually as more libraries are added to the project:
a) Add a Local Board.txt to the Project (vMicro > Add Code > Add Local Board.txt)
b) Add the text below to it
vm.build.compile-relative-paths-at-max-chars=32500


Let us know if you have any issues with the above solutions, and if we do find any alternative solutions in future we will update this thread.
  
Back to top
IP Logged
 
Icesythe7
Newbies
*
Offline


Posts: 8
Joined: Jul 10th, 2024
Re: Issues compiling for bluepad32 for ESP32
Reply #15 - Jul 18th, 2024 at 10:05am
Print Post  
I used option 1 that has resolved the issue and now builds, until a proper fix is in place will I have to create a new folder for each project using BluePad32, or will it just overwrite the data in the current folder for all projects?
« Last Edit: Jul 18th, 2024 at 10:06am by Icesythe7 »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Issues compiling for bluepad32 for ESP32
Reply #16 - Jul 18th, 2024 at 10:08am
Print Post  
Thanks for confirming.

The build folder should persist across all projects now, so there is no need to create a new folder each time.

Each project has its' own sub folder within this, then split by build configuration and board.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint