Results 1 to 18 of 18

Thread: Deploying Qt Application under Linux

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    129

    Default Re: Deploying Qt Application under Linux

    Hi

    i referred the ldd and ld.so commands

    In Qt unstalled systems i ran the following command.

    ldd ./my application

    it gave me

    libQtCore.so.4 not fond
    libQtGui.so.4 not found

    But i have plaed both libs in my application folder.

    Now i ran ./configure -static -prefix /qt instaliton path

    then i have used make command

    Then i went ot lib of Qt .. there i have the command make install..

    still i didn't replace old libs , once i replaced and update here


    Thanks


    Yuvaraj R

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Deploying Qt Application under Linux

    As stated above, unless the application directory is contained in LD_LIBRARY_PATH, then its not going to find the libraries in the application dir. You shouldn't be messing with LD_LIBRARY_PATH either, but instead package your application so the installer will automatically install Qt if its not there already. Why include 10MB of libraries if you don't have to?

  3. #3
    Join Date
    May 2009
    Posts
    129

    Default Re: Deploying Qt Application under Linux

    Thanks for your reply

    I used libs path in my application. I got solved issues regarding qt libs

    Now new issues has been raised

    It is showing Glibc _2.4 not found


    Then i installed glibc_2.7 ,but i am getting same error.. is i have
    install same version ?

    Thanks

    Yuvaraj R

  4. #4
    Join Date
    Jun 2010
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deploying Qt Application under Linux

    Same erro here.

    I'm using Kubuntu 10.04 to develop and a fresh install of Kubuntu 8.04 to execute but it falls.

    if I use Qt static libraries:
    ./bcFinal
    ./bcFinal: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.9' not found (required by ./bcFinal)
    ./bcFinal: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by ./bcFinal)
    if I use Qt shared libraries:
    Segmentation fault.
    the command
    $ ldd ./bcFinal
    linux-gate.so.1 => (0xb7f7f000)
    libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb786d000)
    libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb76f9000)
    libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb76e0000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb75ed000)
    libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb75c8000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb75bd000)
    libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb746e000)
    libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb7458000)
    libXt.so.6 => /usr/lib/libXt.so.6 (0xb7406000)
    libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb73e3000)
    libSM.so.6 => /usr/lib/libSM.so.6 (0xb73db000)
    libICE.so.6 => /usr/lib/libICE.so.6 (0xb73c3000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb73ae000)
    libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb73a9000)
    librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb739f000)
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb72ee000)
    libXi.so.6 => /usr/lib/libXi.so.6 (0xb72e6000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb72de000)
    libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb72d8000)
    libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb72d3000)
    libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb72c9000)
    libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb72c6000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7259000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb722f000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb7221000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb713a000)
    libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7135000)
    /lib/ld-linux.so.2 (0xb7f80000)
    libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb710e000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb70ed000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb70ea000)
    libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb70e7000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb70cf000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb70ca000)
    What I can do to solve this ?
    Last edited by MaikoID; 30th June 2010 at 20:02.

  5. #5
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Deploying Qt Application under Linux

    Linux, like all operating systems, does NOT guarantee backward compatibility. If you developed under Kubuntu 10.04, your app is NOT going to run under Kubuntu 8.04 or any other version earlier than 10.04. Your application fails because the C runtime version it was built against doesn't exist on your test machine.

  6. #6
    Join Date
    Jun 2010
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deploying Qt Application under Linux

    Thanks for the answer.

    What Qt in static mode can I install in kubuntu 8.04 to compile and excute my app ? Qt 3 or Qt 4 ? Where can I download ?

  7. #7
    Join Date
    Jun 2010
    Posts
    102
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Deploying Qt Application under Linux

    which libs gcc download ?, can you help me
    Contact: Skype: sonnh89
    Yahoo: nhs_0702@yahoo.com

    Liên hệ SKype: sonnh89

Similar Threads

  1. Deploying Qt 4.5.1 Application on RHEL 5.. Pls Help
    By swamyonline in forum Installation and Deployment
    Replies: 0
    Last Post: 28th June 2009, 11:43
  2. Deploying application on Linux machine without Qt
    By will49 in forum Installation and Deployment
    Replies: 2
    Last Post: 10th July 2008, 22:41
  3. Deploying App on Linux
    By janus in forum Installation and Deployment
    Replies: 5
    Last Post: 6th May 2008, 21:18
  4. Deploying Qt 4.2 Application on Mac 10.3.5?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 0
    Last Post: 11th May 2007, 11:33
  5. Replies: 2
    Last Post: 12th January 2007, 11:19

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.