Results 1 to 20 of 33

Thread: Devastating Deployment Issues

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Devastating Deployment Issues

    no i am not. i am not sure about anything regarding deployment

    How can I check this / undo my mistake?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Devastating Deployment Issues

    It is difficult because I cannot see your machine and do not have a VS2010 or 2012 install.

    Exactly which version of Qt have you downloaded and installed?
    What directories do you have in your Qt install directory?
    Is there more than one Qt5Widgets.dll on your machine (other than the one in your deployment folder)? Which paths?

  3. The following user says thank you to ChrisW67 for this useful post:

    xtlc (11th November 2013)

  4. #3
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Devastating Deployment Issues

    Ok I will try to bring all the intel together

    I have installed QT 5.1.0 in c:\5.1.0

    Here is a screnie of the Visual Studio components:
    msvs.jpg
    The Screenie of the QT5 dir:
    qt5dir.PNG
    The QT5Widgets.dll's:
    qt5widgets.jpg

    Thx for your help!

  5. The following user says thank you to xtlc for this useful post:


  6. #4
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Devastating Deployment Issues

    Anyone else some ideas please?

  7. The following user says thank you to xtlc for this useful post:


  8. #5
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Devastating Deployment Issues

    pretty please?!

  9. The following user says thank you to xtlc for this useful post:


  10. #6
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Devastating Deployment Issues

    Dependency Walker now shows these three Files missing:

    API-MS-WIN-CORE-SHUTDOWN-L1-1-1.DLL
    EXT-MS-WIN-NTUSER-UICONTEXT-EXT-L1-1-0.DLL
    IESHIMS.DLL

    Shall I put them in the deployment dir or not?

    I still have no idea what to do with these red marked lines:
    depends23.jpg

  11. The following user says thank you to xtlc for this useful post:


  12. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Devastating Deployment Issues

    I will try to put together a blow-by-blow in the morning when I get a suitable Windows machine built up.

  13. The following 2 users say thank you to ChrisW67 for this useful post:

    xtlc (20th November 2013)

  14. #8
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Devastating Deployment Issues

    OK. I will go through an entire build step by step. I have use the command prompt so I can be precise about what is copied, from where, and it is copy-n-paste ready.

    I have the following:
    • A fresh Windows 7 machine
    • A fresh Windows SDK 7.1 install. This has the same compilers as VS2010, so you will have to substitute 2012 everywhere you see 2010.
    • A fresh install of Qt 5.1.1 using the online installer. This is a 32-bit ANGLE build in the default, C:\Qt, folder.

    I created a test folder and placed two test files in it.
    test.pro:
    Qt Code:
    1. TEMPLATE = app
    2. TARGET = test
    3. INCLUDEPATH += .
    4. QT += widgets
    5. # Input
    6. SOURCES += main.cpp
    To copy to clipboard, switch view to plain text mode 
    main.cpp:
    Qt Code:
    1. #include <QApplication>
    2. #include <QWidget>
    3.  
    4. int main(int argc, char **argv)
    5. {
    6. QApplication app(argc, argv);
    7. w.show();
    8. return app.exec();
    9. }
    To copy to clipboard, switch view to plain text mode 
    From the Start menu, All Programs, Qt, 5.1.1, "MSVC 2010" launch "Qt 5.1.1 for Desktop (MSVC 2010)"
    From the command prompt run:
    Qt Code:
    1. "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\SetEnv.cmd" /x86 /release
    To copy to clipboard, switch view to plain text mode 
    (This path may differ depending on how you got your C++ compiler. The batch file may be called vcvarsall and may live under a Visual Studio folder.)
    Then build and test the program which should launch a single empty window:
    Qt Code:
    1. qmake CONFIG+=release
    2. nmake
    3. release\test.exe
    To copy to clipboard, switch view to plain text mode 
    Check that the release\test.exe program does not run if double-clicked from Windows Explorer.
    Now, back in the command prompt:
    Qt Code:
    1. mkdir deploy
    2. xcopy release\test.exe deploy
    3.  
    4. xcopy c:\Qt\5.1.1\msvc2010\bin\Qt5Core.dll deploy
    5. xcopy c:\Qt\5.1.1\msvc2010\bin\Qt5Gui.dll deploy
    6. xcopy c:\Qt\5.1.1\msvc2010\bin\Qt5Widgets.dll deploy
    7.  
    8. xcopy c:\Qt\5.1.1\msvc2010\bin\libEGL.dll deploy
    9. xcopy c:\Qt\5.1.1\msvc2010\bin\libGLESv2.dll deploy
    10. xcopy c:\Qt\5.1.1\msvc2010\bin\D3DCompiler_43.dll deploy
    11.  
    12. xcopy c:\Qt\5.1.1\msvc2010\bin\icudt51.dll deploy
    13. xcopy c:\Qt\5.1.1\msvc2010\bin\icuin51.dll deploy
    14. xcopy c:\Qt\5.1.1\msvc2010\bin\icuuc51.dll deploy
    15.  
    16. mkdir deploy\platforms
    17. xcopy c:\Qt\5.1.1\msvc2010\platforms\qwindows.dll deploy\platforms
    To copy to clipboard, switch view to plain text mode 
    Check that the "deploy\test.exe" program does run if double-clicked from Windows Explorer on the developer machine.

    Back in the command prompt:
    Qt Code:
    1. xcopy c:"\Program Files\Microsoft SDKs\Windows\v7.1\Redist\VC\vcredist_x86.exe" deploy
    To copy to clipboard, switch view to plain text mode 
    This path may be different on your machine: just find the VC redistributable that matches your compiler in the Windows SDK or Visual Studio folders.

    Copy the "deploy" folder including subdirectory to another non-dev machine.
    Run the "deploy\vcredist_x86.exe" on the target machine to install the VC runtime. (This exe is not required again after this)
    Check that the "deploy\test.exe" program does run if double-clicked from Windows Explorer on the non-dev machine.
    Last edited by ChrisW67; 20th November 2013 at 21:41. Reason: Pressed submit prematurely

  15. The following user says thank you to ChrisW67 for this useful post:


  16. #9
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Devastating Deployment Issues

    Thank you very much. I will try this tomorrow first thing in the morning, when the coffeine still does its job.

  17. The following user says thank you to xtlc for this useful post:


  18. #10
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Devastating Deployment Issues

    My PC is a win8, I already have some troubles in an early stage

    Here is my *.pro file:
    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2013-07-25T11:53:23
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui\
    8. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
    9.  
    10. TARGET = GUI
    11. TEMPLATE = app
    12.  
    13. include(qextserialport-1.2rc\src\qextserialport.pri)
    14.  
    15. SOURCES += main.cpp\
    16. mainwindow.cpp \
    17. protokoll.cpp \
    18. multireturn.cpp \
    19. qcustomplot.cpp
    20.  
    21. HEADERS += mainwindow.h \
    22. protokoll.h \
    23. multireturn.h \
    24. qcustomplot.h
    25.  
    26. FORMS += mainwindow.ui
    27. DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
    To copy to clipboard, switch view to plain text mode 
    Looks similar to yours ...

    But I dont have your path - instead I could offer:

    Qt Code:
    1. "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\"
    To copy to clipboard, switch view to plain text mode 
    but in this directory, there is only a "NETFX 4.0 Tools" folder and no "SetEnv.cmd" in it - or on any other part on the HDD What shall I do now? I found a "SetEnv.c" tough.

  19. The following user says thank you to xtlc for this useful post:


  20. #11
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Devastating Deployment Issues

    Microsoft, in their wisdom, removed the native compiler (cl.exe, link.exe and friends) from the Windows 8 SDK. They are part of Microsoft Visual Studio though.
    Building on the Command Line
    Setting the Path and Environment Variables for Command-Line Builds
    The environment setting scripts is "vcvars32.bat" according to the docs above.

    If it is all too difficult to build from the command line you can use Qt Creator or VS to build my test project in release mode and continue from the command prompt.

  21. The following user says thank you to ChrisW67 for this useful post:


  22. #12
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Devastating Deployment Issues

    I did the "Setting the Path and Environment Variables for CMD Line Builds" - altough I tried the 64Bit version: http://msdn.microsoft.com/en-us/libr...(v=vs.110).apx - so I executed VCVARSALL with no argument (so my output should become a 32Bit exe, right?)


    Added after 17 minutes:


    If I now do the cmd thingy thing:

    Qt Code:
    1. c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>nmake "c:\Users\verena\De
    2. sktop\build-GUI-Desktop_Qt_5_1_0_MSVC2012_64bit-Release\Makefile"
    3.  
    4. Microsoft (R) Program Maintenance Utility, Version 11.00.50727.1
    5. Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
    6.  
    7. ""c:\Users\verena\Desktop\build-GUI-Desktop_Qt_5_1_0_MSVC2012_
    8. 64bit-Release\Makefile"" ist aktuell
    To copy to clipboard, switch view to plain text mode 
    "aktuell" means "up to date".

    So if I then do the xcopy thing in my deployment folder and double click it -> nothing happens. I dont understand why this is such a big thing to do. I want to spend my time coding, not wondering what I do to bring my program to run. Thats something I would feel a SDK should take care of. I am obviously missing sth here... what is it?
    Last edited by xtlc; 25th November 2013 at 23:50.

  23. The following user says thank you to xtlc for this useful post:


Similar Threads

  1. !!!! problem deployment of a Mac
    By eric_vi in forum Installation and Deployment
    Replies: 0
    Last Post: 21st May 2010, 15:38
  2. A different deployment technique QT. Is it the right way of deployment?
    By Tarun in forum Installation and Deployment
    Replies: 1
    Last Post: 15th February 2010, 14:45
  3. deployment size issues, please help
    By udit in forum Installation and Deployment
    Replies: 4
    Last Post: 17th August 2009, 09:32
  4. Qt 4.3: Deployment on MAC
    By Angelo Moriconi in forum Installation and Deployment
    Replies: 0
    Last Post: 23rd July 2007, 12:03
  5. deployment of a dll using qt
    By mandal in forum Installation and Deployment
    Replies: 1
    Last Post: 14th March 2007, 15:35

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.