Results 1 to 3 of 3

Thread: A question about QT's application with QT's Library and Dlls.

  1. #1
    Join Date
    Feb 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question A question about QT's application with QT's Library and Dlls.

    Hello all,
    I have a question.
    How can I move a QT's program to a system,which has not installed QT framework? I know that followed dlls must be copied together with my EXE to that system.

    QtGui4.dll
    QtCore4.dll
    mingwm10.dll

    However my problem is it,how can I write xxx.pro,if I move these dlls in relativ directory of my EXE.

    c:\my_program\
    xxx.exe
    lib
    |----QtGui4.dll
    |----QtCore4.dll
    |----mingwm10.dll
    |----others.....
    .....

    On windows XP home, gcc/g++ ,qt4,2,1
    Thank you!

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A question about QT's application with QT's Library and Dlls.

    Will void QCoreApplication::setLibraryPaths ( const QStringList & paths ) be of use to you ??

  3. #3
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A question about QT's application with QT's Library and Dlls.

    The Application xxx.exe requires these dlls inorder to run. So these must be in the path or in the same folder where xxx.exe is placed. Now if you wnat ot have these libs in a lib subfolder. then you will have to add the path of the subfolder to the PATH environment variable.

    Will void QCoreApplication::setLibraryPaths ( const QStringList & paths ) be of use to you ??
    Not at all, Since the application has to run in order to call this .
    We can't solve problems by using the same kind of thinking we used when we created them

Similar Threads

  1. MinGW Windows Library Search Path
    By zztop in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2006, 15:18

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.