Results 1 to 6 of 6

Thread: cannot find -lQtGui -QT Beginner Help Needed

  1. #1
    Join Date
    Jul 2009
    Posts
    6
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default cannot find -lQtGui -QT Beginner Help Needed

    Hi ,
    Iam a absolute Beginner in QT and Linux .

    Iam trying to develop a sample Application which runs on ARM Processor(PXA270).
    For this i downloaded qt-sdk-linux-x86-opensource-2009.03.1 ,created a small application which has few button and Label
    It ran perfectly in Linux Machine(Fedora 9) ,

    Next thing i need is make it work in ARM Linux .


    I tried qmake,Makefile was created successfully.

    But when I run make it was showing the following:


    [nsa@WS111 s]$ qmake-qt4 -spec /usr/local/QT/qt/mkspecs/qws/linux-arm-g++ -o Makefile s.pro
    [nsa@WS111 s]$ make
    arm-linux-g++ -Wl,-O1 -o s -L/usr/lib -lQtGui -L/usr/lib -L/usr/X11R6/lib -lQtNetwork -lQtCore -lpthread
    /usr/local/arm/4.0.0/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld: skipping incompatible /usr/lib/libQtGui.so when searching for -lQtGui
    /usr/local/arm/4.0.0/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld: skipping incompatible /usr/lib/libQtGui.so when searching for -lQtGui
    /usr/local/arm/4.0.0/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld: cannot find -lQtGui
    collect2: ld returned 1 exit status
    make: *** [s] Error 1
    [nsa@WS111 s]$


    Does Cross Compatibility mean ,the code works in Windows,MAC,Linux and Embedded Linux Without any code change?

    What all steps should i do to Make my code work on ARM linux?


    Some one please guide,
    Iam stuck in this issue for past 4 days,
    Thanks ,
    nsa

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: cannot find -lQtGui -QT Beginner Help Needed

    Quote Originally Posted by nsa View Post
    Does Cross Compatibility mean ,the code works in Windows,MAC,Linux and Embedded Linux Without any code change?
    Yes, but upto an extent. Until you uses, platform specific things.

    Quote Originally Posted by nsa View Post
    What all steps should i do to Make my code work on ARM linux?
    Pls refer similar post.
    http://www.qtcentre.org/forum/f-qtop...ard-22502.html

  3. #3
    Join Date
    Jul 2009
    Posts
    6
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: cannot find -lQtGui -QT Beginner Help Needed

    Thanks for the reply,
    Iam not able to run the Application in board,

    Should i recompile the existing application in qt-embedded-free-3.3.7 environment to make it board compatible ?

    Could you please briefly explain the steps needed
    OS version is Fedora 9

    can cross compiling done from Qtcreator?

    Kindly reply,
    Thanks again
    nsa

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: cannot find -lQtGui -QT Beginner Help Needed

    Quote Originally Posted by nsa View Post
    Iam not able to run the Application in board,
    Can you compile and run any qt example on board ?

    Quote Originally Posted by nsa View Post
    Should i recompile the existing application in qt-embedded-free-3.3.7 environment to make it board compatible ?
    Yes

    Quote Originally Posted by nsa View Post
    Could you please briefly explain the steps needed
    Please refer the given post, in that, user "soumya" written the steps for setting up the development environment for ARM. In same post, you can find the steps for deploying application. This is very useful for you.

    Quote Originally Posted by nsa View Post
    can cross compiling done from Qtcreator?
    QtCreator is just IDE, and has nothing to do with cross compilation.
    And there are many posts exists for cross compilation on QtCentre.

  5. #5
    Join Date
    Jul 2009
    Posts
    6
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: cannot find -lQtGui -QT Beginner Help Needed

    Thanks Yogesh,
    I will Check the link you pasted,
    Regards,
    nsa

  6. #6
    Join Date
    Jul 2009
    Posts
    6
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: cannot find -lQtGui -QT Beginner Help Needed

    We downloaded QtEmbedded-4.5.2
    Then we followed the below steps

    Step 1:
    ./configure -embedded arm -shared -no-cups

    Step 2:

    gmake;

    The contents in the installation folder:
    are bin include lib no other folders are created.


    [root@WS111 examples]# cd /usr/local/
    [root@WS111 local]# cd Trolltech/
    [root@WS111 Trolltech]# cd QtEmbedded-4.5.2-arm/
    [root@WS111 QtEmbedded-4.5.2-arm]# ls
    bin include lib
    [root@WS111 QtEmbedded-4.5.2-arm]#

    The examples folder was not visible .
    Did i miss any intermediate steps?
    Please help
    Regards,
    nsa

Similar Threads

  1. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 09:06

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.