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

Failed to compile in Linux for WiiU #25

Closed
bugalo opened this issue May 15, 2022 · 5 comments
Closed

Failed to compile in Linux for WiiU #25

bugalo opened this issue May 15, 2022 · 5 comments

Comments

@bugalo
Copy link

bugalo commented May 15, 2022

When trying to compile the Wii U version in Linux, I get the following errors:

Compiling: src/pc/gfx/gfx_gx2_window.cpp -> build/us_wiiu/src/pc/gfx/gfx_gx2_window.o
src/pc/gfx/gfx_gx2_window.cpp: In function 'void gfx_gx2_window_exit_callback()':
src/pc/gfx/gfx_gx2_window.cpp:80:5: error: 'KPADShutdown' was not declared in this scope; did you mean 'WPADShutdown'?
80 | KPADShutdown();
| ^~~~~~~~~~~~
| WPADShutdown
src/pc/gfx/gfx_gx2_window.cpp: In function 'bool gfx_gx2_window_foreground_acquire_callback()':
src/pc/gfx/gfx_gx2_window.cpp:283:58: error: invalid conversion from 'int' to 'GX2SurfaceUse' [-fpermissive]
283 | g_depth_buffer.surface.use = GX2_SURFACE_USE_TEXTURE | GX2_SURFACE_USE_DEPTH_BUFFER;
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
make: *** [Makefile:906: build/us_wiiu/src/pc/gfx/gfx_gx2_window.o] Error 1

I see that the file src/pc/gfx/gfx_gx2_window.cpp was updated 2 days ago, so I guess a recent change breaks it. I was able to compile the code some time ago.

Thanks!

@GABO1423
Copy link

Duplicate of #24. Update wut and the issue should be fixed.

@bugalo
Copy link
Author

bugalo commented May 16, 2022

Thanks for your reply.

I have updated to the latest wut release. Running pacman -Qi wut provides:

Name : wut
Version : 1.0.0_beta12-1

Now I only have one of the errors:

Compiling: src/pc/gfx/gfx_gx2_window.cpp -> build/us_wiiu/src/pc/gfx/gfx_gx2_window.o
src/pc/gfx/gfx_gx2_window.cpp: In function 'void gfx_gx2_window_exit_callback()':
src/pc/gfx/gfx_gx2_window.cpp:80:5: error: 'KPADShutdown' was not declared in this scope; did you mean 'WPADShutdown'?
80 | KPADShutdown();
| ^~~~~~~~~~~~
| WPADShutdown
make: *** [Makefile:906: build/us_wiiu/src/pc/gfx/gfx_gx2_window.o] Error 1

Should the wut stable release from pacman work, or should I compile it form the repository?

@GABO1423
Copy link

Yeah, the pacman package isn't up to date yet sadly. So you need to compile wut from source and update it manually

@bugalo
Copy link
Author

bugalo commented May 16, 2022

I can confirm that compiling wut from source fixes the issue. You can mark the issue as solved.

Thanks!

@GABO1423
Copy link

I can confirm that compiling wut from source fixes the issue. You can mark the issue as solved.

Thanks!

Glad to hear its working now!.... But you can close the issue yourself as well too.

Anyways, glad to have helped.

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