are you linking the qtgui library in your project?
are you linking the qtgui library in your project?
no I am not linking qtgui library in my project. Is it required ??
I have cross compiled and placed the qt library in my file system. when i run its getting the shared Library information from that lib. I have copied core.so qui.so and network.so files.
You suggestion would be a great help for me.
QApplication is in qtgui library.. so you need that...
nrabara (25th August 2009)
Mr Death, I am using arm-linux-gcc for cross compiling and its support rpath, so i dont need to set LD_LIBRARY_PATH ??
When i run qt application its able to get shared lib info....
but show segmentation fault while creating QApplication object....
if it dont get the shared lib info, it wont create QCoreApplication object also..
I am wrong? or missing something ??
your suggestion would be great help for me..
Hi,
If you program crash when you try to use QApplication, it can be because you don't have the appropriate lib in your target.
Qt works with modules, GUI module and Core module are two of them.
QCoreApplication is part of the Core module (you need the libQtCore.so in your target).
QApplication is part of the GUI module ( you need the libQtGui.so in your target).
Of course you can check for dependency with ldd command.
QApplication is for app with GUI.
QCoreApplication if for app without GUI.
So, use the one that fit for your project.
nrabara (25th August 2009)
I have installed libQtGui.so , libQtCore.so and libQtNetwork.so files in my target board.
I have back traced with arm-linux-strace utility, its showing segmentation fault while trying to mmap() for fb0.;.
It not a problem with directory path... I have traced out that qt application is able to find libQtGui.so , libQtCore.so and libQtNetwork.so.
my
libQtGui.so = 11 MB
libQtCore.so = 3.2 MB and
libQtNetwork.so = 1.1 MB
I have 32 MB of FLASH and 32MB SDRAM. whether it's problem with memory??
Bookmarks