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

Fix native build #87

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

swansontec
Copy link

@swansontec swansontec commented Jul 14, 2022

I tried building the WASM bundle following the instructions in @mymonero/mymonero-monero-client, but ran into errors.

This pull request fixes the problems I ran into with the prepare script, and then hacks around the remaining C++ compiler errors. The C++ hacks are almost certainly the wrong solution, but I cannot find the matching branch in mymonero-core-cpp with the correct solution. If you know where that code is, I would be happy to update the PR.

Edit: I found the correct code in the webassembly-cleanup branch, so I dropped the hacks from the PR. This is now clean & ready to merge.

I also have some comment updates and an unnecessary header removal. These are useful in any case, so I could submit them as a separate PR if you don't want to mix these cleanups with the build fixes.

- Mark the script as executable.
- Fix the current-directory check to match this repo.
- Fix the git hashes (they were missing from the repos).
- Uncomment the git hashes (this was a syntax error).
We are trying to use this source for React Native, but React Native does not have Emscripten. Fortunately, the header isn't actually needed.
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

Successfully merging this pull request may close these issues.

1 participant