Results 1 to 8 of 8

Thread: Deploy from ubuntu QT to any PC statically?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2010
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Deploy from ubuntu QT to any PC statically?

    If will save you a lot of pain in the ar***. That's exactly what I needed to know! I already have a PC with XP(Hmm I really should update my sig). Heck I'll start downloading Qt/Win32 now.

    Just to confirm I'm gonna follow the steps under Windows in this link, which is basically put all libraries needed in the same directory with executable and voila! its dynamically linked.

    http://www.qtcentre.org/wiki/index.p...ynamic_Linking

    You mean the "program too big for memory" error? Yeah I didn't know about cross compiling then so I compiled in linux and just moved the executable over to my XP.

    I should try it out later today, so I'll post my progress(hopefully my success) then.
    Ubuntu: Eclipse Galileo with CDT and QT integration plug-in.

    Try, try and try again. Abort. Continue. Fail?

  2. #2
    Join Date
    Jan 2010
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Deploy from ubuntu QT to any PC statically?

    I installed Qt/Win32 under XP. I compiled the source and was able to run the program from Qt. I have a folder named release with an executable and some files.

    When I click the executable it asks for mingw32.dll, i put it in there then it asks for some other files, dlls. I put them in and when I run the executable it gives "The procedure entry point _Z5qFreePv could not be located in the dynamic link library QtCore4.dll."

    Using dependency walker I found out which dlls i needed, download them and copy into the folder. Yet the QTCORE4.dll and QTGUI4.dll are still red with error: system cannot find the files. I used the ones in Qt/qt/bin, in Qt/bin, even downloaded new ones. No change. Most tiring, i shall try again tomorrow.
    Ubuntu: Eclipse Galileo with CDT and QT integration plug-in.

    Try, try and try again. Abort. Continue. Fail?

  3. #3
    Join Date
    Jan 2010
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Deploy from ubuntu QT to any PC statically?

    So after using dependency walker to find what dlls i'm missing in release folder, I copied them and qtcore4.dll and qtgui4.dll into the same folder with executable. Got the error asking for qtcore4.dll and I know if it was debug mode I was to use qtcored4.dll so I just copied both to folder and it worked, dunno why.

    I compiled in release mode and got the folder release with the executable and put in the right qtcore4.dll and qtgui4.dll, the ones in Qt/qt/bin not Qt/bin, but got that error, strange. Anyway problem solved so far I just need to test it on a XP without Qt installed. Will post back when I test it later today.
    Ubuntu: Eclipse Galileo with CDT and QT integration plug-in.

    Try, try and try again. Abort. Continue. Fail?

  4. #4
    Join Date
    Jan 2010
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Deploy from ubuntu QT to any PC statically?

    It works perfectly on a XP machine without Qt. Thank you for the assist.
    Ubuntu: Eclipse Galileo with CDT and QT integration plug-in.

    Try, try and try again. Abort. Continue. Fail?

Similar Threads

  1. How to deploy?
    By aash_89 in forum Installation and Deployment
    Replies: 22
    Last Post: 23rd August 2010, 19:17
  2. How to link the DLL statically
    By Sergei Smirnov in forum Newbie
    Replies: 0
    Last Post: 21st June 2010, 17:53
  3. Qt statically with Qwt
    By edney in forum Qwt
    Replies: 1
    Last Post: 4th June 2010, 22:39
  4. building qt statically
    By eleanor in forum Installation and Deployment
    Replies: 7
    Last Post: 9th May 2009, 09:03
  5. Compile Qt for Mac statically
    By eric in forum Installation and Deployment
    Replies: 4
    Last Post: 19th August 2008, 15:45

Tags for this Thread

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.