Power & Source of Big Ideas

Qt with Neo2

Moderators: chensy, FATechsupport

Hi,

Is somebody compiling Qt applications for Neo2?

The procedure described on wiki with Qt 4.8.6 for H5 is probably obsolete
http://wiki.friendlyarm.com/wiki/index. ... LEC_Boards

The Allwinner H5 cross compiler (toolchain-a64) produces ELF32 images that don't run on Neo2 (nanopi-neo2_ubuntu-oled_4.14.0_20171297):

Code: Select all

# sudo ./QtE-Demo
./QtE-Demo: error while loading shared libraries: libts-1.0.so.0: wrong ELF class: ELFCLASS64

I wasn't able to install i386 version of that library.

The QtEmbedded-5.9.1-arch64 examples installed on that image are ELF64:

Code: Select all

# pwd
/usr/local/Trolltech/QtEmbedded-5.9.1-arch64/examples/gui/analogclock
# readelf -h analogclock | grep Class
  Class:                             ELF64

But I can't use QtEmbedded-5.9.1-arch64 because the cross compiler is not compatible with it.

Help would be appreciated. Thank you.
I managed to compile Qt-Demo example somehow (using a different toolchain and linking on the target).

Now another problem. Even with supplied pre-compiled examples, Qt programs crash when I try to press a button on the screen or when I just touch it. It's a 2.8 inch TFT display connected to SPI (http://wiki.friendlyarm.com/wiki/index. ... PI_Key_TFT).

Gdb output is not very useful:

Code: Select all

(gdb) run
Starting program: /usr/local/Trolltech/QtEmbedded-5.9.1-arch64/examples/widgets/painting/pathstroke/pathstroke
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[New Thread 0xffffb65f01d0 (LWP 819)]
[New Thread 0xffffaffff1d0 (LWP 820)]

Thread 3 "QEvdevTouchScre" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xffffaffff1d0 (LWP 820)]
0x0000ffffb6c5413c in ?? () from /lib/aarch64-linux-gnu/libc.so.6
(gdb) bt
#0  0x0000ffffb6c5413c in ?? () from /lib/aarch64-linux-gnu/libc.so.6
#1  0x0000000000000030 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

Now what?

Who is online

In total there are 15 users online :: 0 registered, 0 hidden and 15 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 15 guests