How to build the OpenVG 0.4.0 src libraries for Vybrid

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to build the OpenVG 0.4.0 src libraries for Vybrid

1,539 Views
ioseph_martinez
NXP Employee
NXP Employee

As you may already realized, the source code release does not have the necessary makefiles to re-build the libraries. If you need to make some changes, say on the DCU/OpenVG glue logic drivers, add support to a different display or use something else you will need to rebuild them.

You need to follow the next steps to patch you release and being able to rebuild the drivers:

1. unzip attached file

2. cp -a makefile4lib/* $release_install_dir/vf600_ovg

3. change hal/inc/gc_hal_types.h, define _DBG_EXIT_ to be empty

4. cd tests/rotation_800/build-autovf600-gnu-mqx-d

5. make cleansub allsub MQX_LOC=/media/shared/MQX402EAR1OVG040/lib/vybrid_autoevb_a5.gcc_cs


Tags (2)
0 Kudos
5 Replies

993 Views
ioseph_martinez
NXP Employee
NXP Employee

I think I was missing the file.

0 Kudos

993 Views
jimmikola
Contributor I

Hello Ioseph,

Quick question before I investigate further:  Is there a make command to build release versions of the libs?

Thx!

0 Kudos

993 Views
ioseph_martinez
NXP Employee
NXP Employee

Hi Jim,

Ability to build release is on the 0.5.0. I guess will be better use the 0.5.0

Will post in a moment my results with 0.5.0

Ioseph

0 Kudos

993 Views
jimmikola
Contributor I

I've moved to 0.5.0 and the release build works great.  I still need the command line options I mention in my original post.  Also the release build requires a release build of the BSP (which is obvious in retrospect).

0 Kudos

993 Views
jimmikola
Contributor I

Hello Ioseph,

After a deep-dive into the various makefiles I was able to build with the following command:

make cleansub allsub _HEADDEP_MK=false NBUILD_TL=0

This is after I modified tools/make/build-autovf600-gnu-mqx-d/Makefile with the following lines:

PLATFORM=$(MQX_PLATFORM)

MQX_LOC=$(MQX_ROOT)/lib/$(PLATFORM).$(MQX_CONFIG)

GCC_DIR='$(shell which $(CC) | sed 's|/bin/.*||; s|/cygdrive/\(.\)|\1:|')'

GCC_VERSION=$(shell $(CC) --version | grep ^arm | sed 's/^.* //g')

After those two changes, I was able to build and received the following libs:

libtwrvf600.a

libovg.a

libegl.a

I'll post a follow-up after trying a build and debug sessions with the libs.

0 Kudos