Results 1 to 20 of 22

Thread: [URGENT]Can't run .exe outside QT5

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Location
    Tripoli Libya
    Posts
    70
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    10
    Thanked 8 Times in 8 Posts

    Default Re: [URGENT]Can't run .exe outside QT5

    to be used by multiple people.... you have to include the run time dependencies or build a static app
    add this line to your .pro
    CONFIG += static

  2. #2
    Join Date
    Jan 2013
    Posts
    15
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: [URGENT]Can't run .exe outside QT5

    Quote Originally Posted by alrawab View Post
    to be used by multiple people.... you have to include the run time dependencies or build a static app
    add this line to your .pro
    I added the line you said. My .pro is now:

    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2012-12-28T05:07:27
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui
    8. CONFIG += static
    9.  
    10. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    11.  
    12. TARGET = GraphIt
    13. TEMPLATE = app
    14.  
    15.  
    16. SOURCES += main.cpp\
    17. mainwindow.cpp \
    18. about.cpp \
    19. graph.cpp \
    20. fullgraph.cpp
    21.  
    22. HEADERS += mainwindow.h \
    23. about.h \
    24. graph.h \
    25. fullgraph.h
    26.  
    27. FORMS += mainwindow.ui \
    28. about.ui \
    29. graph.ui \
    30. fullgraph.ui
    To copy to clipboard, switch view to plain text mode 

    It still asked me for the .dll upon opening

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.