joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.56k stars 373 forks source link

How do I compile this on Raspberry Pi 4? #2594

Open WhyIsntTouhouBuntuRealYet opened 3 years ago

WhyIsntTouhouBuntuRealYet commented 3 years ago

I'm running TwisterOS Lite on an RPI4 8GB model. First: Which packages do I need to install first? Second: How do I compile this? And third: How can I set up an Automount for floppy disks and CDs?

Thank

rderooy commented 3 years ago

Please have a look at https://github.com/joncampbell123/dosbox-x/blob/master/README.source-code-description

WhyIsntTouhouBuntuRealYet commented 3 years ago

This is what I got after I compiled.

make[3]: Leaving directory '/home/pi/dosbox-x/src/gui' make[2]: [Makefile:529: all-recursive] Error 1 make[2]: Leaving directory '/home/pi/dosbox-x/src' make[1]: [Makefile:400: all-recursive] Error 1 make[1]: Leaving directory '/home/pi/dosbox-x' make: *** [Makefile:333: all] Error 2

Granted, I did omit 2 of the required packages because apt couldn't find them.

WhyIsntTouhouBuntuRealYet commented 3 years ago

Can anyone link a precompiled lib?

Wengier commented 3 years ago

@WhyIsntTouhouBuntuRealYet You can try the latest code, or you can try to build the DOSBox-X 0.83.14 release version. The latter is available from:

https://github.com/joncampbell123/dosbox-x/archive/refs/tags/dosbox-x-v0.83.14.tar.gz

Hope this helps.

Wengier commented 3 years ago

Alternatively, you can also run the pre-compiled Linux Flatpak package on your system. It is available from the homepage or release section.

WhyIsntTouhouBuntuRealYet commented 3 years ago

flathub doesn't work. is there a .deb package?

Wengier commented 3 years ago

@WhyIsntTouhouBuntuRealYet The header file issue is already fixed in the latest code, so you can try check out the most recent code and build again. At this time there are only RPM packages in addition to Flatpaks for Linux.

WhyIsntTouhouBuntuRealYet commented 3 years ago

Do I just do autogen and then configure?

Wengier commented 3 years ago

If you used git clone to get the repository code previously, then try git pull, then make. Hope this helps.

WhyIsntTouhouBuntuRealYet commented 3 years ago

make[3]: [Makefile:435: sdlmain.o] Error 1 make[3]: Leaving directory '/home/pi/dosbox-x-dosbox-x-v0.83.14/src/gui' make[2]: [Makefile:529: all-recursive] Error 1 make[2]: Leaving directory '/home/pi/dosbox-x-dosbox-x-v0.83.14/src' make[1]: [Makefile:400: all-recursive] Error 1 make[1]: Leaving directory '/home/pi/dosbox-x-dosbox-x-v0.83.14' make: [Makefile:333: all] Error 2

I think linux hates me.

WhyIsntTouhouBuntuRealYet commented 3 years ago

also... error: Nothing matches com.dosbox_x.DOSBox-X in remote flathub

WhyIsntTouhouBuntuRealYet commented 3 years ago

Yay, it works now. I used the .zip file instead of the Git command.

rderooy commented 3 years ago

The flatpak package is only available for 64bit x86_64 and 64bit Arm (aarch64). The Pi4 is 64bit capable but most Pi distros are unfortunately still 32bit.

What does uname -a return?

WhyIsntTouhouBuntuRealYet commented 3 years ago

Okay, now it's not compiling anymore. compilation terminated. make[4]: [Makefile:793: hardware.o] Error 1 make[4]: Leaving directory '/home/pi/dosbox-x-dosbox-x-v0.83.15/src/hardware' make[3]: [Makefile:815: all-recursive] Error 1 make[3]: Leaving directory '/home/pi/dosbox-x-dosbox-x-v0.83.15/src/hardware' make[2]: [Makefile:529: all-recursive] Error 1 make[2]: Leaving directory '/home/pi/dosbox-x-dosbox-x-v0.83.15/src' make[1]: [Makefile:400: all-recursive] Error 1 make[1]: Leaving directory '/home/pi/dosbox-x-dosbox-x-v0.83.15' make: *** [Makefile:333: all] Error 2

What does this mean? And how do I fix it?

Wengier commented 3 years ago

@WhyIsntTouhouBuntuRealYet Can you post the full error output including the line(s) causing errors? Thanks.

WhyIsntTouhouBuntuRealYet commented 3 years ago

Nevermind, I fixed it. I downloaded the dependent packages and followed MagPi's guide, and it worked. Wish I could say the same about the mouse, but that's a different matter.