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) Unable to set path with VS2022 (Read 122 times)
Bob4K
Junior Member
**
Offline


Posts: 14
Joined: Dec 30th, 2015
Unable to set path with VS2022
Jan 17th, 2025 at 9:50am
Print Post  
Hi,<Win+Crtl+W>

I haven't started yet to explore the WIFI routines I want to add.

I need first to make work an IR receiver, an Adafruit LED Backpack and a serial output.

The project was using IRLib-master that did not compile with the WIFI model, so I am trying to use the latest IRLib2-master library.

I installed it from a ZIP file. It is installed in:

Code
Select All
C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2 



However, when I go to 

Code
Select All
vMicro -> Add Library -> User Installed 



I only see IRLib-master.

And when I try to compile what I got from a sample:

Code
Select All
// In C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2
#include <IRLibDecodeBase.h>
#include <IRLib_P02_Sony.h>
#include <IRLib_P09_GICable.h>
#include <IRLibCombo.h>
                                                                                                                
#define PIN_RECV 8         // Old 4,  New 8
IRdecode myDecoder;   //create decoder
                                                                                                                                                                                                             
IRrecvPCI  myReceiver(PIN_RECV); //receiver on pin 3 



I get:

Code
Select All
  GoldCont.ino: 101:10: fatal error: IRLibDecodeBase.h: No such file or directory
   #include <IRLibDecodeBase.h>
   ^~~~~~~~~~~~~~~~~~~


	An error was encountered during the 'Deep Search' library discovery process.
Library Include Paths (5)
Include Path 'C:\Users\m1\Documents\Arduino\libraries\IRLib-master'
Include Path \libraries\Wire'
Include Path 'C:\Users\m1\Documents\Arduino\libraries\Adafruit_GFX_Library'
Include Path 'C:\Users\m1\Documents\Arduino\libraries\Adafruit_LED_Backpack_Library'
Debug build failed for project 'GoldCont' 



I tried to add the "C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2" path in the C++ Additional include directories, that does not help.

I can add the full path directly into the #include statement, but all other includes called recursively do not work either.

What did I do wrong?
« Last Edit: Jan 17th, 2025 at 9:57am by Bob4K »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Unable to set path with VS2022
Reply #1 - Jan 17th, 2025 at 9:52am
Print Post  
Can you confirm if the library.properties file is in the below location?
C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2\library.properties
  
Back to top
IP Logged
 
Bob4K
Junior Member
**
Offline


Posts: 14
Joined: Dec 30th, 2015
Re: Unable to set path with VS2022
Reply #2 - Jan 17th, 2025 at 10:00am
Print Post  
Wow, that was a fast reply!

Yes, I have: 


C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2\library.properties

I attach it, the forum does not display its content entirely.
« Last Edit: Jan 17th, 2025 at 10:15am by Bob4K »  

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


Posts: 2564
Joined: Feb 13th, 2019
Re: Unable to set path with VS2022
Reply #3 - Jan 17th, 2025 at 10:11am
Print Post  
Thanks for confirming.

If you move the IRLib2 folder up a level (and delete the *-master folder thats' now empty) so that:
C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2\library.properties

Becomes:
C:\Users\m1\Documents\Arduino\libraries\IRLib2\library.properties

Then click vMicro > General > Rescan Toolchains and Libraries, everything should start to work as expected for the library  listing, and compilation.
  
Back to top
IP Logged
 
Bob4K
Junior Member
**
Offline


Posts: 14
Joined: Dec 30th, 2015
Re: Unable to set path with VS2022
Reply #4 - Jan 17th, 2025 at 10:20am
Print Post  
Simon@Visual Micro wrote on Jan 17th, 2025 at 10:11am:
Thanks for confirming.

If you move the IRLib2 folder up a level (and delete the *-master folder thats' now empty) so that:
C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2\library.properties

Becomes:
C:\Users\m1\Documents\Arduino\libraries\IRLib2\library.properties

Then click vMicro > General > Rescan Toolchains and Libraries, everything should start to work as expected for the library  listing, and compilation.


That seems right, but the *-master folder will not empty, there are others needed libraries inside, and some files:

Code
Select All
------ .gitattributes
------ .gitignore
------ CHANGELOG.txt
------ COPYRIGHT.txt
D----- IRLib2
D----- IRLibFreq
D----- IRLibProtocols
D----- IRLibRecv
D----- IRLibRecvPCI
------ LICENSE.txt
------ readme.md
 



Shall I just move the the 5 directories, and leave the rest alone?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Unable to set path with VS2022
Reply #5 - Jan 17th, 2025 at 10:24am
Print Post  
Apologies for not being clearer, I meant to move the entire IRLib2 folder up a level (with it's entire contents).

If you move everything from the IRLib2-master folder to the IRLib2 folder it should give the same result.  Then the -master folder should be empty and can be removed.

Then run Rescan Toolchains and Libraries again and everything should be correct.
  
Back to top
IP Logged
 
Bob4K
Junior Member
**
Offline


Posts: 14
Joined: Dec 30th, 2015
Re: Unable to set path with VS2022
Reply #6 - Jan 17th, 2025 at 10:29am
Print Post  
That cleared the path problems, thanks.

Now I'm getting errors with the IR2 library:

Code
Select All
Compiling debug version of 'GoldCont' for 'Arduino UNO R4 WiFi (unor4wifi)'
Build Folder: "file:///C:/Users/m1/AppData/Local/Temp/VMBuilds/GoldCont/unor4wifi/Debug"

IRLibSendBase.cpp:14: In file included from
IRLibSendBase.cpp: In member function void IRsendBase::enableIROut(uint8_t)

IRLibHardware.h: 292:34: error: 'TIMSK2' was not declared in this scope
   #define IR_RECV_DISABLE_INTR   (TIMSK2 = 0)
IRLibSendBase.cpp:77: note  in expansion of macro IR_RECV_DISABLE_INTR
   IR_RECV_DISABLE_INTR; \\Timer2 Overflow Interrupt
   ^~~~~~~~~~~~~~~~~~~~

IRLibHardware.h: 199:3: error: 'TCCR2A' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

IRLibHardware.h: 199:16: error: 'WGM20' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

IRLibHardware.h: 199:12: error: '_BV' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~
IRLibHardware.h:199: note  suggested alternative  _B
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

IRLibHardware.h: 199:25: error: 'TCCR2B' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

IRLibHardware.h: 199:38: error: 'WGM22' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

IRLibHardware.h: 199:51: error: 'CS20' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~
IRLibHardware.h:199: note  suggested alternative  CS
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

IRLibHardware.h: 200:3: error: 'OCR2A' was not declared in this scope
   OCR2A = pwmval; OCR2B = pwmval \ 3; })
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

IRLibHardware.h: 200:19: error: 'OCR2B' was not declared in this scope
   OCR2A = pwmval; OCR2B = pwmval \ 3; })
IRLibSendBase.cpp:80: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~
IRLibSendBase.cpp: In member function void IRsendBase::mark(uint16_t)

IRLibHardware.h: 194:33: error: 'TCCR2A' was not declared in this scope
   #define IR_SEND_PWM_START     (TCCR2A |= _BV(COM2B1))
IRLibSendBase.cpp:95: note  in expansion of macro IR_SEND_PWM_START
   IR_SEND_PWM_START
   ^~~~~~~~~~~~~~~~~

IRLibHardware.h: 194:47: error: 'COM2B1' was not declared in this scope
   #define IR_SEND_PWM_START     (TCCR2A |= _BV(COM2B1))
IRLibSendBase.cpp:95: note  in expansion of macro IR_SEND_PWM_START
   IR_SEND_PWM_START
   ^~~~~~~~~~~~~~~~~

IRLibHardware.h: 194:43: error: '_BV' was not declared in this scope
   #define IR_SEND_PWM_START     (TCCR2A |= _BV(COM2B1))
IRLibSendBase.cpp:95: note  in expansion of macro IR_SEND_PWM_START
   IR_SEND_PWM_START
   ^~~~~~~~~~~~~~~~~
IRLibHardware.h:194: note  suggested alternative  _B
   #define IR_SEND_PWM_START     (TCCR2A |= _BV(COM2B1))
IRLibSendBase.cpp:95: note  in expansion of macro IR_SEND_PWM_START
   IR_SEND_PWM_START
   ^~~~~~~~~~~~~~~~~
IRLibSendBase.cpp: In member function void IRsendBase::space(uint16_t)

IRLibHardware.h: 196:31: error: 'TCCR2A' was not declared in this scope
   #define IR_SEND_PWM_STOP    (TCCR2A &= ~(_BV(COM2B1)))
IRLibSendBase.cpp:101: note  in expansion of macro IR_SEND_PWM_STOP
   IR_SEND_PWM_STOP
   ^~~~~~~~~~~~~~~~

IRLibHardware.h: 196:47: error: 'COM2B1' was not declared in this scope
   #define IR_SEND_PWM_STOP    (TCCR2A &= ~(_BV(COM2B1)))
IRLibSendBase.cpp:101: note  in expansion of macro IR_SEND_PWM_STOP
   IR_SEND_PWM_STOP
   ^~~~~~~~~~~~~~~~

IRLibHardware.h: 196:43: error: '_BV' was not declared in this scope
   #define IR_SEND_PWM_STOP    (TCCR2A &= ~(_BV(COM2B1)))
IRLibSendBase.cpp:101: note  in expansion of macro IR_SEND_PWM_STOP
   IR_SEND_PWM_STOP
   ^~~~~~~~~~~~~~~~
IRLibHardware.h:196: note  suggested alternative  _B
   #define IR_SEND_PWM_STOP    (TCCR2A &= ~(_BV(COM2B1)))
IRLibSendBase.cpp:101: note  in expansion of macro IR_SEND_PWM_STOP
   IR_SEND_PWM_STOP
   ^~~~~~~~~~~~~~~~
Error compiling libraries
Debug build failed for project 'GoldCont'
 



If I try with the previous IRLib-master library, I get some similar errors:

Code
Select All
Compiling debug version of 'GoldCont' for 'Arduino UNO R4 WiFi (unor4wifi)'
Build Folder: "file:///C:/Users/m1/AppData/Local/Temp/VMBuilds/GoldCont/unor4wifi/Debug"

IRLib.cpp:966: In file included from

IRLib.cpp: In function void do_Blink()

irlibtimer.h: 345:25: error: 'PORTB' was not declared in this scope
   #define BLINKLED_ON()  (PORTB |= B00100000)
IRLib.cpp:996: note  in expansion of macro BLINKLED_ON
   BLINKLED_ON();  \\ turn pin 13 LED on
   ^~~~~~~~~~~

irlibtimer.h: 346:25: error: 'PORTB' was not declared in this scope
   #define BLINKLED_OFF() (PORTB &= B11011111)
IRLib.cpp:999: note  in expansion of macro BLINKLED_OFF
   BLINKLED_OFF();  \\ turn pin 13 LED off
   ^~~~~~~~~~~~
IRLib.cpp: In member function void IRrecv::enableIRIn()

IRLib.cpp: 1016:3: error: 'cli' was not declared in this scope
   cli()
   ^~~
IRLib.cpp:1016: note  suggested alternative  cbi
   cli()
   ^~~
   cbi

IRLib.cpp:966: In file included from

irlibtimer.h: 282:4: error: 'TCCR2A' was not declared in this scope
   TCCR2A = _BV(WGM21);   TCCR2B = _BV(CS21)
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~

irlibtimer.h: 282:17: error: 'WGM21' was not declared in this scope
   TCCR2A = _BV(WGM21);   TCCR2B = _BV(CS21)
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~

irlibtimer.h: 282:13: error: '_BV' was not declared in this scope
   TCCR2A = _BV(WGM21);   TCCR2B = _BV(CS21)
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~
irlibtimer.h:282: note  suggested alternative  _B
   TCCR2A = _BV(WGM21);   TCCR2B = _BV(CS21)
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~

irlibtimer.h: 282:27: error: 'TCCR2B' was not declared in this scope
   TCCR2A = _BV(WGM21);   TCCR2B = _BV(CS21)
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~

irlibtimer.h: 282:40: error: 'CS21' was not declared in this scope
   TCCR2A = _BV(WGM21);   TCCR2B = _BV(CS21)
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~
irlibtimer.h:282: note  suggested alternative  CS
   TCCR2A = _BV(WGM21);   TCCR2B = _BV(CS21)
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~

irlibtimer.h: 283:4: error: 'OCR2A' was not declared in this scope
   OCR2A = IR_RECV_COUNT_TOP \ 8;   TCNT2 = 0; })
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~

irlibtimer.h: 283:37: error: 'TCNT2' was not declared in this scope
   OCR2A = IR_RECV_COUNT_TOP \ 8;   TCNT2 = 0; })
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~
irlibtimer.h:283: note  suggested alternative  SCNx32
   OCR2A = IR_RECV_COUNT_TOP \ 8;   TCNT2 = 0; })
IRLib.cpp:1017: note  in expansion of macro IR_RECV_CONFIG_TICKS
   IR_RECV_CONFIG_TICKS()
   ^~~~~~~~~~~~~~~~~~~~

irlibtimer.h: 272:34: error: 'TIMSK2' was not declared in this scope
   #define IR_RECV_ENABLE_INTR    (TIMSK2 = _BV(OCIE2A))
IRLib.cpp:1018: note  in expansion of macro IR_RECV_ENABLE_INTR
   IR_RECV_ENABLE_INTR
   ^~~~~~~~~~~~~~~~~~~

irlibtimer.h: 272:47: error: 'OCIE2A' was not declared in this scope
   #define IR_RECV_ENABLE_INTR    (TIMSK2 = _BV(OCIE2A))
IRLib.cpp:1018: note  in expansion of macro IR_RECV_ENABLE_INTR
   IR_RECV_ENABLE_INTR
   ^~~~~~~~~~~~~~~~~~~

irlibtimer.h: 272:43: error: '_BV' was not declared in this scope
   #define IR_RECV_ENABLE_INTR    (TIMSK2 = _BV(OCIE2A))
IRLib.cpp:1018: note  in expansion of macro IR_RECV_ENABLE_INTR
   IR_RECV_ENABLE_INTR
   ^~~~~~~~~~~~~~~~~~~
irlibtimer.h:272: note  suggested alternative  _B
   #define IR_RECV_ENABLE_INTR    (TIMSK2 = _BV(OCIE2A))
IRLib.cpp:1018: note  in expansion of macro IR_RECV_ENABLE_INTR
   IR_RECV_ENABLE_INTR
   ^~~~~~~~~~~~~~~~~~~

IRLib.cpp: 1019:3: error: 'sei' was not declared in this scope
   sei()
   ^~~
IRLib.cpp:1019: note  suggested alternative  sbi
   sei()
   ^~~
   sbi
IRLib.cpp: At global scope

IRLib.cpp: 1038:4: error: expected constructor, destructor, or type conversion before '(' token
   ISR(IR_RECV_INTR_NAME)

IRLib.cpp:966: In file included from
IRLib.cpp: In member function void IRsendBase::enableIROut(unsigned char)

irlibtimer.h: 273:34: error: 'TIMSK2' was not declared in this scope
   #define IR_RECV_DISABLE_INTR   (TIMSK2 = 0)
IRLib.cpp:1113: note  in expansion of macro IR_RECV_DISABLE_INTR
   IR_RECV_DISABLE_INTR; \\Timer2 Overflow Interrupt
   ^~~~~~~~~~~~~~~~~~~~

irlibtimer.h: 189:3: error: 'TCCR2A' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

irlibtimer.h: 189:16: error: 'WGM20' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

irlibtimer.h: 189:12: error: '_BV' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~
irlibtimer.h:189: note  suggested alternative  _B
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

irlibtimer.h: 189:25: error: 'TCCR2B' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

irlibtimer.h: 189:38: error: 'WGM22' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

irlibtimer.h: 189:51: error: 'CS20' was not declared in this scope
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~
irlibtimer.h:189: note  suggested alternative  CS
   TCCR2A = _BV(WGM20);  TCCR2B = _BV(WGM22) | _BV(CS20)
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

irlibtimer.h: 190:3: error: 'OCR2A' was not declared in this scope
   OCR2A = pwmval; OCR2B = pwmval \ 3; })
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~

irlibtimer.h: 190:19: error: 'OCR2B' was not declared in this scope
   OCR2A = pwmval; OCR2B = pwmval \ 3; })
IRLib.cpp:1116: note  in expansion of macro IR_SEND_CONFIG_KHZ
   IR_SEND_CONFIG_KHZ(khz)
   ^~~~~~~~~~~~~~~~~~
IRLib.cpp: In member function void IRsendBase::mark(unsigned int)

irlibtimer.h: 184:33: error: 'TCCR2A' was not declared in this scope
   #define IR_SEND_PWM_START     (TCCR2A |= _BV(COM2B1))
IRLib.cpp:1131: note  in expansion of macro IR_SEND_PWM_START
   IR_SEND_PWM_START
   ^~~~~~~~~~~~~~~~~

irlibtimer.h: 184:47: error: 'COM2B1' was not declared in this scope
   #define IR_SEND_PWM_START     (TCCR2A |= _BV(COM2B1))
IRLib.cpp:1131: note  in expansion of macro IR_SEND_PWM_START
   IR_SEND_PWM_START
   ^~~~~~~~~~~~~~~~~

irlibtimer.h: 184:43: error: '_BV' was not declared in this scope
   #define IR_SEND_PWM_START     (TCCR2A |= _BV(COM2B1))
IRLib.cpp:1131: note  in expansion of macro IR_SEND_PWM_START
   IR_SEND_PWM_START
   ^~~~~~~~~~~~~~~~~
irlibtimer.h:184: note  suggested alternative  _B
   #define IR_SEND_PWM_START     (TCCR2A |= _BV(COM2B1))
IRLib.cpp:1131: note  in expansion of macro IR_SEND_PWM_START
   IR_SEND_PWM_START
   ^~~~~~~~~~~~~~~~~
IRLib.cpp: In member function void IRsendBase::space(unsigned int)

irlibtimer.h: 186:31: error: 'TCCR2A' was not declared in this scope
   #define IR_SEND_PWM_STOP    (TCCR2A &= ~(_BV(COM2B1)))
IRLib.cpp:1137: note  in expansion of macro IR_SEND_PWM_STOP
   IR_SEND_PWM_STOP
   ^~~~~~~~~~~~~~~~

irlibtimer.h: 186:47: error: 'COM2B1' was not declared in this scope
   #define IR_SEND_PWM_STOP    (TCCR2A &= ~(_BV(COM2B1)))
IRLib.cpp:1137: note  in expansion of macro IR_SEND_PWM_STOP
   IR_SEND_PWM_STOP
   ^~~~~~~~~~~~~~~~

irlibtimer.h: 186:43: error: '_BV' was not declared in this scope
   #define IR_SEND_PWM_STOP    (TCCR2A &= ~(_BV(COM2B1)))
IRLib.cpp:1137: note  in expansion of macro IR_SEND_PWM_STOP
   IR_SEND_PWM_STOP
   ^~~~~~~~~~~~~~~~
irlibtimer.h:186: note  suggested alternative  _B
   #define IR_SEND_PWM_STOP    (TCCR2A &= ~(_BV(COM2B1)))
IRLib.cpp:1137: note  in expansion of macro IR_SEND_PWM_STOP
   IR_SEND_PWM_STOP
   ^~~~~~~~~~~~~~~~
Error compiling libraries
Debug build failed for project 'GoldCont'
 



This does works with the ARDUINO UNO REV3 I was using until now.

Is there a specific forum for the IR libraries?
« Last Edit: Jan 17th, 2025 at 10:30am by Bob4K »  
Back to top
 
IP Logged
 
Bob4K
Junior Member
**
Offline


Posts: 14
Joined: Dec 30th, 2015
Re: Unable to set path with VS2022
Reply #7 - Jan 17th, 2025 at 10:38am
Print Post  
Simon@Visual Micro wrote on Jan 17th, 2025 at 10:24am:

If you move everything from the IRLib2-master folder to the IRLib2 folder it should give the same result.  Then the -master folder should be empty and can be removed.


I forgot: this did not work at first, the 5 directories must no be inside the IRLib2 folder, but need also to be moved up next to it.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Unable to set path with VS2022
Reply #8 - Jan 17th, 2025 at 10:38am
Print Post  
Thanks for the update.

Apologies for not fully understanding the structure, the -master folder is a ZIP of 5 seperate libraries.

Each one needs to be in the Documents\Arduino\libraries folder:
Documents\Arduino\libraries\IRLib2
Documents\Arduino\libraries\IRLibFreq
Documents\Arduino\libraries\IRLibProtocols
Documents\Arduino\libraries\IRLibRecv
Documents\Arduino\libraries\IRLibRecvPCI

Each one will have the library.properties in the root of each folder specified above.
  
Back to top
IP Logged
 
Bob4K
Junior Member
**
Offline


Posts: 14
Joined: Dec 30th, 2015
Re: Unable to set path with VS2022
Reply #9 - Jan 17th, 2025 at 1:53pm
Print Post  
Yes, that's it, and no apologies for being helpful please! 

I have both the Uno R4 and the Uno R4 Wifi connected, each with one VS2022 instance with exactly the same script.

IRLIBV1 compiles with the Uno, but not with the Uno Wifi.

I am going to try a Wifi shield instead (or even an Ethernet one) with the Uno.

But if somebody knows how to make the IRLIB (V1 preferably) work with the UNO Wifi, that would be better.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint