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

Not running on Raspberry Pi 4, because armhf is not supported #198

Open
Feriman22 opened this issue Feb 3, 2023 · 8 comments
Open

Not running on Raspberry Pi 4, because armhf is not supported #198

Feriman22 opened this issue Feb 3, 2023 · 8 comments

Comments

@Feriman22
Copy link

Hy,

I tried to install it on my Raspberry Pi 4 (based on Raspbian).

Install command:
sudo snap install waifu2x-ncnn-vulkan

Then I got this error:

error: snap "waifu2x-ncnn-vulkan" is not available on this architecture (armhf) but exists on other
       architectures (amd64, arm64, i386, ppc64el).

Can it be modified to run on this device?

Thanks,
Feriman

@Nova-Aurora
Copy link
Contributor

Nova-Aurora commented Feb 8, 2023

As for an armhf build, ncnn supports armhf, so it should be able to be compiled for it, though it may be slow depending on the attached GPU.

However, I strongly advise not using the snapcraft version of waifu2x-ncnn-vulkan. Snap (who maintain that distribution) has not updated it since April 30th, 2019, and it should be considered abandoned.

@Nova-Aurora
Copy link
Contributor

Are you using the 32-bit version of Raspberry Pi OS or the 64-bit version?

@Feriman22
Copy link
Author

I use 32-bit version. Is there any solution to upscale images with Raspberry Pi?

@Nova-Aurora
Copy link
Contributor

I don't have a Pi 4, but I'll try compiling on my pi 3 tomorrow, if it doesn't break your use case, can you try with 64-bit Raspberry Pi OS?

You could also try compiling a 32-bit arm version using the build instructions, and report back if you get any errors.

@Nova-Aurora
Copy link
Contributor

Nova-Aurora commented Feb 8, 2023

(The Pi 4 is an arm64 processor on the inside, however when running on a 32-bit operating system, it reports itself as the older 32-bit armhf architecture, and so it might work under a 64-bit OS as far as I know.)

@Feriman22
Copy link
Author

Please let me know the result of compiling on your RPi 3, regarding filesize/increasing rate/elapsed time.

Thanks!

I'll try build it on my RPi4 soon.

@Nova-Aurora
Copy link
Contributor

I didn't get it to compile, but I might have screwed up the dev environment. How does it go for you?

@Feriman22
Copy link
Author

I tried to build it on my Raspberry Pi 4, but I got an error:

root@RPi4:/tmp/waifu2x-ncnn-vulkan/build# cmake ../src
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/tmp/waifu2x-ncnn-vulkan/build/CMakeFiles/CMakeOutput.log".

The log file contains:

The system is: Linux - 5.10.78-7-osmc - aarch64

So I cannot build it on my device.

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

2 participants