Closed NelsonKon closed 3 years ago
Hi Nelson,
What are you trying to do? Cross-compile EGT manually? If yes, there are missing options when you call configure. Why don't you let Buildroot compiling EGT? The package is in buildroot-external-microchip.
Regards
Ludovic
HI Ludovic, Thanks for coming back.
I did that because I can't load my application program using eclipse. I got the error of unable to create primary plane. I am thinking if I can build the egt, build the application program and copy over to the SD card. Can I do it that way?
Hope to hear from you soon.
Regards, Nelson
Hi Ludovic, What configure option you meant?
Regards, Nelson
Hi Nelson, For cross compilation of egt. please refer the steps mentioned in egt/docs/src/started.md file.
Regards, Sandeep Sheriker M
Hi Sandeep, Thanks for coming back. I followed the steps in the egt/docs/src/started.md.
But I am still getting this error,
~/linux4sam/egt$ make
make all-recursive
make[1]: Entering directory '/home/nelsonkon/linux4sam/egt'
Making all in external
make[2]: Entering directory '/home/nelsonkon/linux4sam/egt/external'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/nelsonkon/linux4sam/egt/external'
Making all in src
make[2]: Entering directory '/home/nelsonkon/linux4sam/egt/src'
make all-am
make[3]: Entering directory '/home/nelsonkon/linux4sam/egt/src'
CXX libegt_la-animation.lo
In file included from ../include/egt/detail/meta.h:18,
from ../include/egt/animation.h:15,
from animation.cpp:7:
/usr/include/c++/9/memory: In function ‘void std::align(std::size_t, std::size_t, void&, std::size_t&)’:
/usr/include/c++/9/memory:121:58: error: cast from ‘void*’ to ‘uintptr_t’ {aka ‘unsigned int’} loses precision [-fpermissive]
121 | const auto intptr = reinterpret_cast
What is the error, actually?
Hi Nelson, Looks like cross compiler path is not set correctly. can you follow below step and check ?
export PATH=
./configure --prefix=/tmp/ --host=arm-buildroot-linux-gnueabihf
make
make install
Regards, Sandeep Sheriker M
Hi Sandeep, Thanks a lot for your help. It works.
But at the configure option, I don't use the --prefix. I wonder what it is.
Anyway, I manage to run make till the end without any error.
Thanks so much.
Regards, Nelson
Hi, I follow these steps, git clone --recursive https://github.com/linux4sam/egt.git cd egt ./autogen.sh ./configure When I run make, I got this error, buildroot-at91/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory 7 | # include <gnu/stubs-soft.h> | ^
~~~~~I don't know it solves the problem, but I just created an empty file called stubs-soft.h in the gnu directory. When I run make, the problem went away. Another error came in,
/usr/include/c++/9/memory: In function ‘void std::align(std::size_t, std::size_t, void&, std::size_t&)’: /usr/include/c++/9/memory:121:58: error: cast from ‘void*’ to ‘uintptr_t’ {aka ‘unsigned int’} loses precision [-fpermissive] 121 | const auto intptr = reinterpret_cast( ptr);
| ^
Do you know what went wrong?
Hope to hear from you soon.
Regards, Nelson