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

linux.template_release.x86_64.so fails to load on Linux #82

Open
JohnTator opened this issue Nov 4, 2024 · 8 comments
Open

linux.template_release.x86_64.so fails to load on Linux #82

JohnTator opened this issue Nov 4, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@JohnTator
Copy link

The Linux implementation of this does not function. "Can't open dynamic library: linux.template_release.x86_64.so" "Error: undefined symbol: clBuildProgram." returns in the editor when loading plugin on Linux.

Linux Kernel 6.8
Linux Mint 22

@fire fire added the bug Something isn't working label Nov 4, 2024
@Sammyueru
Copy link

Getting the same error on Pop OS (Linux)

@fire
Copy link
Member

fire commented Nov 4, 2024

The problem seems to be that getting OpenCL to work is complex, and we're still getting ready to move to https://github.com/iree-gd/iree.gd with the Vulkan computation.

@ZhenyaPav
Copy link

The problem seems to be that getting OpenCL to work is complex, and we're still getting ready to move to https://github.com/iree-gd/iree.gd with the Vulkan computation.

Thank you for your answer. Do you have any timeline on when this will be ready?

@fire
Copy link
Member

fire commented Nov 4, 2024

To solve this problem for Linux with the existing whisper, we'll have to make a build for each Linux operating system variety or pick an old base for GitHub actions. It sounds hard. Do you have any ideas?

@ZhenyaPav
Copy link

Is it possible to distribute the source code instead of a built library, with instructions how to build it? The other option would be to package all dependencies in the library. I'm not familiar with this addon, so can't suggest much else.

@fire
Copy link
Member

fire commented Nov 4, 2024

As far as I know, the entire library source has already been distributed.

@fire
Copy link
Member

fire commented Nov 4, 2024

I can try making specific Popos and Linux Mint versions via docker.

@bplunkert
Copy link

bplunkert commented Nov 11, 2024

I don't mind doing a build myself, are there some instructions one can use to work around this problem by building from source?

Edit with answer for others: I was able to get a successful build by following the dependency build steps in the github workflow. Then after that, I followed the normal build steps.

# Build OpenCL dependency
git clone -b v2023.12.14 --recurse-submodules https://github.com/KhronosGroup/OpenCL-SDK.git
cd OpenCL-SDK
mkdir build && cd build
cmake -DOPENCL_SDK_BUILD_SAMPLES=OFF -DOPENCL_ICD_LOADER_BUILD=ON ..
make -j$(nproc)
sudo make install

# Build godot-whisper
scons platform=linux target=template_release generate_bindings=no arch=x86_64 precision=single
rm -rf samples/godot_whisper/addons
cp -rf bin/addons samples/godot_whisper/addons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants