[Qt-interest] Why all my program run with error which compiled by qtopia-phone-4.2.1?
Kermit Mei
kermit.mei at gmail.com
Wed Nov 11 06:59:49 CET 2009
Hello, I compiled qtopia-phone-4.2.1 on ubuntu9.04 with gcc/g++4.1.3.
I compile my program like this:
$ qtopiamake -project
Created Calendar.pro
$ qtopiamake
Cleaning out stale build files...
Finding project files...
1 projects found.
$ make
... (everything goes well) ...
Then I setup qvfb:
kermit at kermit-desktop:~$ qvfb
Using display 0
After that, I run my program with the argument '-qws' like this:
/****** show files ******/
$ ls
Calendar Calendar.pro dayview.h Makefile.target
calendar.cpp Calendar.pro.cache main.cpp monthview.cpp
calendar.h dayview.cpp Makefile monthview.h
/****** Errors ******/
$ ./Calendar -qws
Connected to VFB server :0: 320 x 240 x 32 113x85mm (71x71dpi)
Segmentation fault
/****** detect the file ******/
$ file Calendar
Calendar: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not
stripped
/****** find out its library ******/
$ ldd Calendar
linux-gate.so.1 => (0xb7fd3000)
libQtSvg.so.4 => /opt/qtopia/lib/libQtSvg.so.4 (0xb7f8a000)
libQtSql.so.4 => /opt/qtopia/lib/libQtSql.so.4 (0xb7f00000)
libQtXml.so.4 => /opt/qtopia/lib/libQtXml.so.4 (0xb7eb8000)
libQtGui.so.4 => /opt/qtopia/lib/libQtGui.so.4 (0xb78c8000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7894000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb781d000)
libQtNetwork.so.4 => /opt/qtopia/lib/libQtNetwork.so.4 (0xb77cd000)
libQtCore.so.4 => /opt/qtopia/lib/libQtCore.so.4 (0xb75db000)
libz.so.1 => /lib/libz.so.1 (0xb75c5000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb75c1000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb75a8000)
libqtopiabase.so.4 => /opt/qtopia/lib/libqtopiabase.so.4 (0xb74f8000)
libqtopia.so.4 => /opt/qtopia/lib/libqtopia.so.4 (0xb723d000)
libmd5.so.1 => /opt/qtopia/lib/libmd5.so.1 (0xb723a000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb714b000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7125000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7116000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb6fb3000)
/lib/ld-linux.so.2 (0xb7fd4000)
All of the executable program compiled with qtopia run with this error,
included the qtopia's example. I don't know what's wrong.
Can anyone help me,plseas?
Thank you.
Kermit Mei
More information about the Qt-interest-old
mailing list