272 views
in Platform Packages by
Hi,

I need your help about how to add one of the lib files located under RGB888 package folder within C code.

- libewgfx-m7-gcc.a,

- libewgfx-m7-r90-gcc.a

- libewgfx-m7-r180-gcc.a

- libewgfx-m7-r270-gcc.a

I want to select one of the above files as per my Screen Orientation. Normally, I install my Display module for only one orientation and remains constant.

Up to now, I do this requirement by changing this lib file from “Properties-> C/C++ Bıuild-> Lib files within MCUXpresso IDE by manual. Whatever I require, I just simply move it to the uppermost of the list in the above path for configuring lib files within IDE. However, I want to do this adding with #if #else if #endif statements within my Code. I am using one  Preprocessor Defined Symbol for my Screen Orientation variable. So , I will compile my project according to the status of this symbol value with getting the correct one of the lib files above. So how can I do that? Linker files are automatically created within MCUXpresso IDE. So not a good way to manipulate that linker file.

Thanks in advance

Burhan.

1 Answer

+1 vote
by

Hi Burhan,

please have a look to the original implementation of our Build Environments for the different NXP MCUs. There you will find an example called ScreenOrientation. It shows the usage of the different orientations within one project. For the code generation you can select the PostProcess as described in the section 'Using NXP MCUXpresso IDE':

The script selects the suitable library within the project and excludes the others.

Best regards,

Manfred.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...