VS Arduino
Visual Micro >> Installation & Troubleshooting >> include path
https://www.visualmicro.com/forums/YaBB.pl?num=1544128389

Message started by visionalex on Dec 6th, 2018 at 8:33pm

Title: include path
Post by visionalex on Dec 6th, 2018 at 8:33pm
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'

Title: Re: include path
Post by Visual Micro on Dec 6th, 2018 at 8:39pm
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


Title: Re: include path
Post by visionalex on Dec 6th, 2018 at 9:57pm
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.

Title: Re: include path
Post by Visual Micro on Dec 6th, 2018 at 10:02pm
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

Title: Re: include path
Post by visionalex on Dec 6th, 2018 at 10:19pm
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?
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=NewMachine.txt ( 19 KB | 6 Downloads )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=OldMachine.txt ( 19 KB | 4 Downloads )

Title: Re: include path
Post by Visual Micro on Dec 6th, 2018 at 10:29pm
You have switched on "show build properties" but haven't switched on verbose.

Thanks

Title: Re: include path
Post by visionalex on Dec 6th, 2018 at 10:52pm
Next try
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=NewMachine_001.txt ( 113 KB | 9 Downloads )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=OldMachine_001.txt ( 118 KB | 1 Download )

Title: Re: include path
Post by Visual Micro on Dec 6th, 2018 at 11:00pm
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.

Title: Re: include path
Post by visionalex on Dec 7th, 2018 at 10:49am
the ProjectDir is changed like you mention.
this could not be the reason.
I have no idea why.

Title: Re: include path
Post by Visual Micro on Dec 7th, 2018 at 12:09pm
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?


Title: Re: include path
Post by visionalex on Dec 8th, 2018 at 4:02am
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

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.