melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.23k stars 536 forks source link

Termux support #1274

Open strikersix23 opened 2 years ago

strikersix23 commented 2 years ago

Termux is an android linux compatible terminal emulater that has x11 support as well as qt5/ gtk/ mesa. The only issue I hace is when compiling teakra, it hangs then crashes, I am on aarch64, I know there is already melonds for android but I like the Linux/pc version

Screenshot_20211129-113112_Termux

That is my system info

nadiaholmquist commented 2 years ago

You're probably running out of memory, that one file from teakra not only takes a long time to compile, but also a lot of RAM.

strikersix23 commented 2 years ago

How much ram is required

strikersix23 commented 2 years ago

It crashed with 2.5 GB

nadiaholmquist commented 2 years ago

Building it with -j16 takes 6GB here according to macOS's activity monitor. If you're building with -j, try not doing that to run fewer processes in parallel and cut down the memory usage.

strikersix23 commented 2 years ago

Well I only have max of 8 threads, I have an cpu with 6 octa cores I only reserve 6 threads on windows it takes 3gb of ram at with make -j 2

strikersix23 commented 2 years ago

I already trued before it crashed even harder I'm gonna reset the devenv if I wanted to capture the error from make what would you recommend, I should also point out the compiler is clang 13

strikersix23 commented 2 years ago

It hangs and crashes here on this file teakra/disassembler.cpp

strikersix23 commented 2 years ago

Update here's the error

Screenshot_20211129-140940_Termux