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

ENABLE_HEADLESS=ON causes wx/bitmap.h: No such file or directory #412

Open
IAmAbszol opened this issue Oct 24, 2023 · 3 comments
Open

ENABLE_HEADLESS=ON causes wx/bitmap.h: No such file or directory #412

IAmAbszol opened this issue Oct 24, 2023 · 3 comments

Comments

@IAmAbszol
Copy link

Issue tracker is ONLY used for reporting bugs. Please use our discord for support and/or feature requests.

When pulling latest of and building the application on Ubuntu 22.04 using the cmake .. -DENABLE_HEADLESS=ON flag an error is hit when building:

In file included from /home/kyle/Storage/Projects/MeleeSetup/tmp/Ishiiruka/Source/Core/Core/HW/EXI_DeviceSlippi.cpp:41:
/home/kyle/Storage/Projects/MeleeSetup/tmp/Ishiiruka/Source/Core/DolphinWX/Frame.h:11:10: fatal error: wx/bitmap.h: No such file or directory
   11 | #include <wx/bitmap.h>

Expected Behavior

The build should pass and generate a headless dolphin executable.

Current Behavior

The error above is raised. This is because wxWidgets_LIBRARIES has been disabled with the -DENABLE_HEADLESS=ON flag set and DolphinWX/CMakeLists.txt doesn't have any headers to work with.

Steps to Reproduce

  1. git clone --recursive https://github.com/project-slippi/Ishiiruka.git
  2. mkdir build
  3. cmake .. -DENABLE_HEADLESS=ON && make -j1
  4. PROFIT

Environment

  • Ubuntu 22.04
  • Rustc & cargo installed and sourced to current shell.
    output.txt
@ericyuegu
Copy link

Getting the exact same thing on Ubuntu 20.04:

In file included from /opt/projects/slippi-Ishiiruka/Source/Core/Core/HW/EXI_DeviceSlippi.cpp:41:
/opt/projects/slippi-Ishiiruka/Source/Core/DolphinWX/Frame.h:11:10: fatal error: wx/bitmap.h: No such file or directory
   11 | #include <wx/bitmap.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

@IAmAbszol
Copy link
Author

Getting the exact same thing on Ubuntu 20.04:

In file included from /opt/projects/slippi-Ishiiruka/Source/Core/Core/HW/EXI_DeviceSlippi.cpp:41:
/opt/projects/slippi-Ishiiruka/Source/Core/DolphinWX/Frame.h:11:10: fatal error: wx/bitmap.h: No such file or directory
   11 | #include <wx/bitmap.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

Try my other repository for Docker slippi that uses Vladfi's slippi to run in headless:
https://github.com/IAmAbszol/docker-slippi/tree/develop

There's also a regular slippi instance it can create for non-headless to evaluate and potentially even just play melee.

@vladfi1
Copy link
Contributor

vladfi1 commented Jun 21, 2024

This is fixed on my exi-ai-rebase branch.

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

3 participants