build qmake cross compiler for x96 settop box
-
Hi all,
I want build my project on x86 pc then run on x96-s905x set top box (this guy)
so im try to create cross compiler (qmake file as my understand) to use in qtcreator (like android for qt ^^) by build qt from source with option -platform linux-aarch64-gnu-g++ but it not work.Some one can teach me basic or give clue to make it work
some info i can give:
1, i build qt5.9 success on this box
2, use qmake built on this box to compile my project- success, it work find but too slow, so that why i need build on my pc -
@RyuShai said in build qmake cross compiler for x96 settop box:
but it not work
What does not work? Do you have more information like error messages?
-
sorry for late response
first, im try to build qt from qt-everywhere-opensource-src-5.9.2 source with configure : ./configure -prefix mydir -platform linux-aarch64-gnu-g++
then i got error :
i installed libgles2, if configure platform with "linux-g++" every thing work find. How can i resolve this sitution ?
-
@RyuShai said in build qmake cross compiler for x96 settop box:
i installed libgles2
where did you install it? On your host machine? You need it in your sysroot for the device.
-
my glesv2 : /usr/lib/libGLESv2.so
where should i put libGLESv2.so ? -
@RyuShai As I said on in your sysroot which you use to build for your target device. It doesn't help to install it on your host machine as you're building for another machine with different architecture (ARM). Your host machine is x86_64, right? If you install libs there they are for x86_64 as well - you cannot use them on ARM. Usually if you cross compile for other architectures you have a sysroot which contains all needed header files and libraries.