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

Allow the java part to be built locally #2

Open
llewelld opened this issue Aug 24, 2022 · 0 comments
Open

Allow the java part to be built locally #2

llewelld opened this issue Aug 24, 2022 · 0 comments

Comments

@llewelld
Copy link

In theory, it should be possible to build the Java part inside an sfdk target, rather than on a remote device.

Here's a proof of concept to show how this might work, if it worked: #1

In practice QEMU gets upset about the amount of memory the JVM requires. Restricting the JVM heap to 1Gb allows things to progress (albeit very slowly) but eventually the build fails at the build-native stage when the JVM runs out of heap.

Newer versions of QEMU don't seem to be limited in this way, so it's possible a future sfdk update might allows this to go through (in which case the restrictions on the JVM heap size would need to be removed).

@llewelld llewelld changed the title Allow the java part to be build locally Allow the java part to be built locally Aug 24, 2022
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

1 participant