I've done a lot in setting things up but when I import <wx/wx.h> in my main cpp file I get
Code: Select all
1685452043.516973003: src/main/tools/linux-sandbox-pid1.cc:481: child started with PID 2
In file included from /usr/include/X11/extensions/XInput.h:53,
from /usr/include/X11/extensions/XTest.h:32,
from ./mediapipe/examples/desktop/airtouch_hand_tracking/action_sender.h:11,
from ./mediapipe/examples/desktop/airtouch_hand_tracking/airtouch.h:11,
from mediapipe/examples/desktop/airtouch_hand_tracking/airtouch_main.cc:35:
external/wx/wx/layout.h:96:10: error: expected unqualified-id before numeric constant
96 | void Absolute(int val);
| ^~~~~~~~
1685452048.645893276: src/main/tools/linux-sandbox-pid1.cc:498: wait returned pid=2, status=0x100
1685452048.645910299: src/main/tools/linux-sandbox-pid1.cc:516: child exited normally with code 1
wxWidgets v3.2.2.1, Ubuntu 22.04
------
Update 1.
My guess was correct.
Code: Select all
#define Absolute 1
A workaround would be to "undef Absolute" on the user side but this is silly. Please consider another fix.