tanyiok1234 / waifu2x_srmd-ncnn-vulkan-termux-binary

A prebuilt armv8 waifu2x/srmd-ncnn-vulkan binary for termux
MIT License
53 stars 1 forks source link

How did you build for ARMv8? #3

Closed fluffyloopy closed 3 years ago

fluffyloopy commented 3 years ago

Could you please tell how you built this for termux? I've been unable to link vulkan to anything i've tried

tanyiok1234 commented 3 years ago

You need to compile glslangValidator first, then combine it with the system built-in libvulkan.so to generate a "mini-vulkan SDK".

Then export it to the VULKAN_SDK environment variable.

if you need libvulkan.so, go to /system/lib64/libvulkan.so

fluffyloopy commented 3 years ago

How do I do that? I have compiled it but have no idea on how to combine it with /system/lib64/libvulkan.so I know how to export path but no idea about vulkan SDK related stuff. Reading about the API or glslang git didn't help me much as I don't fully understand these. Am I to be writing a script/program for it?

tanyiok1234 commented 3 years ago

How do I do that? I have compiled it but have no idea on how to combine it with /system/lib64/libvulkan.so I know how to export path but no idea about vulkan SDK related stuff. Reading about the API or glslang git didn't help me much as I don't fully understand these.

Put libvulkan.so into [your build dir]/install/lib

export VULKAN_SDK=[your build dir]/install

Screenshot_20201212-040551609_1.jpg

fluffyloopy commented 3 years ago

image Did this happen while you were building too? If so, why does this happen?

tanyiok1234 commented 3 years ago

image Did this happen while you were building too? If so, why does this happen?

Please clone the repository forked by me, otherwise you will need to solve many compile issues.