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

Fail to build android dynamic lib 'libhermes.so' in branch 'origin/static_h' #1464

Open
hopestar90 opened this issue Jul 30, 2024 · 4 comments

Comments

@hopestar90
Copy link

I want to build the dynamic lib 'libhermes.so' for android project in the branch 'origin/static_h', my step is as follow:

  1. I excute the command 'cmake -S hermes -B build_release -G Ninja -DCMAKE_BUILD_TYPE=Release'
  2. I excute the command 'cmake --build ./build_release' , after this I get the folder 'build_release'
  3. I excute the cmoonad 'cd $HERMES_WS_DIR/hermes/android && ./gradlew githubReleaseNoIntl'

After excute the step 3, I got the errors:
FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/victor.chi/github_hermes_workspace/shopee-hermes/android/build.gradle' line: 35

  • What went wrong:
    A problem occurred evaluating root project 'Hermes'.

Hermes host build not found. Expression: (hermesC != ). Values: hermesC =

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.


Thanks a lot for telling me how to fix this error.

@hopestar90 hopestar90 added the bug Something isn't working label Jul 30, 2024
@tmikov tmikov removed the bug Something isn't working label Jul 30, 2024
@tmikov
Copy link
Contributor

tmikov commented Jul 31, 2024

Hi, the Android build relies on a build for the host system, which must already exists. This is necessary because part of the runtime is written in JavaScript and it needs a version of Hermes to compile it. That's why are seeing the error "Hermes host build not found. Expression: (hermesC != ). Values: hermesC =".

@hopestar90
Copy link
Author

Hi, the Android build relies on a build for the host system, which must already exists. This is necessary because part of the runtime is written in JavaScript and it needs a version of Hermes to compile it. That's why are seeing the error "Hermes host build not found. Expression: (hermesC != ). Values: hermesC =".

Thanks a lot~But I don’t know exactly how to do it. Is there any relevant doc that I can refer to?

@tmikov
Copy link
Contributor

tmikov commented Jul 31, 2024

I don't know the details of the Android build, but I think the steps here should work: https://github.com/facebook/hermes/blob/main/.github/workflows/build.yml

@hopestar90
Copy link
Author

I don't know the details of the Android build, but I think the steps here should work: https://github.com/facebook/hermes/blob/main/.github/workflows/build.yml

I do as the doc https://github.com/facebook/hermes/blob/main/.github/workflows/build.yml, the steps are:
1 I excute the command 'cmake -S hermes -B build_release -G Ninja -DCMAKE_BUILD_TYPE=Release'
2 I excute the command 'cmake --build ./build_release' , after this I get the folder 'build_release'
3 I excute the cmoonad 'cd $HERMES_WS_DIR/hermes/android && ./gradlew githubReleaseNo

but I also got the errors,
"Hermes host build not found. Expression: (hermesC != ). Values: hermesC =".

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