Hey, I was trying out the examples provided in the SDK, but I could not compile Level 1-1 among other examples, because they could not find CoreLibs/sprites, but I checked, and sprites.lua is there. I'm guessing they found other files in this directory, because I didn't get errors on those (yet), which makes this whole thing more confusing to me. This is what I punched into the command line (and what it spew out) :
sudo ./pdc /home/matthias/Downloads/PlaydateSDK-1.9.0/Examples/Level\ 1-1/Source ~/Downloads/PlaydateSDK-1.9.0/Examples/Level1-1.pdx
error: /home/matthias/Downloads/PlaydateSDK-1.9.0/Examples/Level 1-1/Source/main.lua:55: No such file: CoreLibs/sprites
I probably made a mistake here - any help is appreciated
(yes - I still have it in the Downloads Foler - I am lazy haha)
Maybe the SDK was not properly installed so it cannot find the library. CoreLibs/sprites is just Lua files that are part of the SDK so if pdc throws an error it indicates it cannot find it.
On Mac the SDK Path is usually set in ~/.Playdate/config but the installer is doing it for you. In theory you don't have to care about it.
Was just having a similar issue compiling. On Windows I needed to add the PlaydateSDK\bin\ directory to Path to use the pdc command, but the PLAYDATE_SDK_PATH Environment Variable needs to be set to the PlaydateSDK directory itself. Then I was able to compile an example game for the first time.
I'm using linux, but I'm not that great (beginner).
I've read the documentation a bit, and found both ~/.bash_profile and ~/.bashrc, so I put it (export PLAYDATE_SDK_PATH=/home/matthias/Downloads/PlaydateSDK-1.9.0/) in both files - without success. Maybe I misunderstood something there?
I would like to get a deeper understanding about the relationship between ~/.Playdate/config and the PLAYDATE_SDK_PATH environmental variable. When set, both point to the same target. I assume that either needs to be set. If that's the case, what's the order of precendence?