#Not eating till I ported DOSEMU2 to Android

1 messages · Page 1 of 1 (latest)

proud basin
#

Okay, so this dude told me that it's CPU-specific. If I really find it's too hard, I might just try to compile it statically and run it with qemu-user.

mellow dome
#

good luck o7

proud basin
#

It's always a good idea to build it on a supported platform first before trying to port it.

Ah yes, great warnings

proud basin
#

Okay, I indeed am able to compile it, but dosemu doesn't do anything interesting if I don't also compile fdpp. Gonna fix that

#

Well, Nix doesn't have fdpp as a package, so unfortunately we need to build it from source

proud basin
#

Okay, so I don't want to deal with Android NDK. I'm going to compile dosemu with cosmocc instead. We'll eventually be able to run it in Termux anyways

#

I've passed the configure stage, now porting offically starts. The first problem occurs fairly quickly:

make[2]: Entering directory '/home/rimuru/dosemu2/src/base/video'
cosmocc -c -imacros config.hh -MD -DCFLAGS_STR=" -fplan9-extensions -Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -fms-extensions -pthread -Wno-unused-result -Wcast-qual -Wwrite-strings -Wstrict-aliasing=2 -Wundef -Wno-address-of-packed-member -ggdb3 -fpie -O2   " -I../../../src/include -I../../../src/plugin/include -I/home/rimuru/dosemu2/src/base/bios/x86 -I/home/rimuru/dosemu2/src/include -I/home/rimuru/dosemu2/src/base/lib  -fplan9-extensions -Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -fms-extensions -pthread -Wno-unused-result -Wcast-qual -Wwrite-strings -Wstrict-aliasing=2 -Wundef -Wno-address-of-packed-member -ggdb3 -fpie -O2    -o text.o text.c
cosmocc: fatal error: config.hh: no such file
compilation terminated.
proud basin
#

Some progress: the compiler actually compiled something

proud basin
mellow dome
#

you still got plenty of time left

#

i think the world reccord for not eating is 60ish days iirc

#

uuuuh

#

yea just deleate this

proud basin
#

I admit that's my skill issue

mellow dome
#

lmao its fine, this stuff is hard

#

i certianly couldent do it

proud basin
#

I watched Andreas Kling's video, saw he doing porting smoothly and naively thought that I could do the same thing

mellow dome
#

yea the pros all make it look easy

#

what was your plan first? what were ya doing?

proud basin
#

this?

mellow dome
#

oh i ment how were you planning on doing it

proud basin
#

Basically compile it with cosmocc and later run the compiled binary directly in Termux

#

Cosmopolitan is a magical project done by Justine Tunney. Basically you compile your program once and the binary automatically runs on several Operating Systems. I have no idea about how it works

proud basin
mellow dome
#

nonono

#

keep trying!

#

the best way to improve your skills is to try for something just outside what you know you can do