PINE64
how to build project from cmakefiles ? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134)
+--- Forum: General Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=135)
+--- Thread: how to build project from cmakefiles ? (/showthread.php?tid=10288)

Pages: 1 2


how to build project from cmakefiles ? - pratyush049 - 06-17-2020

hello,
can you share how to get started with pinetime, building project and flashing. Here am not able to create the project in segger for pinetime and how bootloader and mynewt works? is there any video to know the process of building and flashing it to pinetime?
thankyou


RE: how to build project from cmakefiles ? - danielt - 06-17-2020

There's a wide variety of OS projects for PineTime (see https://wiki.pine64.org/index.php/PineTime#Development_efforts ). Which one are you trying to run?


RE: how to build project from cmakefiles ? - pratyush049 - 06-17-2020

(06-17-2020, 04:45 AM)danielt Wrote: There's a wide variety of OS projects for PineTime (see https://wiki.pine64.org/index.php/PineTime#Development_efforts ). Which one are you trying to run?
I want to try wasp os . i followed your link https://github.com/daniel-thompson/wasp-os but i cant use make command showing " 'make' is not recognized as an internal or external command, operable program or batch file."

thank you for giving your valuable time.


RE: how to build project from cmakefiles ? - danielt - 06-17-2020

(06-17-2020, 06:20 AM)pratyush049 Wrote:
(06-17-2020, 04:45 AM)danielt Wrote: There's a wide variety of OS projects for PineTime (see https://wiki.pine64.org/index.php/PineTime#Development_efforts ). Which one are you trying to run?
I want to try wasp os . i followed your link https://github.com/daniel-thompson/wasp-os but i cant use make command showing " 'make' is not recognized as an internal or external command, operable program or batch file."

thank you for giving your valuable time.

I don't know if anybody has ever tried building wasp-os on Windows. I have tested building it in both Debian and Fedora so I'd expect it to be easy to build on most GNU/Linux systems but I've never tried on anything else.

Note that there is a binary release that can be used by people who do not have access to a suitable build machine: https://github.com/daniel-thompson/wasp-os/releases

The other resource you will need is https://wiki.pine64.org/index.php/Reprogramming_the_PineTime which shows how to unlock the device (which which permanently disable the test firmware that comes pre-programmed on the device) and load a new firmware. In the case of wasp-os the file you need to install is called bootloader.hex .


OS issue - pratyush049 - 06-20-2020

Sir,
can you suggest simple OS for pine time, easy to program and easy to do customization. if you can share the links and references will be grateful to you.


RE: OS issue - wibble - 06-21-2020

(06-20-2020, 03:32 AM)pratyush049 Wrote: Sir,
can you suggest simple OS for pine time, easy to program and easy to do customization. if you can share the links and references will be grateful to you.
Wasp-os is probably the easiest and best documented in general at the moment. That page has links to the related documentation. Having said that, depending on your background and experience, and possibly whether you're a Windows, Mac or Linux user, you may find one of the others easier if less well documented. Most of them are listed in the wiki. @lupyuen has a series of Medium posts that are worth reading too, and include use of VSCode for programming and debugging the PineTime from any of Windows, Mac and Linux as well as using the Raspberry Pi as the programming and debugging interface.


RE: OS issue - VMMainFrame - 06-21-2020

(06-20-2020, 03:32 AM)pratyush049 Wrote: Sir,
can you suggest simple OS for pine time, easy to program and easy to do customization. if you can share the links and references will be grateful to you.

I think Wasp-OS is a good starting place.  You don't even need a Pinetime watch, it has a simulator.  You need a Linux system that fits the prerequisites (Debian buster does).  Follow the instructions and you can do testing on the simulator very easily and you don't have to worry about unlocking the watch or flashing the bootloader etc.  There are several sample apps supplied, written in Python.  Instructions are here:

https://wasp-os.readthedocs.io/en/latest/

Hugh


RE: OS issue - pratyush049 - 06-23-2020

i am getting issue in build as mention below:-

IOError: [Errno 2] No such file or directory: 'wasp/boards/pinetime/watch.py.in'

make: *** [Makefile:8: wasp/boards/pinetime/watch.py] Error 1


file is present inside the folder but not detecting.
Thank you for your valuable time.


RE: OS issue - danielt - 06-23-2020

(06-23-2020, 01:49 AM)pratyush049 Wrote: i am getting issue in build as mention below:-

IOError: [Errno 2] No such file or directory: 'wasp/boards/pinetime/watch.py.in'

make: *** [Makefile:8: wasp/boards/pinetime/watch.py] Error 1


file is present inside the folder but not detecting.
Thank you for your valuable time.

Apologies. This is my fault... a change at the weekend that broke fresh builds (but not my own test builds). Thanks for reporting the problem. It should now be fixed. Try running git pull and try the build again.


OS simulation issue - pratyush049 - 06-24-2020

Sir,
i got a error while using simulator of wasp os as mention below.

raise UnsupportedError(pixels2d, "numpy module could not be loaded")

sdl2.ext.compat.UnsupportedError: 'numpy module could not be loaded'


can u share any reference or any help to get through this. thankyou for your valuable time.