Results 1 to 5 of 5

Thread: Problem while using Qt v4.6.3

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Problem while using Qt v4.6.3

    Hi,

    I've installed Qt everywhere 4.6.3

    Follow my configuration :

    - PC is with ubuntu 10.4
    - the target is with linux kernel 2.6.24
    - Cpu : arm atsam9263
    - GCC toochain is : arm-linux-gcc-4.3.2

    - Compiler optimization had been desactived g++.conf :QMAKE_CFLAGS_RELEASE += -O0

    - qmake.conf is as follow

    include(../../common/g++.conf)
    include(../../common/linux.conf)
    include(../../common/qws.conf)

    TOOLS_BIN = /usr/local/arm/4.3.2/bin

    # modifications to g++.conf
    QMAKE_CC = $$TOOLS_BIN/arm-none-linux-gnueabi-gcc
    QMAKE_CXX = $$TOOLS_BIN/arm-none-linux-gnueabi-g++
    QMAKE_LINK = $$TOOLS_BIN/arm-none-linux-gnueabi-g++
    QMAKE_LINK_SHLIB = $$TOOLS_BIN/arm-none-linux-gnueabi-g++

    # modifications to linux.conf
    QMAKE_AR = $$TOOLS_BIN/arm-none-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = $$TOOLS_BIN/arm-none-linux-gnueabi-objcopy
    QMAKE_RANLIB = $$TOOLS_BIN/arm-none-linux-gnueabi-ranlib

    # To include ts-lib
    QMAKE_INCDIR += /usr/local/tslib/include
    QMAKE_LIBDIR += /usr/local/tslib/lib

    QMAKE_LFLAGS += -Wl,-rpath-link=/usr/local/tslib/lib

    load(qt_config)

    - Installation of Qt everywhere 4.6.3 run without errors : make and make install

    - I copy one of the Qt binary example application in th target : hello
    But when i try to run the application i have a message " hello not found"

    ~ $ ./hello
    -sh: ./hello: not found

    Even if i can see the binary hello

    ~ $ ls -l hello
    -rwxrwxrwx 1 root root 5047 Jan 1 00:01 hello


    Please could some one help me

    Thanks

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem while using Qt v4.6.3

    What does

    $ file ./hello

    say? I think the binary has not been crosscompiled.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Problem while using Qt v4.6.3

    yes Hello has been crosscopiled
    and when you test the file ( file hello) the résult is :
    "32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU 2.6.14, not stripped"

    Thanks

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem while using Qt v4.6.3

    Is your application linked to any shared library? If yes, try to check the existence of its dependencies. I remember seeing this not obvious error with my non-Qt app some time ago, but i don't remember the solution, sorry.
    I'm a rebel in the S.D.G.

  5. #5
    Join Date
    Jan 2010
    Posts
    18
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Problem while using Qt v4.6.3

    Question 1. Are the Qt libs installed on the target?
    Question 2. Have you tried launching the program the following way?:
    ./hello -qws

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
  •  
Qt is a trademark of The Qt Company.