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

Compilation error. #15

Open
Greeg0 opened this issue Jan 7, 2021 · 10 comments
Open

Compilation error. #15

Greeg0 opened this issue Jan 7, 2021 · 10 comments

Comments

@Greeg0
Copy link

Greeg0 commented Jan 7, 2021

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
Copy link
Author

Greeg0 commented Jan 9, 2021

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.

@daniel-widrick
Copy link

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

@Fabian42
Copy link

Fabian42 commented Jul 19, 2022

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

@alberthdev
Copy link
Owner

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

@Fabian42
Copy link

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
Copy link

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

@shibedrill
Copy link

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.

@hitomi-nakayama
Copy link

hitomi-nakayama commented Apr 24, 2023

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

@Fabian42
Copy link

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>

@IS27-Particle
Copy link

@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

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

7 participants