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 Compile Error Using VMBuild.exe Command Line Interface (Teensy 3.6) (Read 1123 times)
Maury Ballstein
Newbies
*
Offline


Posts: 2
Joined: Nov 1st, 2019
Compile Error Using VMBuild.exe Command Line Interface (Teensy 3.6)
Nov 1st, 2019 at 2:58pm
Print Post  
I've been successfully compiling my project using Visual Studio + VisualMicro. I need to generate multiple hex files with slight differences and wanted to automate the process using a build script with your CLI (VMBuild.exe). The CLI is failing with an error that seems to be associated with the board: "Error linking for board Teensy 3.6"

I used the following options to build the project from the CLI:
owlatencyteensy3p6logger.vcxproj"
-builder.board_id=teensy36 
-builder.build=true
-builder.rebuild=true
-builder.dump_boards=true
-builder.upload=false
-builder.application_id=arduino16x
-builder.verbose=true
-builder.verbose_warnings=true
-builder.output_directory="C:\Users\alanoue\Desktop\test"
-builder-close=true
-builder-closeonerror=true

I've attached the log from the CLI which failed as well as the log from Visual Studio which was successful.

Please advise asap. Thanks!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Error Using VMBuild.exe Command Line Interface (Teensy 3.6)
Reply #1 - Nov 16th, 2019 at 2:33pm
Print Post  
Sorry for the delay and thanks for the email output.

The issue is resolved in next next release due over the next 72 hours.

Teensy requires us to pass the current date time to the linker and the cli failed to do that. We can see that in the output you sent that there is an unresolved property "{extra.time.local}" where a time is expected.

Code
Select All
__rtc_localtime={extra.time.local} 




It will also be available in the releases section of this forum prior to that.
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Thanks for the report.


  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Error Using VMBuild.exe Command Line Interface (Teensy 3.6)
Reply #2 - Nov 16th, 2019 at 11:01pm
Print Post  
An updated more complete CLI tool has been published

https://www.visualmicro.com/page/Visual-Micro-Command-Line-Interface.aspx

Thanks again for the post.
  
Back to top
WWW  
IP Logged
 
Maury Ballstein
Newbies
*
Offline


Posts: 2
Joined: Nov 1st, 2019
Re: Compile Error Using VMBuild.exe Command Line Interface (Teensy 3.6)
Reply #3 - Nov 19th, 2019 at 3:43pm
Print Post  
Thanks! The fix worked! Much appreciated!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Error Using VMBuild.exe Command Line Interface (Teensy 3.6)
Reply #4 - Nov 19th, 2019 at 3:52pm
Print Post  
Thanks for the update. With the new CLI you probably only need to use these properties when building. This will use the board and ide that is assigned in Visual Studio.

-builder.project_path="[path and name of project].vcxproj" -builder.build=true


It is optional to change the board etc. via the CLI but no longer required
« Last Edit: Nov 19th, 2019 at 3:53pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint