Add ARM support
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.6k
- Forks
- 174
- PR merge metrics
- No merged PRs in 30d
Description
For a project I was working on I thought it might be useful to utilize the packr launcher but there isn't an ARM build (or more specifically, a Raspberry Pi build).
I'm not sure the proper way of going about this, but I was able to get an ARM version built by doing the following:
- Removing the platforms directive (
platforms { "x32", "x64" }) located at the end of the premake4-linux.lua file - Edit the launcher.cpp file and change the jre assignment
- From:
std::string jre = execDir + std::string("/jre/lib/i386/server/libjvm.so"); - To:
std::string jre = execDir + std::string("/jre/lib/arm/client/libjvm.so");
- From:
With these changes I was able to compile it natively on the Raspberry Pi. I imagine this isn't the proper way to do this as I'm not using any defines, etc, but it worked so I figure it might be helpful and it would be much appreciated to see ARM support officially added to Packr.
Thank you!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with premake4-linux.lua and launcher.cpp, focusing on the platforms directive and the JRE library path described in the issue. Build the launcher natively on a Raspberry Pi and verify that the resulting ARM package launches successfully; done means ARM support is integrated rather than relying on manual local edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100