mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-02-20 07:18:29 +00:00
Added steps incase someone encountered errors with the initial Steps
parent
178a553411
commit
d71991c51a
@ -35,4 +35,57 @@ If it does not, then run: ```wsl --set-default-version 2``` followed by running
|
||||
|
||||
You can then set a network share up to your ```\\wsl$\Ubuntu\home\{username}\portapack-mayhem``` folder and continue to edit the files from within windows.
|
||||
|
||||
_(This guide is a WIP, so I may have missed some steps that I will need to add. Let me know jLynx#7987)_
|
||||
## Errors While Compiling?
|
||||
If there were errors in the compiling aspect you can follow these steps.
|
||||
|
||||
After Step 5 do this:
|
||||
|
||||
**Step 5.1)** Open Ubuntu
|
||||
|
||||

|
||||
|
||||
**Step 5.2)** Do a sudo git clone --recurse-submodules `sudo git clone --recurse-submodules https://github.com/eried/portapack-mayhem.git`
|
||||
|
||||

|
||||
|
||||
**Step 5.3)** Give permission for the portapack-mayhem directory to your user
|
||||
1. Run command `whoami`
|
||||
2. Run command `sudo chown -R my_user:my_usergroup /home/{username}/portapack-mayhem` (Note: Replace "my_user:my_usergroup" with the return from `"whoami"`)
|
||||
|
||||

|
||||
|
||||
**Step 5.4)** Create "build" folder
|
||||
1. Run command `cd portapack-mayhem`
|
||||
2. Run command `ls` (Note how there's no build folder)
|
||||
3. Run command `mkdir build`
|
||||
4. Run command `ls` (Note how a build folder is present)
|
||||
|
||||

|
||||
|
||||
## Prerequisites for Compiling
|
||||
**Step 5.5)** Prevent `'python/r' not found` error
|
||||
1. Run command `git config --global core.autocrlf false`.
|
||||
|
||||
Or omit the `false` to see it's status.
|
||||
|
||||

|
||||
|
||||
## Compile
|
||||
**Step 5.6)**
|
||||
|
||||
1. Run command `docker build -t portapack-dev -f dockerfile-nogit .`
|
||||
2. Run command `docker run -it -v ~/portapack-mayhem:/havoc portapack-dev`
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
### Duration of the first compiling / building phase
|
||||
On my system it took 8 minutes, and 43 seconds to complete, this would vary based on your system's hardware and configurations
|
||||
|
||||

|
||||
|
||||
### Duration of the second compiling / building phase
|
||||
On the second compile, I made changes on the "ui_geomap.cpp" & "ui_geomap.hpp". These were no more that 25 lines of changes made collectively. And this was compiled in 3 seconds on my system.
|
||||
|
||||

|
||||
|
Loading…
x
Reference in New Issue
Block a user