Replies: 1 comment 2 replies
-
I don't think you're doing anything wrong, since I've already observed this behavior. I think this is cause by the way the file version.h is generated by CMake. It looks like CMake does not re-generate it when the version of the project was changed. So InfiniTime builds the new code with an un-changed Version.h file and thus still displays the old version. There must be a way to fix this in CMake, but I haven't tried to figure that out yet. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment I am building Infinitime using the docker file that you provide (thank you - this saved me working out what was wrong with my local build environment!).
It seems to build ok and I can flash it ok with GadgetBridge on Android, but I am seeing strange behaviour if I modify the code, increment the version number in CMakeLists.txt and re-run the build.
What I see is it builds a pinetime-mcuboot-dfu-x.y.z.zip file as you would expect for the new version, but when I flash it onto the device it appears to be the old version (the about screen shows the old version number and build date/time).
If I delete the build folder and re-run the build from scratch, it works as expected (but of course takes quite a lot longer to run because it has to compile everything).
To start with I thought I had made a mistake and had not copied the correct file onto my phone to flash using GadgetBridge, but it seems to be quite repeatable - I see issues if I re-run build on top of a previous build, but it works as expected if I run it from scratch.
Am I doing something wrong?
Thanks, Graham.
Beta Was this translation helpful? Give feedback.
All reactions