Howto: Get Mudlet on a raspberry pi!

Post Reply
User avatar
demonnic
Posts: 812
Joined: Sat Dec 05, 2009 3:19 pm

Howto: Get Mudlet on a raspberry pi!

Post by demonnic »

Thanks to a new compile time option we can now compile Mudlet for the raspberry pi! You won't be able to use the 3d view of the map, but the 2d view still works and it runs fine on my pi4 4gb. I intend to dig up my pi3 and give it a whirl on that one and report back as well.

I wrote up instructions, with some pictures, at https://wiki.mudlet.org/w/Compiling_Mud ... _buster.29 .

And here are some pictures of Mudlet running on the pi!

These are done at 1024x768 over VNC:

First launch!
FirstLaunch.png

Connected up to God Wars II
god-wars-2.png

And Materia Magica
materia-magica.png

Got the UI from Midnight Sun II
midnight-sun-with-gui-1024x768.png

And since that ui didn't scale well to 1024x768 I ran it using ssh -X on my local display to get a nice 1080p shot. My monitor doesn't have an hdmi port, but the pi supports 1080p natively.
raspberry-pi-1080p-midnightsun2.png

Spookee
Posts: 2
Joined: Thu Feb 17, 2022 8:58 am

Re: Howto: Get Mudlet on a raspberry pi!

Post by Spookee »

Hello,

I've just tried to install Mudlet for the first time on a Raspberry Pi 4B 2GB running Raspberry Pi OS (Bullseye).
I assume that the Linux package on the downloads page won't work for a Pi because it uses an ARM architecture but I'm still a beginner so may be mistaken.

I've got an error when trying to follow the instructions you have provided after the command:

Code: Select all

sudo luarocks install lua-yajl
The following error message is returned:

Code: Select all

Installing luarocks. org/lua-yajl-2.0-1.src.rock

Error: Could not find library file for YAJL
No file libyajl.a in /usr/lib
No file libyajl.a in /usr/lib/x86_64-linux-gnu
No file libyajl. so in /usr/lib
No file libyajl. so in /usr/lib/x86_64-linux-gnu
No file matching libyajl. so.* in /usr/lib
No file matching libyajl. so.* in /usr/lib/x86_64-linux-gnu
You may have to install YAJL in your system and/or pass YAJL_DIR or YAJL_LIBDIR to the luarocks command.
Example: luarocks install lua-yajl YAJL_DIR=/usr/local
Thanks for your time, any hints on how to proceed would be a great help as I'm totally stuck.

User avatar
demonnic
Posts: 812
Joined: Sat Dec 05, 2009 3:19 pm

Re: Howto: Get Mudlet on a raspberry pi!

Post by demonnic »

try

Code: Select all

sudo luarocks install lua-yajl YAJL_LIBDIR=/usr/lib/arm-linux-gnueabihf/ YAJL_INCDIR=/usr/include
It's looking for the 64bit binary by default. https://wiki.mudlet.org/w/Compiling_Mud ... erry_Pi_OS is I believe the most recent set of instructions for compiling on an rpi.

Spookee
Posts: 2
Joined: Thu Feb 17, 2022 8:58 am

Re: Howto: Get Mudlet on a raspberry pi!

Post by Spookee »

Hi demonnic,

Thanks for the insight into why the Bullseye version build was failing.
I've successfully got Mudlet compiled and working using the instructions for the Buster image.

Post Reply