This feels like a FAQ, but everything I've been able to find has been either "it should all just work" or a very esoteric question that assumes I understand the basics.
I'm working on a Lua project and trying to add a single C library to it. (James's port of the SAM speech synthesizer, which already comes with its own CMake setup and example project).
After following the basic instructions, I've got a Makefile in my build directory that works to generate a .pdx in my main directory, and that works in the Simulator.
Here are my issues/confusions/frustrations:
- Make doesn't detect files have been touched when I change Lua files, so it does nothing. Do I need to explicitly run
pdcevery time I change the Lua source? (On my last mostly-Lua project with a single C function,makeseemed to recognize changes to C or to Lua and callpdcas needed, but I can't even find wherepdcis invoked in the Cmake-generated files). - Choosing Device -> Upload Game to Device from the Simulator crashes on entry, because my library isn't getting called to register my C functions. Is this to be expected, or is there a step missing from my process, and I'm only building a Simulator-only pdx?
- Is it possible to build hybrid pdx that works on both Simulator and device if I'm using C?
- How often do I need to run CMake? I'm assuming it's only generating the Makefile, so I only need to run it once unless I make a dramatic change to the number of C source files or libraries I'm including. Do I need to re-run it to generate device builds vs simulator builds, for instance?
- Is there an existing setup, or instructions on how to setup, for Nova to use a build like what I'm describing? Do I need to explicitly set up the commands for build/run?
Thanks in advance for any enlightenment,
Chuck