Results 1 to 7 of 7

Thread: Help compiling into application

  1. #1
    Join Date
    May 2012
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Help compiling into application

    As part from small school project I made QT app and I just cant seem to compile as program without runing QT.

    I should hand in working program by tomorow and I would be very greatful if anyone could compile it for Linux or Windows.

    I have tried to read all the manuals, but its impossible to learn everything from 0 to fully working program in a week.

    Program files in attached zip file
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Help compiling into application

    Your application builds just fine on my machine with qmake && make. What's the problem exactly?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2012
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help compiling into application

    It wont run in ubuntu without QT installed in first place and the same with windows
    EDIT: ok - it actually runs without QT in linux, but I assumed it wont run here, because when i used project files to compile in windows, the programm could only run when QT was installed
    Last edited by Latvian; 14th May 2012 at 20:20.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Help compiling into application

    Unless you read and obey the notes about Deployment.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Latvian (14th May 2012)

  6. #5
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Cool Re: Help compiling into application

    Search these files in your computer for creating qt standalone application---->

    1. kernel32.dll
    2. libgcc_s_dw2-1.dll
    3. mingwm10.dll
    4. msvcrt.dll
    5. QtCored4.dll
    6. QtGuid4.dll
    7. QtNetworkd4.dll
    8. "Your.exe"

    These files you could only be able to find if you've qt and windows installed in your computer.
    Copy all the file into one folder.
    You will find your exe file in debug folder in your qt application project folder.
    Last edited by sonulohani; 17th May 2012 at 12:29.

  7. #6
    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: Help compiling into application

    It wont run in ubuntu
    Needing it to run on a Linux machine makes a bunch of Windows DLLs particularly useless.

  8. #7
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Lightbulb Re: Help compiling into application

    For ubuntu,

    Configure -sstatic -prefix=/Qt_Static
    make/ming32-make sub-src(it only build the source code)

    cd to your application
    PATH = link to Qt static Install folder
    ming32 -make distclean
    qmake -config release
    make/ming32-make

    After doing these process it will create a binary file i.e yourapp.bin(X11/linux) or yourapp.exe(Win32).

    Dependency Walker is also one application for creating standalone application.

Similar Threads

  1. Compiling static QT application
    By vinithr in forum Newbie
    Replies: 2
    Last Post: 20th April 2012, 15:53
  2. error while compiling qt application
    By aj2903 in forum Qt Programming
    Replies: 1
    Last Post: 28th March 2009, 12:05
  3. Compiling static application
    By Benjamin in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 23rd December 2008, 12:45
  4. Help compiling Qt4 Application
    By drake1983 in forum Newbie
    Replies: 4
    Last Post: 15th November 2007, 15:32
  5. Replies: 5
    Last Post: 26th June 2007, 14:10

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.