sravansenthiln1 / ge2d-demos

Examples to use Amlogic GE2D 2D graphics platform
2 stars 0 forks source link

IONmem.h header not found #1

Open ViktorButskikh opened 1 month ago

ViktorButskikh commented 1 month ago

Hello to all

During compilation I faced with following error: aml_ge2d.c:21:10: fatal error: IONmem.h: No such file or directory 21 | #include <IONmem.h> I'll plesant for clarification which SDK should I use for compilation samples or where I can take IONmem.h

Thanks in advance

sravansenthiln1 commented 1 month ago

Hi @ViktorButskikh could you share the example you tried to compile, which OS did you compile it on and which VIM did you use ?

ViktorButskikh commented 1 month ago

I'm trying to compile Our system is VIM3 (A311D cpu)

https://github.com/sravansenthiln1/ge2d-demos/tree/main/src/ge2d-cvt (just exec make) the same error I'm getting in case of compiling library https://github.com/sravansenthiln1/ge2d-demos/tree/main/libs/libge2d

We use system Ubuntu 20.04 and linux kernel https://github.com/khadas/linux/tree/khadas-vims-4.9.y

Thank you!

ViktorButskikh commented 1 month ago

Look like I need https://github.com/numbqq/aml_libion/ Is it correct?

ViktorButskikh commented 1 month ago

Other problem ge2d_port.c:3788:62: error: ‘LAYER_MODE_NON’ undeclared (first use in this function); did you mean ‘LAYER_MODE_NONE’? 3788 | || (pge2dinfo->src_info[0].layer_mode == LAYER_MODE_NON)) { | ^~~~~~~~~~~~~~ Look like LAYER_MODE_NON should be replaced to LAYER_MODE_NONE

sravansenthiln1 commented 1 month ago

Look like I need https://github.com/numbqq/aml_libion/ Is it correct?

Yes, but this library is already packaged for use and is available in newer repos. could you try running the following commands to obtain the libraries ?

wget https://dl.khadas.com/repos/vim3-5.15/pool/main/libi/libion/libion_0.3-202311_arm64.deb
wget https://dl.khadas.com/repos/vim3-5.15/pool/main/libg/libge2d/libge2d_0.3-202311_arm64.deb
sudo dpkg -i libion_0.3-202311_arm64.deb libge2d_0.3-202311_arm64.deb

Please run this and try to execute make, I'm able to compile it just fine on my side (I am on latest 5.15 image but it should work fine for 4.9)

ViktorButskikh commented 1 month ago

Thank you for your help!