[Qt-interest] deploying application at linux

John McClurkin jwm at nei.nih.gov
Mon Oct 26 12:35:13 CET 2009


Yuvaraj R wrote:
> Hi All
> 
>  i tried with   following command at qt unistalled machine
> 
> ldd ./application
> 
> i got erro message like
> 
> l*ibQtGui.so.4 not found
> libQtCore.so.4 not found
> *
> 
> but i ahve placed respective libs along with application.
> 
> 
> please help me
> 
> Thanks
> 
> Yuvaraj R
> 
> On Sat, Oct 24, 2009 at 7:00 AM, Frank Mertens <frank at cyblogic.de 
> <mailto:frank at cyblogic.de>> wrote:
> 
>     Yuvaraj R wrote:
>      > I had never deployed Qt application under linux..
>      >
>      > My application i have used following module additionally
>      >
>      > 1) Qt network
>      >
>      > 2) Qt webkit
>      >
>      > 3) Qt Sql
>      >
>      > I tried with application distribution with following libs along
>     with my
>      > application
>      >
>      > 1) Application folder
>      >
>      > 1) application
>      > 2) libQtGui.so.4
>      > 3) libQtCore.so.4
>      > 4) libQtNetwok.so.4
>      > 5) libQtxml.so.4
>      > 6) libQtWebkit.so.4
>      > 7)libQtSql.so.4
>      > 8) sql drivers folder
>      >
>      > But i am getting error message ../Maxxtel could not able to run.
>      >
> 
> 
You need to install the shared libraries in a well known location such 
as /usr/lib or set the LD_LIBRARY_PATH environment variable to point to 
the location of the libraries. The approach I use is to start my 
application with a shell script that first sets any environment 
variables required by my application, then launches the application.
For example:
> #!/bin/bash
> # setenv __GL_SYNC_TO_VBLANK 1
> __GL_SYNC_TO_VBLANK=1
> #__GL_FSAA_MODE=1
> export __GL_SYNC_TO_VBLANK
> #export __GL_FSAA_MODE
> ./GLvex -r lsr-jwmrex -o 20 -Hz 60 -s 574 -w 306 -v 0




More information about the Qt-interest-old mailing list