Results 1 to 11 of 11

Thread: Generating an exe file from a Qt project on fedora

  1. #1
    Join Date
    Feb 2013
    Location
    Banzart
    Posts
    54
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Generating an exe file from a Qt project on fedora

    Hello

    I am new over here could you tell me please how to generate a .exe file from a qt project in a Fedora Os ???
    Sliver_Twist

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

    Default Re: Generating an exe file from a Qt project on fedora


  3. #3
    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: Generating an exe file from a Qt project on fedora

    Quote Originally Posted by sliverTwist View Post
    I am new over here could you tell me please how to generate a .exe file from a qt project in a Fedora Os ???
    Do you want to produce a Windows executable on a Linux machine or are you just wanting to build the project to get an executable program for the Linux environment? alrawab's suggestions are to do the former; a much more involved thing than the latter.

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

    Default Re: Generating an exe file from a Qt project on fedora

    Quote Originally Posted by ChrisW67 View Post
    Do you want to produce a Windows executable on a Linux machine or are you just wanting to build the project to get an executable program for the Linux environment? alrawab's suggestions are to do the former; a much more involved thing than the latter.
    how to build /or get excutable for Qt project != generate a .exe file from a qt project in a Fedora Os as i guess
    Last edited by alrawab; 1st March 2013 at 03:18.

  5. #5
    Join Date
    Feb 2013
    Location
    Banzart
    Posts
    54
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Generating an exe file from a Qt project on fedora

    Well the project is on fedora Os but i want to generate exe file to import it to the windows Os
    Sliver_Twist

  6. #6
    Join Date
    Feb 2013
    Location
    Banzart
    Posts
    54
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Generating an exe file from a Qt project on fedora

    Well the project is on fedora Os but i want to generate exe file to import it to the windows Os
    Sliver_Twist

  7. #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: Generating an exe file from a Qt project on fedora

    See the earlier links about how to set up a cross compiling enviroment if you really want to build Windows executable on a Linux machine. It is generally much easier to just move the Qt project source code to build enviroment on Windows and build it there.

  8. #8
    Join Date
    Feb 2013
    Location
    Banzart
    Posts
    54
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Generating an exe file from a Qt project on fedora

    I have tried that before but it didn't worked for me
    Sliver_Twist

  9. #9
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Generating an exe file from a Qt project on fedora

    You better install the same Qt version in windows machine, and open this project in Qt windows and build it. You will get the .exe, decide yourself about static/dynamic linking of libraries and dll's.

  10. #10
    Join Date
    Feb 2013
    Location
    Banzart
    Posts
    54
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Generating an exe file from a Qt project on fedora

    i am afraid that this is impossible for my situation because my project uses some libraries that are only included in an OpenSUSE OS
    i need to cross compile the project simply but the "API" for windows an mac os are missing from my cross compiler !!
    i think that's my problem
    Sliver_Twist

  11. #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: Generating an exe file from a Qt project on fedora

    If you are building an application for a Windows environment and it needs some library to function then you have to also have a Windows version of that library. That requirement is unchanged by where you are building the Windows application; on a Windows machine or cross-compiling on a Linux machine. Cross compiling for a Windows target will not make a Linux-only library magically work on Windows.

Similar Threads

  1. Replies: 2
    Last Post: 5th September 2010, 14:26
  2. Generating Xcode project does not work
    By schall_l in forum Qt Tools
    Replies: 0
    Last Post: 13th February 2010, 13:33
  3. Generating .bmp file
    By aj2903 in forum Qt Programming
    Replies: 4
    Last Post: 12th November 2009, 08:42
  4. Generating .pro files from vcproj file or CMake file
    By ramazangirgin in forum Qt Programming
    Replies: 2
    Last Post: 17th February 2009, 09:37
  5. Replies: 1
    Last Post: 14th February 2008, 07:14

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.