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 Auto-precompile not functioning (Read 207 times)
K S
Newbies
*
Offline


Posts: 9
Joined: Dec 14th, 2015
Auto-precompile not functioning
Dec 24th, 2024 at 2:40pm
Print Post  

I have added a library, ArduinoIoTCloud,  as a shared project as described in
https://www.visualmicro.com/page/User-Guide.aspx?doc=Add-Libraries.html

I have set the option "Auto Pre-Compile" as described in
https://www.visualmicro.com/page/How-to-Automatically-Pre-Compile-Library-Archiv...

However, when I build the project and the library is compiled, the build process does not create the .a file or the library.properties file.   

The build log contains no messages regarding "Auto-precompile."
  

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


Posts: 2564
Joined: Feb 13th, 2019
Re: Auto-precompile not functioning
Reply #1 - Dec 24th, 2024 at 2:42pm
Print Post  
Thanks for the report, we will investigate and update as soon as we have further information on the issue and any workarounds.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Auto-precompile not functioning
Reply #2 - Jan 3rd, 2025 at 1:57pm
Print Post  
If you navigate to the Library Folder, and open the library.properties file in notepad, you will see the below entry:
dot_a_linkage=True

Edit the line so "True" is all lowercase:
dot_a_linkage=true

Then try compiling the project again.

If you then compile it a second time the logging should show the expected output.

We have a fix which will be released later today which will resolve the issue for any future projects, and we will update this thread when it is available.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Auto-precompile not functioning
Reply #3 - Jan 3rd, 2025 at 6:45pm
Print Post  
Please install the latest release (24.1211.6) from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

This will correctly set the flags in the library.properties when the Auto-Precompile option is selected, for future projects/different libraries.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint