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 fatal error: RF24_config.h: No such file or directory (Read 3155 times)
Benny
Newbies
*
Offline


Posts: 2
Joined: Jul 15th, 2019
fatal error: RF24_config.h: No such file or directory
Jul 15th, 2019 at 2:20pm
Print Post  
Please help me
Visual studio 2019
Visual micro ver.1907.6.7

In my project :

#include <RF24_config.h>
#include <nRF24L01.h>
#include "RF24.h"   

Arduino 1.6-1.8 --    board: arduino due programming port

I installed library RF24 from zip OK

In user installed library I do not see RF24 library

When compile  this is result

MASTER_DUE.ino: 20:25: fatal error: RF24_config.h: No such file or directory
   //github.com/TMRh20/RF24
   compilation terminated

     An error was encountered during the 'Deep Search' library discovery process.
Debug build failed for project 'MASTER_DUE

Then i change board to ATMEGA 2560

When compile  this is result : OK !!!

thanks for your answer

Benny
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: fatal error: RF24_config.h: No such file or directory
Reply #1 - Jul 15th, 2019 at 2:26pm
Print Post  
EDIT: after making the change described below click Rescan or restart the IDE.

Thanks for the post. You will notice in the Arduino IDE and in Visual Micro that when the Arduino Due is selected the library is not displayed in the list of available libraries.

When the Arduino IDE builds it shows a waning
Code (C++)
Select All
WARNING: library RF24 claims to run on (avr, arm, x86, esp8266, esp32) architecture(s) and may be incompatible with your current board which runs on (sam) architecture(s).
 



We will add the same warning to the next release of Visual Micro but allow attempt to compile.

The warning exists because the library has incorrect architectures listed in the library.properties. You can see the library.properties is just a text file in the library folder.

The Arduino Due is a SAM board so you need to add "sam" to the list of supported architectures. You can do that easily.

Find the library folder:-
C:\Users\[YOUR_NAME]\Documents\Arduino\libraries\RF24

Open/edit the library.properties with notepad and add "sam" to "architectures=" like this...

Code
Select All
name=RF24
version=1.3.3
author=TMRh20
maintainer=TMRh20,Avamander
sentence=A library for NRF24L01(+) communication.
paragraph=Optimized library for nRF24L01(+) that is simple to use for beginners, but yet offers a lot for advanced users. It also has a lot of good examples how to use the library.
category=Communication
url=https://tmrh20.github.io/RF24/
architectures=avr,arm,x86,esp8266,esp32,sam

 




Someone should submit a git update to the library so that it is listed properly and known to be supported for SAM and maybe also SAMD (Arduino Zero)
« Last Edit: Jul 15th, 2019 at 2:29pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Benny
Newbies
*
Offline


Posts: 2
Joined: Jul 15th, 2019
Re: fatal error: RF24_config.h: No such file or directory
Reply #2 - Jul 15th, 2019 at 2:46pm
Print Post  
OK

thank you 

Benny  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: fatal error: RF24_config.h: No such file or directory
Reply #3 - Aug 4th, 2019 at 12:58pm
Print Post  
Libraries with invalid architecures are now fully supported, however they might fail to build for valid reasons.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint