The error messages are telling you what the problem is, you need to learn how to read them.
I get that they are a bit overwhelming to begin with, but it is important to learn.
oled_menu__upir.ino:576:33: error: no matching function for call to 'U8GLIB_SSD1306_128X64::print(int, int, int&)'
u8g.print(20, 30, xValue);
Starting with this piece, is is telling you that on line 576, there is a problem that it cannot find a print (20, 30, xValue) style of function.
It seems that this error is repeated in a few places
In subsequent messages it is offering some alternatives that it think might be suitable based upon the function/method name i.e. print. Here is one example:
/arduino/hardware/avr/1.8.6/cores/arduino/Print.h:65:12: note: candidate expects 1 argument, 3 provided
/arduino/hardware/avr/1.8.6/cores/arduino/Print.h:66:12: note: candidate: size_t Print::print(const String&)
size_t print(const String &);
What this is saying is that it did find a print function but it accepts just one parameter (not 3). The bit above it tells you that it has found this in Stream.h which relates to HardwareSerial.h - which after a while you will get to know that this relates to the Serial object and thus isn't what you are looking for.
Note that you were closer with your first try where you got this error:
oled_menu__upir.ino: In function 'void loop()':
oled_menu__upir.ino:565:38: error: no matching function for call to 'drawStr(int, int, int&)'
u8g.drawStr(20, 30, POT_X_PIN);
^
The alternative suggested do seem to come from the U8glib.h header file and thus do seem more appropriate for what you are looking for.
You need to look at how POT_X_PIN (and POT_Y_PIN) are defined and try to identify why they are triggering the error - which seems to indicate that drawStr is looking for a reference as its third parameter?
Are these values (POT_X_PIN) preprocessor macro definitions by any chance (i.e. created using #define)?
I just had a look at your code and saw the error line in question, it seems like those values are defined as ints. But still the WokWi simulator is having a problem with it. I am not sure why, as you have written it, the POT_X_PIN (and POT_Y_PIN) should be able to be accepted as a reference.
FWIW, I couldn't see the u8glib in your wokwi project - but it does seem to be there as I observed the same compilation error as you are reporting.
Update: Upon further investigation, it looks like the library can only accept strings as the third parameter.
So I suggest trying something like this:
char buf[10];
itoa(POT_X_PIN, buf, 10);
u8g.drawStr(20, 30, buf);
itoa(POT_Y_PIN, buf, 10);
u8g.drawStr(20, 45, , buf);
Ideally create a function along the lines of
void drawInt(int x, int y, int v) {
char buf[10];
itoa(v, buf, 10);
u8g.drawStr(x, y, buf);
}
and just call that instead. so for example:
// u8g.drawStr(20, 30, POT_X_PIN);
drawInt(20, 30, POT_X_PIN);