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

build with some error #56

Open
Yayi opened this issue Mar 27, 2023 · 1 comment
Open

build with some error #56

Yayi opened this issue Mar 27, 2023 · 1 comment

Comments

@Yayi
Copy link

Yayi commented Mar 27, 2023

I have installed openblas, but there are some errors:
/usr/bin/ld: ../src/lib/libfastasr.a(Predictor.cpp.o): in function paraformer::Predictor::cif_conv1d(Tensor&)':
Predictor.cpp:(.text+0x222): undefined reference to cblas_sgemm' /usr/bin/ld: ../src/lib/libfastasr.a(Predictor.cpp.o): in function paraformer::Predictor::forward(Tensor
&)':
Predictor.cpp:(.text+0x48a): undefined reference to cblas_sgemm' /usr/bin/ld: ../src/lib/libfastasr.a(CTCDecode.cpp.o): in function CTCdecode::forward(Tensor)':
CTCDecode.cpp:(.text+0x3e93): undefined reference to cblas_sgemm' /usr/bin/ld: ../src/lib/libfastasr.a(Decoder.cpp.o): in function paddlespeech::Decoder::forward(Tensor
, Tensor, Tensor, Tensor, Tensor&)':
Decoder.cpp:(.text+0x434): undefined reference to cblas_sgemm' /usr/bin/ld: Decoder.cpp:(.text+0x58f): undefined reference to cblas_sgemm'
/usr/bin/ld: ../src/lib/libfastasr.a(Joiner.cpp.o):Joiner.cpp:(.text+0x117): more undefined references to cblas_sgemm' follow collect2: error:ld return 1 make[2]: *** [examples/CMakeFiles/paddlespeech_cli.dir/build.make:98:examples/paddlespeech_cli] error 1 make[1]: *** [CMakeFiles/Makefile2:208:examples/CMakeFiles/paddlespeech_cli.dir/all] error 2 make: *** [Makefile:91:all] error 2

at the archlinux , cblas and openblas cannot be installed together. do you have any ideas?tnx.

@chenkui164
Copy link
Owner

chenkui164 commented Mar 27, 2023

  1. Find where libopenblas.a is located on your computer:
sudo find / -name 'libopenblas.a'
  1. Add the path of libopenblas to CMakeLists.txt
target_link_directories(${PROJECT_NAME} PUBLIC "/usr/local/opt/openblas/lib")

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