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
Normal Topic Missing Build Folder Path (Read 1833 times)
mr_nobody
Newbies
*
Offline


Posts: 2
Joined: Aug 14th, 2023
Missing Build Folder Path
Aug 15th, 2023 at 9:05am
Print Post  
Hello, I have three different project files in my project. I am trying to organize my project files. For that, I added my custom classes to the src file but I have an issue, build folder path is missing. 

My code works when I don't add it below the src file (when it is in the same folder as the .ino file). How can I make the folder path continue after Release?

Error:
Compiling 'Master' for 'ESP32 Dev Module(esp32_esp32)'
Build Folder:
e"
 
xtensa-esp32-elf-g++*: error:
e\\Master.cpp: No such file or directory
 
xtensa-esp32-elf-g++*: fatal error: no input files
   compilation terminated
MasterMessageHandler.h:6: In file included from
MasterMessageHandler.cpp:1: from
Error compiling project sources
Build failed for project 'Master'
 
Master.h: 8:10: fatal error: WiFi.h: No such file or directory
   #include <WiFi.h>
   ^~~~~~~~
   compilation terminated

TRIAL Version of Visual Micro (Expires On 23 September 2023)
(Existing customer? CTRL+click Or go to this link (https://www.visualmicro.com/page/Trial-Mode-VS2022.aspx)

Note: When I do not file the classes for the slave project (as in the image), it does not cause any problems.

« Last Edit: Aug 15th, 2023 at 9:07am by mr_nobody »  

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


Posts: 2697
Joined: Feb 13th, 2019
Re: Missing Build Folder Path
Reply #1 - Aug 15th, 2023 at 9:26am
Print Post  
Thanks for the report.

Please follow the logging instructions at the top of the page and attach the complete output.

Without this detail is is impossible to diagnose the issue further.
  
Back to top
IP Logged
 
mr_nobody
Newbies
*
Offline


Posts: 2
Joined: Aug 14th, 2023
Re: Missing Build Folder Path
Reply #2 - Aug 16th, 2023 at 7:45am
Print Post  
Output
  

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


Posts: 2697
Joined: Feb 13th, 2019
Re: Missing Build Folder Path
Reply #3 - Aug 16th, 2023 at 9:09am
Print Post  
When the e.g. Master.h is next to the INO file then the include can just the the filename as it is in the same folder.

As these source files have been moved to different folders, you will need to change the include in the MasterMessageHandler.h to reference the correct path relative to where the file it is included from:
#include "../Master/Master.h"

Another option could be to create the "Master" and "MasterMessageHandler" as full "Arduino Libraries" using the project templates, which would then allow the references to them to be e.g. #include "Master.h".

This would mean they do not exist beneath the current project (normally Libraries are stored in Sketchbook\Libraries), however you can use the Special Folders in Visual Micro to encapsulate these with the Solution as a whole.  Then you could reference the same code from multiple projects in the same solution if required, with the simpler #include format.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint