imbushuo / NintendoSwitchPkg

WIP UEFI EDK2 Implementation for Nintendo Switch or generic Tegra210 platforms
GNU General Public License v2.0
267 stars 20 forks source link

Help! Build fail #34

Open NumanTF2 opened 7 months ago

NumanTF2 commented 7 months ago

when running the command "cp NintendoSwitchPkg/Tools/run-build.sh . && ./run-build.sh" it gives me this output below numan@DESKTOP-98K00N:~/edk2$ cp NintendoSwitchPkg/Tools/run-build.sh . && ./run-build.sh [Builder] Configure environment. Loading previous configuration from /home/numan/edk2/Conf/BuildEnv.sh Using EDK2 in-source Basetools WORKSPACE: /home/numan/edk2 EDK_TOOLS_PATH: /home/numan/edk2/BaseTools CONF_PATH: /home/numan/edk2/Conf Task: EDK2 build Use GCC at /usr/bin/aarch64-linux-gnu- to run builds. Stamp build. Build NintendoSwitchPkg for NintendoSwitch (DEBUG). Build environment: Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.35 Build start time: 22:57:07, Jan.29 2024

WORKSPACE = /home/numan/edk2 EDK_TOOLS_PATH = /home/numan/edk2/BaseTools CONF_PATH = /home/numan/edk2/Conf PYTHON_COMMAND = python3

Processing meta-data . Architecture(s) = AARCH64 Build target = DEBUG Toolchain = GCC5

Active Platform = /home/numan/edk2/NintendoSwitchPkg/NintendoSwitch.dsc

build.py... /home/numan/edk2/NintendoSwitchPkg/NintendoSwitch.dsc(...): error 4000: Instance of library class [ImagePropertiesRecordLib] is not found in [/home/numan/edk2/MdeModulePkg/Core/Dxe/DxeMain.inf] [AARCH64] consumed by module [/home/numan/edk2/MdeModulePkg/Core/Dxe/DxeMain.inf]

Write-Error: Build target NintendoSwitch failed. False

Seblat5ch commented 1 month ago

The way I got this to build was as follows:

sudo apt-get install build-essential uuid-dev iasl git python3-distutils gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu sudo apt-get update sudo apt-get install -y wget apt-transport-https software-properties-common wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo apt-get update sudo apt-get install -y powershell

Clone Repositories git clone https://github.com/fail0verflow/shofel2.git git clone https://github.com/WolfLink115/Coreboot.git --recursive git clone https://github.com/tianocore/edk2.git --recursive cd edk2 git checkout 708620d29db89d03e822b8d17dc75fbac865c6dc Clone NintendoSwitchPkg inside of the EDK2 source https://github.com/WolfLink115/NintendoSwitchPkg.git or https://github.com/imbushuo/NintendoSwitchPkg.git or https://github.com/FlawwyNX/NintendoSwitchPkg.git