Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WhyIsntTouhouBuntuRealYet opened this issue Jun 14, 2021 · 16 comments
Open

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

WhyIsntTouhouBuntuRealYet opened this issue Jun 14, 2021 · 16 comments

Comments

@WhyIsntTouhouBuntuRealYet

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
Copy link
Contributor

rderooy commented Jun 14, 2021

@WhyIsntTouhouBuntuRealYet
Copy link
Author

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
Copy link
Author

Can anyone link a precompiled lib?

@Wengier
Copy link
Collaborator

Wengier commented Jun 15, 2021

@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
Copy link
Collaborator

Wengier commented Jun 15, 2021

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

@WhyIsntTouhouBuntuRealYet
Copy link
Author

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

@Wengier
Copy link
Collaborator

Wengier commented Jun 15, 2021

@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
Copy link
Author

Do I just do autogen and then configure?

@Wengier
Copy link
Collaborator

Wengier commented Jun 15, 2021

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

@WhyIsntTouhouBuntuRealYet
Copy link
Author

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
Copy link
Author

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

@WhyIsntTouhouBuntuRealYet
Copy link
Author

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

@rderooy
Copy link
Contributor

rderooy commented Jun 15, 2021

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
Copy link
Author

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
Copy link
Collaborator

Wengier commented Jul 2, 2021

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

@WhyIsntTouhouBuntuRealYet
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants