Help - Search - Members - Calendar
Full Version: Gtk And Qt Have To Work Using Same X Server..
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Open Embedded
apulu
hi all..
I am able to run gtk applications with x server and qt applications with qpe separatly..(for ARM )..
Is it possible to run both gtk and qt applications using single server..??
I am using jffs2 filesystem..
Is it possible to use X/QT jumbo package for my filesystem..??Anyone having idea abt this..??

Thank you.......
ofels
QUOTE(apulu @ Apr 19 2008, 06:19 AM) *
hi all..
I am able to run gtk applications with x server and qt applications with qpe separatly..(for ARM )..
Is it possible to run both gtk and qt applications using single server..??
I am using jffs2 filesystem..
Is it possible to use X/QT jumbo package for my filesystem..??Anyone having idea abt this..??

Thank you.......


Currently you can not run Opie and X together because Opie is using qt/e directly on the framebuffer.
I once had build Opie with Qt for X but it eg. lacks the qcop communication part and is only partialy usable.
So there is a lot of work needed before this will work.

There are several solutions available, one it so use X/Qt, the other to run Opie and X on different virtual framebuffer terminals.
Both require a lot of heap memory and personally I did not find them to be rather convenient.

Oliver
apulu
Ok..I will give a try to workout X/QT..
Right now I installed " xqt-server_0.0.9_arm.ipk " for my system..(one package from xqt-jumbo package)
When I gave strartx I got errors like this..

CODE
[root@51Board ~]# /opt/QtPalmtop/bin/startx
hostname: 51Board: Unknown host
Using authority file /root/.Xauthority
Writing authority file /root/.Xauthority

/opt/QtPalmtop/bin/Xqt: relocation error: /opt/QtPalmtop/bin/Xqt: undefined symbol: _7QString.shared_null
giving up.
xinit: No such file or directory (errno 2): unable to connect to X server
xinit: No such process (errno 3): Server error.


Can you tel me what it means..??
Why I am not able to run X server..??
My filesystem is jffs2,,This ipkg willnt work for this..??
apulu
When I tried to run only Xqt I got..

CODE
Xqt: relocation error: Xqt: undefined symbol: _7QString.shared_null


When I straced it.. i got..

CODE
[root@51Board ~]# strace Xqt
execve("/usr/bin/Xqt", ["Xqt"], [/* 18 vars */]) = 0
brk(0) = 0xdf324
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=7948, ...}) = 0
old_mmap(NULL, 7948, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40019000
close(3) = 0
open("/usr/lib/libfreetype.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\\\\\3(\1\|r\004"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=297404, ...}) = 0
old_mmap(NULL, 327884, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000
mprotect(0x40066000, 45260, PROT_NONE) = 0
old_mmap(0x40069000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x40000) = 0x40069000
close(3) = 0
open("/opt/QtPalmtop/lib/libqpe.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\\\\\3(\1\\L\40"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1458768, ...}) = 0
old_mmap(NULL, 1312132, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40072000
mprotect(0x401a0000, 75140, PROT_NONE) = 0
old_mmap(0x401a2000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x128000) = 0x401a2000
old_mmap(0x401b2000, 1412, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401b2000
close(3) = 0
open("/opt/QtPalmtop/lib/libqte.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\\\\\3(\1\X]\r04"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=3854458, ...}) = 0
old_mmap(NULL, 3307684, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401b3000
mprotect(0x404b9000, 137380, PROT_NONE) = 0
old_mmap(0x404bb000, 122880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x300000) = 0x404bb000
old_mmap(0x404d9000, 6308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x404d9000
close(3) = 0
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\\\\\3(\1\\10;\00"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=671432, ...}) = 0
old_mmap(NULL, 695972, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x404db000
mprotect(0x4057d000, 32420, PROT_NONE) = 0
old_mmap(0x40583000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa0000) = 0x40583000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\\\\\3(\1\\250}\10"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1252508, ...}) = 0
old_mmap(NULL, 1269560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40585000
mprotect(0x406ad000, 57144, PROT_NONE) = 0
old_mmap(0x406ad000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x120000) = 0x406ad000
old_mmap(0x406b9000, 7992, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x406b9000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001b000
open("/work/qtopia-1.7.0/lib/v5l/fast-mult/half/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\\\\\3(\1\\304\31\"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=9020, ...}) = 0
old_mmap(NULL, 40364, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x406bb000
mprotect(0x406bd000, 32172, PROT_NONE) = 0
old_mmap(0x406c3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x406c3000
close(3) = 0
open("/work/qtopia-1.7.0/lib/v5l/fast-mult/half/libcrypt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\\\\\3(\1\\244\n\00"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=19280, ...}) = 0
old_mmap(NULL, 210528, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x406c5000
mprotect(0x406ca000, 190048, PROT_NONE) = 0
old_mmap(0x406cd000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x406cd000
old_mmap(0x406d2000, 157280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x406d2000
close(3) = 0
open("/work/qtopia-1.7.0/lib/v5l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\\\\\3(\1\\340\22\"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=35019, ...}) = 0
old_mmap(NULL, 58472, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x406f9000
mprotect(0x40700000, 29800, PROT_NONE) = 0
old_mmap(0x40701000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x40701000
close(3) = 0
mprotect(0x406c5000, 20480, PROT_READ|PROT_WRITE) = 0
mprotect(0x406c5000, 20480, PROT_READ|PROT_EXEC) = 0
mprotect(0x406bb000, 8192, PROT_READ|PROT_WRITE) = 0
mprotect(0x406bb000, 8192, PROT_READ|PROT_EXEC) = 0
mprotect(0x40585000, 1212416, PROT_READ|PROT_WRITE) = 0
mprotect(0x40585000, 1212416, PROT_READ|PROT_EXEC) = 0
mprotect(0x404db000, 663552, PROT_READ|PROT_WRITE) = 0
mprotect(0x404db000, 663552, PROT_READ|PROT_EXEC) = 0
mprotect(0x401b3000, 3170304, PROT_READ|PROT_WRITE) = 0
mprotect(0x401b3000, 3170304, PROT_READ|PROT_EXEC) = 0
mprotect(0x40072000, 1236992, PROT_READ|PROT_WRITE) = 0
mprotect(0x40072000, 1236992, PROT_READ|PROT_EXEC) = 0
writev(2, [{"Xqt", 3}, {": ", 2}, {"relocation error", 16}, {": ", 2}, {"Xqt", 3}, {": ", 2}, {"undefined symbol: _7QString.shar"..., 39}, {"", 0}, {"", 0}, {"\n", 1}], 10Xqt: relocation error: Xqt: undefined symbol: _7QString.shared_null
) = 68
_exit(127) = ?


Can anyone help me to resolve this..
Why I am not able to run Xqt server..??

Thank you..
ofels
QUOTE(apulu @ Apr 23 2008, 08:55 AM) *
Ok..I will give a try to workout X/QT..
Right now I installed " xqt-server_0.0.9_arm.ipk " for my system..(one package from xqt-jumbo package)
When I gave strartx I got errors like this..

CODE
[root@51Board ~]# /opt/QtPalmtop/bin/startx
hostname: 51Board: Unknown host
Using authority file /root/.Xauthority
Writing authority file /root/.Xauthority

/opt/QtPalmtop/bin/Xqt: relocation error: /opt/QtPalmtop/bin/Xqt: undefined symbol: _7QString.shared_null
giving up.
xinit: No such file or directory (errno 2): unable to connect to X server
xinit: No such process (errno 3): Server error.


You XQt ipkg and your libqte have been built based on different versions. That happens if you eg. try to run a XQt package for Cacko or Sharp ROM with an Angstrom libqte.
In short terms: Your base system is not compatible with that XQt package so XQt has to be rebuild for your actual target system.

Oliver

apulu
Thank you for ur reply..
Can you tel me from where I will get XQT server source..??Do you know any links..??

Thanks again..
rolf
Sonkei distribution has a dualGUI image with Opie and X, but there are still rough edges.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.