Results 1 to 6 of 6

Thread: standalone Qt .Exe

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default standalone Qt .Exe

    Hi,

    Here is my QT project release makefile:
    ################################################## ###########################
    # Makefile for building: client
    # Generated by qmake (2.01a) (Qt 4.3.0) on: lun. 23. juil. 21:15:59 2007
    # Project: client.pro
    # Template: app
    ################################################## ###########################

    ####### Compiler, tools and options

    CC = gcc
    CXX = g++
    DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NEEDS_QMAIN -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
    CFLAGS = -O2 -Wall $(DEFINES)
    CXXFLAGS = -O2 -frtti -fexceptions -mthreads -Wall $(DEFINES)
    INCPATH = -I"..\..\..\Qt\4.3.0\include\QtCore" -I"..\..\..\Qt\4.3.0\include\QtCore" -I"..\..\..\Qt\4.3.0\include\QtNetwork" -I"..\..\..\Qt\4.3.0\include\QtNetwork" -I"..\..\..\Qt\4.3.0\include\QtGui" -I"..\..\..\Qt\4.3.0\include\QtGui" -I"..\..\..\Qt\4.3.0\include" -I"..\common" -I"..\common\libpurple\include" -I"..\common\glib\include" -I"..\common\glib\include\glib" -I"..\common\glib\include\gmodule" -I"..\common\glib\include\gobject" -I"..\..\..\Qt\4.3.0\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.3.0\mkspecs\win32-g++"
    LINK = g++
    LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,windows -mthreads -Wl
    LIBS = -L"c:\dev\Qt\4.3.0\lib" -lmingw32 -lqtmain release\ZeMessenger_res.o -L../common/libpurple/lib -llibpurple -L../common/glib/lib -lglib-2.0 -lQtGui4 -lQtNetwork4 -lQtCore4
    QMAKE = c:\Dev\Qt\4.3.0\bin\qmake.exe
    IDC = c:\dev\Qt\4.3.0\bin\idc.exe
    IDL = midl
    ZIP = zip -r -9
    DEF_FILE =
    RES_FILE = release\ZeMessenger_res.o
    COPY = copy /y
    COPY_FILE = $(COPY)
    COPY_DIR = xcopy /s /q /y /i
    DEL_FILE = del
    DEL_DIR = rmdir
    MOVE = move
    CHK_DIR_EXISTS= if not exist
    MKDIR = mkdir
    INSTALL_FILE = $(COPY_FILE)
    INSTALL_PROGRAM = $(COPY_FILE)
    INSTALL_DIR = $(COPY_DIR)
    I'm compiling using mingw Gcc on windows.

    For some reason it won't work when launched on a machine where QT isn't installed.
    Is there any special flag to specify to get a fully standalone .exe ?

    Thanks.

    Mr Arnaud.
    Last edited by jacek; 24th July 2007 at 01:17. Reason: changed [code] to [quote]

Similar Threads

  1. how to make a stand alone .exe with VS
    By Masih in forum General Programming
    Replies: 1
    Last Post: 20th May 2007, 07:05
  2. How to create a standalone executable?
    By Ashish in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 15:04
  3. a C .exe doesn't read writeToStdin
    By Shlainn in forum General Programming
    Replies: 3
    Last Post: 20th September 2006, 10:51
  4. Creating a STANDALONE aplication
    By Alienxs in forum KDE Forum
    Replies: 4
    Last Post: 17th August 2006, 16:02

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.