Results 1 to 12 of 12

Thread: Somthing about Qt install and deploy!

  1. #1
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Somthing about Qt install and deploy!

    Hi
    I have some trouble when I install the Qt4.5.3 at WinXP and VS2008.
    at first I install the Qt at my OS like F:\Qt\4.5.3.
    then use the "configure -no-webkit" and name later.
    and all is ok.
    then, I move the fole f:\Qt\4.5.3 to another folder: d:\Qt\4.5.3.

    and now the program is: when I use the qmake to compile my program like the Qt example,
    it does not work,it tell me the infomation like this:
    "Could not find mkspescs for your MAKESPECS(win32-msvc2008) after trying:
    F:\Qt\4.5.3\mkspecs".

    then I set the env QMAKEPATH=D:\Qt\4.5.3
    I can qmake my progrpam.
    but,when I user the assistant,it tell me some infomation like this:
    "Cannot load sqlite database driver!"

    and all the ui language is english,but it should chinese.

    so, who can help me how can I deal the trouble?
    if I only have to reconfiure it and nmake it again?
    thanks all

  2. #2
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    after you install Qt, the environment will be configured based on the initial folder where Qt was installed.
    It is best to re-install to the proper location, d:\Qt\4.5.3 in your case or else you are going to have to make a lot of changes to the path, Qt creator etc.

  3. #3
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    I just find a way to make the qmake.exe go work.
    but the assistant and other I do know how to configure?

  4. #4
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    well, if you want to do it the hard way...

  5. #5
    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: Somthing about Qt install and deploy!

    How did you make the qmake work ?

    Usually paths are hard coded inside qt when u install it. With installer, patches are applied and hence you can install them to any directory.
    So as schnitzel said, uninstall and install fresh to new location.

  6. #6
    Join Date
    Sep 2009
    Posts
    72
    Thanked 10 Times in 10 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    Qt assistant and other qt applciation which uses plugins will look plugins in default path as F:\Qt\4.5.3 this path in your case.

    As you have moved your qt to different location. it is not able to load sqlite module.

    There is various ways you can do.

    Either you Reconfigure and rebuild your Qt from D: drive,

    OR Just copy d:\Qt\4.5.3\plugin to f:\Qt\4.5.3\plugin
    that will at least start your assistant and other applications

  7. #7
    Join Date
    Sep 2009
    Posts
    72
    Thanked 10 Times in 10 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Somthing about Qt install and deploy!

    Ohh ya i will also agree with aamer, you should rebuild your Qt

  8. #8
    Join Date
    Oct 2009
    Posts
    25
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    Qt Software SDK uses some other way. Installer packed with some utility (patch.exe), that changes «hard linked directories paths» to new location. I don’t know where to find it and how it works

  9. #9
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    Quote Originally Posted by aamer4yu View Post
    How did you make the qmake work ?

    Usually paths are hard coded inside qt when u install it. With installer, patches are applied and hence you can install them to any directory.
    So as schnitzel said, uninstall and install fresh to new location.
    set the env QMAKEPATH=D:\Qt\4.5.3 like this.
    them you can qmake your program.

  10. #10
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    Quote Originally Posted by aamer4yu View Post
    How did you make the qmake work ?

    Usually paths are hard coded inside qt when u install it. With installer, patches are applied and hence you can install them to any directory.
    So as schnitzel said, uninstall and install fresh to new location.
    yes,when you configure the Qt,it will generl the qtconfig.cpp and qtconfig.h . in the cpp,it will record the Qt path like F:\Qt\4.5.3.
    and when you run the qmake.exe,it will find the mkspecs path from qtconfig.cpp,but if you set the env QMKAEPATH,it will find the mkspecs path
    use the QMAKESPECS first. so I just set the env,and the qmake.exe goes ok.

  11. #11
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    Quote Originally Posted by Erik-Moscow View Post
    Qt Software SDK uses some other way. Installer packed with some utility (patch.exe), that changes «hard linked directories paths» to new location. I don’t know where to find it and how it works
    in Qt3,if I chenge the path,the Qt was also work well, shy.

    thax all

  12. #12
    Join Date
    Oct 2009
    Posts
    25
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Somthing about Qt install and deploy!

    qpatch.zip
    I found it Here is qpatch.exe and simple file list to patch.
    C:\>qpatch --help
    Usage: qpatch file.list oldQtDir newQtDir

Similar Threads

  1. Deploy on Windows XP ?
    By Anti in forum Newbie
    Replies: 3
    Last Post: 24th September 2009, 22:19
  2. how to deploy my application
    By yuvaraj.yadav in forum Installation and Deployment
    Replies: 5
    Last Post: 9th April 2009, 11:21
  3. Deploy Qt application on Mac OS X
    By giandrea77 in forum Installation and Deployment
    Replies: 3
    Last Post: 11th February 2009, 10:34
  4. Deploy app under many Mac OS and architecture
    By mourad in forum Installation and Deployment
    Replies: 2
    Last Post: 8th April 2008, 11:31
  5. How install fonts with make install
    By jiveaxe in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2008, 20:38

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.