wxwabbitemu
wxwabbitemu copied to clipboard
Compilation error.
I am using Fedora 33 and I have encountered this error.
make[1]: Entering directory '/home/ivan/wxwabbitemu' make -C build wxWabbitemu make[2]: Entering directory '/home/ivan/wxwabbitemu/build' ==== Building wxWabbitemu (debug) ==== core.c In file included from ../core/core.c:1: ../stdafx.h:78:10: fatal error: wx/wx.h: No such file or directory 78 | #include <wx/wx.h> | ^~~~~~~~~ compilation terminated. make[3]: *** [wxWabbitemu.make:175: obj/Debug/core.o] Error 1 make[2]: *** [Makefile:17: wxWabbitemu] Error 2 make[2]: Leaving directory '/home/ivan/wxwabbitemu/build' make[1]: *** [Makefile:13: wxWabbitemu] Error 2 make[1]: Leaving directory '/home/ivan/wxwabbitemu' make: *** [Makefile:18: bin/wxWabbitemu] Error 2
I have resolved the issue. I noticed that fedora has different packages for gtk3 which work better so i did "sudo dnf install wxgtk3 wxgtk3-devel" and worked like a charm.
The *GTK3 packages also resolved my compilation issues on fedora 34.
This doesn't help for me on Manjaro. No matter which packages I install, I either get this error or package conflicts. I tried for example wxgtk3-dev
and wxwidgets-gtk3
and the auto-selected "wxgtk-dev (wxgtk-common-dev wxgtk2-dev)
".
Can you paste the full make output? Something like make VERBOSE=1
to see the commands being run.
I had to upload it to Google Drive, because it's way too huge for Pastebin. Why do C++ programs have to output so damn much garbage during compilation? Is there any way to reduce the amount of output?
https://drive.google.com/file/d/1iH-3TZVHCRGQthvU02SjHVjKhLQx-SdX
I've used some regex to cut out extremely often repeated similar output, reducing the total size of the log to <1% of the original: https://pastebin.com/cPRs82hF
I'm running Garuda Linux, experiencing the same issue here when installing via the AUR. I've installed all the packages suggested that I was able to install, and none of them satisfied the issue. I'm looking forward to seeing a possible fix for this.
@Fabian42 I am running Arch Linux. I installed the package wxwidgets-common
for the dependency.
(It looks like Arch changed the naming of the wxwidgets package, since they added Qt bindings for Wx. https://forum.manjaro.org/t/removing-wxgtk-common-breaks-dependency-required-by-wxgtk2/116894)
Then I ran cmake .
and then make
to compile.
I tried that on the day I made the comments, but it didn't help. I just tried it again and got lots of this error:
../stdafx.h:78:10: fatal error: wx/wx.h: No such file or directory
78 | #include <wx/wx.h>
@Fabian42 I am running Arch Linux. I installed the package
wxwidgets-common
for the dependency.(It looks like Arch changed the naming of the wxwidgets package, since they added Qt bindings for Wx. https://forum.manjaro.org/t/removing-wxgtk-common-breaks-dependency-required-by-wxgtk2/116894)
Then I ran
cmake .
and thenmake
to compile.
This helped me! Running Fedora 39, needed to run cmake .
and then make
using the packages cmake gcc gcc-c++ make wxGTK wxGTK-devel