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 Cannot build Marlin branch bugfix-2.0.x (bugfix-1.0.x was fine) (Read 1300 times)
dok
Junior Member
**
Offline


Posts: 47
Joined: Apr 11th, 2019
Cannot build Marlin branch bugfix-2.0.x (bugfix-1.0.x was fine)
Oct 27th, 2019 at 3:35pm
Print Post  
The new 2.0.x branch has a different structure compared to the 1.0.x branch. In the older branch, Marlin.ino is in the same directory level as all the source files - Marlin.ino does not contain any includes whatsoever, only comments.
In the current 2.0.x branch, they have a top-level directory that contains ./Marlin.ino, all the sources are in subdirectories thereof, so there is ./src/Marlin.cpp.
Visual Micro fails to pick up on the Marlin.cpp file.
(https://github.com/MarlinFirmware/Marlin/tree/bugfix-2.0.x)
« Last Edit: Oct 27th, 2019 at 3:40pm by dok »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot build Marlin branch bugfix-2.0.x (bugfix-1.0.x was fine)
Reply #1 - Oct 28th, 2019 at 11:29am
Print Post  
Rename Malin.cpp to something else such as MarlinMain.cpp


nb: .Ino files in the \src folder are supported.
  
Back to top
IP Logged
 
dok
Junior Member
**
Offline


Posts: 47
Joined: Apr 11th, 2019
Re: Cannot build Marlin branch bugfix-2.0.x (bugfix-1.0.x was fine)
Reply #2 - Oct 28th, 2019 at 11:56am
Print Post  
Is this a knowledgeable remark that I should forward to the Marlin developers as issue item, or "just" a restriction of VisualMicro? It seems that they are able to build with the Arduino IDE toolchain, you see.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot build Marlin branch bugfix-2.0.x (bugfix-1.0.x was fine)
Reply #3 - Oct 28th, 2019 at 12:16pm
Print Post  
Its a change we should make in visual micro. The arduino ide combines all .ino files into a project_name.ino.cpp but Visual Micro combines them into project_name.cpp.

In both IDE's you can use a file of same name as the special combined .cpp to override all .ino functionality.

In theory the developers of marlin should avoid marlin.cpp because it too easily conflicts with marlin.ino but it's not worth discussing, it would be better if visual micro changed the default.
  
Back to top
IP Logged
 
dok
Junior Member
**
Offline


Posts: 47
Joined: Apr 11th, 2019
Re: Cannot build Marlin branch bugfix-2.0.x (bugfix-1.0.x was fine)
Reply #4 - Oct 28th, 2019 at 1:11pm
Print Post  
I'm reporting that your recommendation, to rename Marlin.cpp to MarlinMain.cpp, works.
So please go ahead and do the single fix for this in VisualMicro, I'll keep an eye out for it and report if everything is OK then.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint