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

Cannot compile in Voidlinux : dependencies not available #163

Open
zenny opened this issue Sep 8, 2024 · 5 comments
Open

Cannot compile in Voidlinux : dependencies not available #163

zenny opened this issue Sep 8, 2024 · 5 comments

Comments

@zenny
Copy link

zenny commented Sep 8, 2024

Hi @royshil

Thanks a zillion for sharing such nifty plugins to obs.

I tried to compile it, but it dies with:

[45/46] Linking CXX shared module obs-localvocal.so
FAILED: obs-localvocal.so
: && /usr/bin/c++ -fPIC -O2 -g -DNDEBUG   -shared  -o obs-localvocal.so CMakeFiles/obs-localvocal.dir/obs-localvocal_autogen/mocs_compilation.cpp.o CMakeFiles/obs-localvocal.dir/src/plugin-main.c.o CMakeFiles/obs-localvocal.dir/src/transcription-filter.cpp.o CMakeFiles/obs-localvocal.dir/src/transcription-filter.c.o CMakeFiles/obs-localvocal.dir/src/transcription-filter-callbacks.cpp.o CMakeFiles/obs-localvocal.dir/src/transcription-filter-properties.cpp.o CMakeFiles/obs-localvocal.dir/src/transcription-filter-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/transcription-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/model-utils/model-downloader.cpp.o CMakeFiles/obs-localvocal.dir/src/model-utils/model-downloader-ui.cpp.o CMakeFiles/obs-localvocal.dir/src/model-utils/model-infos.cpp.o CMakeFiles/obs-localvocal.dir/src/model-utils/model-find-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/whisper-processing.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/whisper-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/whisper-model-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/silero-vad-onnx.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/token-buffer-thread.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/vad-processing.cpp.o CMakeFiles/obs-localvocal.dir/src/translation/language_codes.cpp.o CMakeFiles/obs-localvocal.dir/src/translation/translation.cpp.o CMakeFiles/obs-localvocal.dir/src/translation/translation-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/translation/translation-language-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/ui/filter-replace-dialog.cpp.o  -Wl,-rpath,/home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/_deps/onnxruntime-src/lib:  /usr/lib64/libobs-frontend-api.so.30  /usr/lib64/libcurl.so  _deps/onnxruntime-src/lib/libonnxruntime.so.1.17.1  libplugin-support.a  /usr/lib64/libobs.so.30  /usr/lib/libQt6Widgets.so.6.7.2  /usr/lib/libQt6Gui.so.6.7.2  /usr/lib/libQt6Core.so.6.7.2  /usr/lib/libGLX.so  /usr/lib/libOpenGL.so  Whispercpp_Build-prefix/lib/static/libwhisper.a  ct2_build-prefix/lib/libctranslate2.a  cpu_features_build-prefix/lib/libcpu_features.a  sentencepiece_build-prefix/lib/libsentencepiece.a  ICU_build-prefix/lib/libicudata.a  ICU_build-prefix/lib/libicuuc.a  ICU_build-prefix/lib/libicui18n.a && :
/usr/bin/ld: cannot find ct2_build-prefix/lib/libctranslate2.a: No such file or directory
/usr/bin/ld: cannot find cpu_features_build-prefix/lib/libcpu_features.a: No such file or directory
/usr/bin/ld: cannot find sentencepiece_build-prefix/lib/libsentencepiece.a: No such file or directory
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

cpu_features-devel package is already installed. pipx install ctranslate2 says it is installed. Yet compilation reports missing! Any pointers how to satisfy the dependencies?

Cheers,
/zenny

@royshil
Copy link
Collaborator

royshil commented Sep 10, 2024

cmake should build ct2 and cpufeature from scratch as per cmake\BuildCTranslate2.cmake on Linux builds
does it not do that?

@sheepman4267
Copy link

I'm having the same issue on Solus. On my setup, it looks like ct2, cpufeature, and sentencepiece are ending up in (for example) build-dir/sentencepiece_build-prefix/lib64/, rather than (...)/lib. Am I missing an option that would let me configure that?

@zenny
Copy link
Author

zenny commented Oct 4, 2024

cmake should build ct2 and cpufeature from scratch as per cmake\BuildCTranslate2.cmake on Linux builds does it not do that?

Nope in voidlinux.

@sheepman4267
Copy link

@zenny Is your build issue the same as mine, or are they not being built at all?

@zenny
Copy link
Author

zenny commented Nov 9, 2024

Hi again,

I tried to build again by pulling the latest commit:

[62/62] Linking CXX executable src/spm_normalize
[38/69] Performing install step for 'sentencepiece_build'
-- Up-to-date: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/lib64/pkgconfig/sentencepiece.pc
-- Installing: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/lib64/libsentencepiece.a
-- Installing: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/lib64/libsentencepiece_train.a
-- Installing: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/bin/spm_encode
-- Installing: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/bin/spm_decode
-- Installing: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/bin/spm_normalize
-- Installing: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/bin/spm_train
-- Installing: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/bin/spm_export_vocab
-- Up-to-date: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/include/sentencepiece_trainer.h
-- Up-to-date: /home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/sentencepiece_build-prefix/include/sentencepiece_processor.h
[68/69] Linking CXX shared module obs-localvocal.so
FAILED: obs-localvocal.so
: && /usr/bin/c++ -fPIC -O2 -g -DNDEBUG   -shared  -o obs-localvocal.so CMakeFiles/obs-localvocal.dir/obs-localvocal_autogen/mocs_compilation.cpp.o CMakeFiles/obs-localvocal.dir/src/plugin-main.c.o CMakeFiles/obs-localvocal.dir/src/transcription-filter.cpp.o CMakeFiles/obs-localvocal.dir/src/transcription-filter.c.o CMakeFiles/obs-localvocal.dir/src/transcription-filter-callbacks.cpp.o CMakeFiles/obs-localvocal.dir/src/transcription-filter-properties.cpp.o CMakeFiles/obs-localvocal.dir/src/transcription-filter-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/transcription-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/model-utils/model-downloader.cpp.o CMakeFiles/obs-localvocal.dir/src/model-utils/model-downloader-ui.cpp.o CMakeFiles/obs-localvocal.dir/src/model-utils/model-infos.cpp.o CMakeFiles/obs-localvocal.dir/src/model-utils/model-find-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/whisper-processing.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/whisper-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/whisper-model-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/silero-vad-onnx.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/token-buffer-thread.cpp.o CMakeFiles/obs-localvocal.dir/src/whisper-utils/vad-processing.cpp.o CMakeFiles/obs-localvocal.dir/src/translation/language_codes.cpp.o CMakeFiles/obs-localvocal.dir/src/translation/translation.cpp.o CMakeFiles/obs-localvocal.dir/src/translation/translation-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/ui/filter-replace-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/translation/translation-language-utils.cpp.o CMakeFiles/obs-localvocal.dir/src/ui/filter-replace-dialog.cpp.o  -Wl,-rpath,/home/zenny/Downloads/gitrepos/obs-plugins/obs-localvocal/build-dir/_deps/onnxruntime-src/lib:  /usr/lib64/libobs-frontend-api.so.30  /usr/lib64/libcurl.so  _deps/onnxruntime-src/lib/libonnxruntime.so.1.19.2  libplugin-support.a  /usr/lib64/libobs.so.30  /usr/lib/libQt6Widgets.so.6.7.2  /usr/lib/libQt6Gui.so.6.7.2  /usr/lib/libQt6Core.so.6.7.2  /usr/lib/libGLX.so  /usr/lib/libOpenGL.so  Whispercpp_Build-prefix/lib/static/libwhisper.a  ct2_build-prefix/lib/libctranslate2.a  cpu_features_build-prefix/lib/libcpu_features.a  sentencepiece_build-prefix/lib/libsentencepiece.a  ICU_build-prefix/lib/libicudata.a  ICU_build-prefix/lib/libicuuc.a  ICU_build-prefix/lib/libicui18n.a && :
/usr/bin/ld: cannot find ct2_build-prefix/lib/libctranslate2.a: No such file or directory
/usr/bin/ld: cannot find cpu_features_build-prefix/lib/libcpu_features.a: No such file or directory
/usr/bin/ld: cannot find sentencepiece_build-prefix/lib/libsentencepiece.a: No such file or directory
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

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