Results 1 to 4 of 4

Thread: problem running Qt4.x binary on Qt3.x

  1. #1
    Join Date
    Feb 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11

    Unhappy problem running Qt4.x binary on Qt3.x

    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:
    Qt Code:
    1. #include <QApplication>
    2. #include <QPushButton>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7.  
    8. QPushButton hello("Hello world!");
    9. hello.resize(100, 30);
    10.  
    11. hello.show();
    12. return app.exec();
    13. }
    To copy to clipboard, switch view to plain text mode 
    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
    Last edited by jpn; 20th February 2008 at 13:31. Reason: missing [code] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem running Qt4.x binary on Qt3.x

    Qt4 isn't backward compatible with Qt3.

  3. #3
    Join Date
    Feb 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problem running Qt4.x binary on Qt3.x

    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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem running Qt4.x binary on Qt3.x

    Quote Originally Posted by raman_31181 View Post
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.