Ishiiruka
Ishiiruka copied to clipboard
Build failed on Manjaro: wxPaintEvent is private within this context
[ 86%] Building CXX object Source/Core/DolphinWX/CMakeFiles/ishiiruka.dir/FifoPlayerDlg.cpp.o
~/Ishiiruka/Source/Core/DolphinWX/FifoPlayerDlg.cpp: In static member function ‘static void FifoPlayerDlg::FileLoaded()’:
~/Ishiiruka/Source/Core/DolphinWX/FifoPlayerDlg.cpp:973:18: error: ‘wxPaintEvent::wxPaintEvent(wxWindowBase*)’ is private within this context
973 | wxPaintEvent event;
| ^~~~~
In file included from /usr/include/wx-3.2/wx/window.h:18,
from /usr/include/wx-3.2/wx/nonownedwnd.h:14,
from /usr/include/wx-3.2/wx/toplevel.h:20,
from /usr/include/wx-3.2/wx/dialog.h:14,
from ~/Ishiiruka/Source/Core/DolphinWX/FifoPlayerDlg.h:9,
from ~/Ishiiruka/Source/Core/DolphinWX/FifoPlayerDlg.cpp:5:
/usr/include/wx-3.2/wx/event.h:2423:14: note: declared private here
2423 | explicit wxPaintEvent(wxWindowBase* window = NULL);
| ^~~~~~~~~~~~
make[2]: *** [Source/Core/DolphinWX/CMakeFiles/ishiiruka.dir/build.make:1070: Source/Core/DolphinWX/CMakeFiles/ishiiruka.dir/FifoPlayerDlg.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1192: Source/Core/DolphinWX/CMakeFiles/ishiiruka.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Full paths to my Ishiiruka folder censored with tilde, assume the tilde's my home folder.
Is it building for anyone else?
I have news. I removed the reference to wxPaintEvent (I was hesitant to do this), and I get an error that also appears in the Stable branch - conflicting definitions for GdkWindow.
In file included from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gdk/gdkprivate.h:30,
from /usr/include/gtk-2.0/gdk/gdkx.h:30,
from ~/Ishiiruka/Source/Core/DolphinWX/Frame.cpp:86:
/usr/include/gtk-2.0/gdk/gdktypes.h:114:39: error: conflicting declaration ‘typedef struct _GdkDrawable GdkWindow’
114 | typedef struct _GdkDrawable GdkWindow;
| ^~~~~~~~~
In file included from /usr/include/wx-3.2/wx/string.h:24,
from /usr/include/wx-3.2/wx/bitmap.h:18,
from ~/Ishiiruka/Source/Core/DolphinWX/Frame.h:14,
from ~/Ishiiruka/Source/Core/DolphinWX/Frame.cpp:5:
/usr/include/wx-3.2/wx/defs.h:3101:31: note: previous declaration as ‘typedef struct _GdkWindow GdkWindow’
3101 | typedef struct _GdkWindow GdkWindow;
| ^~~~~~~~~
Looks like wx 3.2 and GTK 2 really don't like each other.
Also getting this error, no fix so far from what i've tried