PDA

View Full Version : problem running Qt4.x binary on Qt3.x



raman_31181
20th February 2008, 14:09
Hello,
I have qtopia-core-opensource-src-4.3.3 installed on my development host(PC).I intend to compile code on the PC and run the same on an ARM9 board which has qt-embedded-free-3.3.4 installed.I have a sample program:

#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

QPushButton hello("Hello world!");
hello.resize(100, 30);

hello.show();
return app.exec();
}
When I compile the above program on the PC it compiles well but when I try to execute on the board I get the following error

./main: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directy
What could be the problem?Do I need to install something else on the board?
My board is running on Debain Linux and my PC on Fedora 6

Thanks in advance
Ramandeep

jacek
20th February 2008, 14:12
Qt4 isn't backward compatible with Qt3.

raman_31181
20th February 2008, 14:35
Oh thanks Jacek.But supposing I have Qt/embedded 3.3.4 installed on my board and I cannot install Qtopia 4.3.3 on the board due to space constraints.So which version should I go for on the PC side which is compatible with Qtembedded 3.3.4

Thanks,
Ramandeep

jacek
20th February 2008, 21:02
So which version should I go for on the PC side which is compatible with Qtembedded 3.3.4
Can't you install Qt/Embedded? AFAIR there's frame buffer emulator with it that allows you to test applications on a desktop.