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

Android Demo编译失败 Failed to build Android Demo #206

Open
tanyuzhou opened this issue Feb 17, 2024 · 3 comments
Open

Android Demo编译失败 Failed to build Android Demo #206

tanyuzhou opened this issue Feb 17, 2024 · 3 comments

Comments

@tanyuzhou
Copy link

Describe the bug
命令行使用git clone -c core.symlinks=true https://github.com/wenet-e2e/wetts.git将repo克隆至本地后,尝试使用Android Studio编译,cmake报错找不到依赖

To Reproduce
Steps to reproduce the behavior:

  1. 使用Android Studio打开wetts\runtime\android目录
  2. 点击Build->Rebuild Project
  3. :app:buildCMakeDebug阶段报错找不到fst/fstlib.hglog/logging.honnxruntime_cxx_api.h头文件

Expected behavior
正常编译并打包apk

Screenshots
image
image
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: git commit fb37f10

Additional context
看图二报错,貌似和Windows的软链接有关,不知道大佬们用的是什么开发环境呢?

In file included from ***/wetts/runtime/android/app/src/main/cpp/utils/utils.cc:15:
***/wetts/runtime/android/app/src/main/cpp\utils/utils.h:24:10: fatal error: 'glog/logging.h' file not found
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/itn/chinese/test/utils.py" -> "../../../tn/chinese/test/utils.py".
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/runtime/android/app/src/main/cpp/cmake" -> "../../../../../cmake".
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/runtime/android/app/src/main/cpp/patch" -> "../../../../../patch".
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/runtime/android/app/src/main/cpp/processor" -> "../../../../../processor".
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/runtime/android/app/src/main/cpp/utils" -> "../../../../../utils".

@CriDora
Copy link

CriDora commented Sep 8, 2024

Describe the bug 命令行使用git clone -c core.symlinks=true https://github.com/wenet-e2e/wetts.git将repo克隆至本地后,尝试使用Android Studio编译,cmake报错找不到依赖

To Reproduce Steps to reproduce the behavior:

  1. 使用Android Studio打开wetts\runtime\android目录
  2. 点击Build->Rebuild Project
  3. :app:buildCMakeDebug阶段报错找不到fst/fstlib.hglog/logging.honnxruntime_cxx_api.h头文件

Expected behavior 正常编译并打包apk

Screenshots image image image

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: git commit fb37f10

Additional context 看图二报错,貌似和Windows的软链接有关,不知道大佬们用的是什么开发环境呢?

In file included from ***/wetts/runtime/android/app/src/main/cpp/utils/utils.cc:15:
***/wetts/runtime/android/app/src/main/cpp\utils/utils.h:24:10: fatal error: 'glog/logging.h' file not found
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/itn/chinese/test/utils.py" -> "../../../tn/chinese/test/utils.py".
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/runtime/android/app/src/main/cpp/cmake" -> "../../../../../cmake".
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/runtime/android/app/src/main/cpp/patch" -> "../../../../../patch".
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/runtime/android/app/src/main/cpp/processor" -> "../../../../../processor".
cmake -E tar: warning: skipping symbolic link "WeTextProcessing-0.1.3/runtime/android/app/src/main/cpp/utils" -> "../../../../../utils".

你好,我也遇到了相同的错误,请问你解决这个问题了吗

@pengzhendong
Copy link
Member

试试直接把目录拷贝过去呢?

@CriDora
Copy link

CriDora commented Sep 9, 2024

试试直接把目录拷贝过去呢?

是的,我昨天把#include "fst/fstlib.h" 等文件替换成了绝对路径,这个错误就没有了

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