Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
include path (Read 154 times)
visionalex
Junior Member
**
Offline



Posts: 7
include path
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'
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 9493
United Kingdom
Re: include path
Reply #1 - 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

Back to top
 
WWW  
IP Logged
 
visionalex
Junior Member
**
Offline



Posts: 7
Re: include path
Reply #2 - 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.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 9493
United Kingdom
Re: include path
Reply #3 - 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
Back to top
 
WWW  
IP Logged
 
visionalex
Junior Member
**
Offline



Posts: 7
Re: include path
Reply #4 - 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?
Back to top
 

NewMachine.txt (19 KB | 1 )
OldMachine.txt (19 KB | 2 )
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



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

Thanks
Back to top
 
WWW  
IP Logged
 
visionalex
Junior Member
**
Offline



Posts: 7
Re: include path
Reply #6 - Dec 6th, 2018 at 10:52pm
 
Next try
Back to top
 

NewMachine_001.txt (113 KB | 3 )
OldMachine_001.txt (118 KB | 1 )
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 9493
United Kingdom
Re: include path
Reply #7 - 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.
Back to top
 
WWW  
IP Logged
 
visionalex
Junior Member
**
Offline



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



Posts: 9493
United Kingdom
Re: include path
Reply #9 - 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?

Back to top
 
WWW  
IP Logged
 
visionalex
Junior Member
**
Offline



Posts: 7
Re: include path
Reply #10 - 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
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print