Build OpenMV from source ,but...

Discussion related to "under the hood" OpenMV topics.
Scott
Posts: 4
Joined: Sun May 05, 2019 3:24 am

Build OpenMV from source ,but...

Postby Scott » Wed Apr 08, 2020 4:08 am

hi! engineers from Openmv.

I strictly follow Linux Installation at https://github.com/openmv/openmv/wiki.

I'm sure I've used this method, "git clone -- recursive https://github.com/openmv/openmv.git".
But I met the following ERROR messages .

Code: Select all

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.

Warning: FROZEN_MPY_DIR is deprecated in favour of FROZEN_MANIFEST
MPY /home/zyf/Desktop/openmv/src/../scripts/libraries/ulinalg.py
../../py/mkrules.mk:129: recipe for target '/home/zyf/Desktop/openmv/src/build/micropython/frozen_mpy/ulinalg.mpy' failed
make[1]: ../../mpy-cross/mpy-cross: Command not found
make[1]: *** [/home/zyf/Desktop/openmv/src/build/micropython/frozen_mpy/ulinalg.mpy] Error 127
make: *** [FIRMWARE_OBJS] Error 2
Makefile:584: recipe for target 'FIRMWARE_OBJS' failed
15:41:37: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project openmv (kit: Desktop Qt 5.11.1 GCC 64bit)
When executing step "Make"
15:41:37: Elapsed time: 00:14.
Image

Can you please help?
User avatar
iabdalkader
Posts: 1180
Joined: Sun May 24, 2015 3:53 pm

Re: Build OpenMV from source ,but...

Postby iabdalkader » Wed Apr 08, 2020 7:41 am

you need to build the mpy cross compiler, cd micropython/my-cross and run make.
Scott
Posts: 4
Joined: Sun May 05, 2019 3:24 am

Re: Build OpenMV from source ,but...

Postby Scott » Thu Apr 09, 2020 8:41 pm

iabdalkader wrote:
Wed Apr 08, 2020 7:41 am
you need to build the mpy cross compiler, cd micropython/my-cross and run make.
Wow, the problem is solved. Thank you very much :D :D
tomas
Posts: 2
Joined: Wed Jun 03, 2020 3:37 pm

Re: Build OpenMV from source ,but...

Postby tomas » Wed Jun 03, 2020 3:54 pm

Hi,

I'm trying to build the firmware. I'm using Ubuntu 18.04 (WSL on W10).
I've followed all steps specified on https://github.com/openmv/openmv/blob/m ... /README.md
but the last "make" command on the "src" directory (which builds the OpenMV Cam H7 Firmware) ends with this error:
--------------------------------------------------------------------
...
CC src/flash.c
CC src/usbd_cdc.c
CC src/main.c
CC src/usbd_desc.c
CC src/qspif.c
make: python: Command not found
Makefile:617: recipe for target 'bootloader' failed
make: *** [bootloader] Error 127
--------------------------------------------------------------------

Could you help me with this error?

Thanks a lot in advance.
User avatar
kwagyeman
Posts: 4107
Joined: Sun May 24, 2015 2:10 pm

Re: Build OpenMV from source ,but...

Postby kwagyeman » Wed Jun 03, 2020 6:07 pm

Install python.

>> make: python: Command not found
Nyamekye,
tomas
Posts: 2
Joined: Wed Jun 03, 2020 3:37 pm

Re: Build OpenMV from source ,but...

Postby tomas » Thu Jun 04, 2020 2:32 am

Sorry,

I had Python 3.6.9 already installed, I thought that it was compatible...

After running "sudo apt install python" and install Python 2.7.17 it works!

Thanks

Return to “Technical Discussion”

Who is online

Users browsing this forum: kwagyeman and 6 guests