CachyOS - Playdate SDK Not Found

Trying to setup the SDK on CachyOS (Arch Linux; KDE Plasma), not being able to compile or use the simulator.

What I’ve done so far:

  • Downloaded and extracted the SDK to ~/PlayDate/PlaydateSDK-3.0.3
  • Added the following line to both .profile and .bashrc:
    export PLAYDATE_SDK_PATH=’~/PlayDate/PlaydateSDK-3.0.3’
  • Installed webkit2gtk-4.1 via CachyOS Package Installer
  • Successfully ran setup.sh

Trying to compile any example (e.g. ControllerTest) results in this error:
error: Source/main.lua:2: No such file: CoreLibs/sprites

Trying to launch the Playdate Simulator brings this popup:

The Playdate SDK was not found at:
"/home/spano/PlayDate/PlaydateSDK-3.0.3/Disk".

Please make sure the SDK is configured correctly or reinstall it.

It took me a fair amount of effort to figure out how to make an environment variable, add pdc to PATH, and also figure out I needed webkit2gtk-4.1, so I'm sure there’s such a simple thing I’m missing here :smiley:

I believe you need to add the whole PlaydateSDK folder to path rather than just the bin folder. otherwise PDC wont be able to find the corelibs and simulator wont be able to find disk

Thanks for the idea, but it seems to make no difference I’m afraid.

It baffles me why there isn’t something like a setenv.sh that could work out the needed environment variables based on the script’s location. Might just make one myself if I ever get this conundrum solved :sweat_smile:

Had another go and figured it out - it seems it does NOT like the usage of ~/

Modified .bash_profile (forgot to mention that one in the initial post), .bashrc and .profile to use this instead and it works:

export PATH="$PATH:/home/spano/PlayDate/PlaydateSDK-3.0.3"

export PLAYDATE_SDK_PATH=’/home/spano/PlayDate/PlaydateSDK-3.0.3’

1 Like

Another tip for Linux users - I find that ensuring the PlayDate disk is automatically mounted makes the game upload process work, though I still need to press buttons on the PlayDate in order for the game to start.

ALSO - if you’re using Fish, make sure the path is added via using the command fish_add_path

Glad you got it figured out! I believe doing this can also be an option, if you don’t want to write absolute paths (mine is set up based on default locations for my Mac):

export PLAYDATE_SDK_PATH="$HOME/Developer/PlaydateSDK"