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 (MultiWii Software) (Read 8040 times)
mitob
Newbies
*
Offline


Posts: 3
Joined: Aug 18th, 2012
Compile error (MultiWii Software)
Aug 21st, 2012 at 6:55pm
Print Post  
Hello,

I tried to compile the MultiWii Code (Arduino Quadcopter flight controller) with Visual Micro. I get with the original Code always a compile error. Changing the compile option "Library Modified" to FALSE changes nothing. In "My" code I've integrated more features and a new *.ino File, but if I try to compile it I get also a lot of errors. I can compile both projects with the original Arduino IDE without any problems!
I've uploaded the projects to rapidshare.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error (MultiWii Software)
Reply #1 - Aug 21st, 2012 at 7:30pm
Print Post  
Yep I know what the problem is. There are some things for us to tighten up in the next release but you can fix this easily enough.

The problem is visual micro getting confused in it's temp folder because both projects have the same name. In an attempt to speed up compile vm caches the builds but at the moment the cache it based on sketch name.

The menu item "Build>Clean Solution" somtimes fixes the problem but it is safer to use a different sketch name.

There are some important rules to follow when you rename your sketch. Here is an example of what I did.

1) Renamed folder MultiWii_2_1 to MultiWii_2_1_a
2) Renamed master sketch MultiWii_2_1.ino to MultiWii_2_1_a.ino
3) Deleted the visual studio .vcproj.. files
4) Deleted the vs solution files (.sln) if they exist

Then you can "File>Open>Arduino Project" and vm will rebuilt a new sketch project.

The only reason for deleteing the project and solution is simply because vm will re-build them when you open the sketch. Saves you being burdened with loner instructions Smiley

Interestingly enough it is planned for a simle sketch rename function in the next release.

Look forward to hearing how you get on.

ps: Strange your reg email bounced back, that email address has been fine since Undecided
« Last Edit: Aug 21st, 2012 at 7:32pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error (MultiWii Software)
Reply #2 - Aug 21st, 2012 at 7:34pm
Print Post  
ps: I forgot multiwii doesn't use libraries so I need to correct my multwii post. Setting Library Optimisation to false won't be doing anything for you, as you have said!
  
Back to top
WWW  
IP Logged
 
mitob
Newbies
*
Offline


Posts: 3
Joined: Aug 18th, 2012
Re: Compile error (MultiWii Software)
Reply #3 - Aug 21st, 2012 at 7:57pm
Print Post  
No, that isn't the problem. I had the compile error with the original MultiWii code since the first time I tried. Can you compile one of the projects???
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error (MultiWii Software)
Reply #4 - Aug 21st, 2012 at 8:34pm
Print Post  
yes they both compiled for me. Which board are you using and which board have you selected on the vm tool bar?
« Last Edit: Aug 21st, 2012 at 8:36pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
mitob
Newbies
*
Offline


Posts: 3
Joined: Aug 18th, 2012
Re: Compile error (MultiWii Software)
Reply #5 - Aug 22nd, 2012 at 9:11pm
Print Post  
I've reinstalled ViusualMicro, and now it seems to work without any problems.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error (MultiWii Software)
Reply #6 - Aug 22nd, 2012 at 11:00pm
Print Post  
oh well done. I'm really sorry it was so painful for you. I hope the installer works better the next time you use it!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint