Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed on Manjaro: wxPaintEvent is private within this context #206

Open
LokiFawkes opened this issue Oct 12, 2022 · 2 comments
Open

Comments

@LokiFawkes
Copy link

LokiFawkes commented Oct 12, 2022

[ 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?

@LokiFawkes LokiFawkes changed the title Build failed on Manjaro: wxPaintEvent is private withing this context Build failed on Manjaro: wxPaintEvent is private within this context Oct 12, 2022
@LokiFawkes
Copy link
Author

LokiFawkes commented Oct 13, 2022

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.

@AftDawn
Copy link

AftDawn commented Dec 24, 2022

Also getting this error, no fix so far from what i've tried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants