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
Hot Topic (More than 8 Replies) include path (Read 4113 times)
visionalex
Newbies
*
Offline


Posts: 9
Joined: Jul 20th, 2017
include path
Dec 6th, 2018 at 8:33pm
Print Post  
Hy Tim,
I have 2 PCs on one I can compile the project attached on the other not.
The files in the Arduino path are identically.
 
I see no difference between th 2 PCs.
Maybe you know why.
 
 
Compiling 'ToolCtrl' for 'Teensy 3.6'
ToolCtrl.ino:14: In file included from
bsp_board_teensy_1.h: 114:37: fatal error: display/Adafruit_FT6206.h: No such file or directory
   compilation terminated
 
       An error was encountered during the 'Deep Search' library discovery process.
Build failed for project 'ToolCtrl'
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include path
Reply #1 - Dec 6th, 2018 at 8:39pm
Print Post  
Thanks for sending the files in. Here are a few things that might help.

These are primarily Arduino riles, the way it works unless I hear otherwise.

Arduino libraries are never #included with paths

Arduino libraries should always be #included with chevrons not quotes #include <myheader.h>

The .ino files must always be in a folder with the name name as one of the .ino files (not in the src folder (or below) which is for normal c++ files)

Visual Micro also expects the project name and project file name to be the same as the primary .ino and containing folder name. The project must be in the same folder as the .ino

In short I recommend using the Visual Micro menus to add your library includes for you, remove path qualifiers from library includes, move the .ino from \src into the project folder  and make sure the folder, .ino and project names match.

We might support .ino files in sub folders but I don't think the arduino ide does (or never used too) therefore we need to ensure compatibility

  
Back to top
WWW  
IP Logged
 
visionalex
Newbies
*
Offline


Posts: 9
Joined: Jul 20th, 2017
Re: include path
Reply #2 - Dec 6th, 2018 at 9:57pm
Print Post  
The question is, why it runs on machine A but not on machine B.
I have read, that for the comercial version the subfolders are possible.
So i try to kill the Lizense Key on machine B. But no chance. Where to change the Lizense Key?
You know we have had some problems with the Key on crashed PCs.
So if you tell me to delete the Key, I will try for that.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include path
Reply #3 - Dec 6th, 2018 at 10:02pm
Print Post  
It sounds like the machine that works has different config. The licence key does not provide or restrict any functionality. It is not the issue. The \src folder functionality is a standard part of arduino and visual micro.

There is the vMicro>Compiler menu that contains an entry called "verbose" and an entry called "show build properties". Switching on these options and then building gives output which shows everything about your config and the build. Please switch them on on both machines, build on both then email the outputs as .txt files along with link to this thread.

Also zip and email the project folder from your other machine that works.

Thanks
  
Back to top
WWW  
IP Logged
 
visionalex
Newbies
*
Offline


Posts: 9
Joined: Jul 20th, 2017
Re: include path
Reply #4 - Dec 6th, 2018 at 10:19pm
Print Post  
The project is the same on the old and new machine.

on the new machine I have changed the things you mention.
So it works.

But why it works on the old machine?
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include path
Reply #5 - Dec 6th, 2018 at 10:29pm
Print Post  
You have switched on "show build properties" but haven't switched on verbose.

Thanks
  
Back to top
WWW  
IP Logged
 
visionalex
Newbies
*
Offline


Posts: 9
Joined: Jul 20th, 2017
Re: include path
Reply #6 - Dec 6th, 2018 at 10:52pm
Print Post  
Next try
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include path
Reply #7 - Dec 6th, 2018 at 11:00pm
Print Post  
There are some differences in the project files between the two machines.

Take a look at the ProjectDir= property

The old machine must have the project files in the src folder.

The old machine also has a local project board.txt file but it might be unused and is of no concern.
  
Back to top
WWW  
IP Logged
 
visionalex
Newbies
*
Offline


Posts: 9
Joined: Jul 20th, 2017
Re: include path
Reply #8 - Dec 7th, 2018 at 10:49am
Print Post  
the ProjectDir is changed like you mention.
this could not be the reason.
I have no idea why.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include path
Reply #9 - Dec 7th, 2018 at 12:09pm
Print Post  
I guarantee you that the way you had your project setup was outside of the simple rules described earlier and should never have worked. Certainly never in Arduino IDE?

Can you confirm that the board.txt you have in the project folder of old machine is empty?

  
Back to top
WWW  
IP Logged
 
visionalex
Newbies
*
Offline


Posts: 9
Joined: Jul 20th, 2017
Re: include path
Reply #10 - Dec 8th, 2018 at 4:02am
Print Post  
Yes the board.txt is empty.
Everything was the same.
Also the Arduini path with it's entry.
nevertheless, now I have an version on the new Machine which works.
we wil close this thread.

Thanks for your help
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint