wxwabbitemu icon indicating copy to clipboard operation
wxwabbitemu copied to clipboard

Compilation error.

Open Greeg0 opened this issue 4 years ago • 10 comments

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

Greeg0 avatar Jan 07 '21 06:01 Greeg0

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.

Greeg0 avatar Jan 09 '21 07:01 Greeg0

The *GTK3 packages also resolved my compilation issues on fedora 34.

daniel-widrick avatar Jun 03 '21 22:06 daniel-widrick

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)".

Fabian42 avatar Jul 19 '22 22:07 Fabian42

Can you paste the full make output? Something like make VERBOSE=1 to see the commands being run.

alberthdev avatar Jul 20 '22 13:07 alberthdev

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

Fabian42 avatar Jul 20 '22 14:07 Fabian42

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

Fabian42 avatar Jul 20 '22 14:07 Fabian42

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.

shibedrill avatar Oct 10 '22 15:10 shibedrill

@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.

hitomi-nakayama avatar Apr 24 '23 03:04 hitomi-nakayama

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 avatar Apr 24 '23 06:04 Fabian42

@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.

This helped me! Running Fedora 39, needed to run cmake . and then make using the packages cmake gcc gcc-c++ make wxGTK wxGTK-devel

IS27-Particle avatar Jan 25 '24 02:01 IS27-Particle