Results 1 to 5 of 5

Thread: How to port windows app to linux

  1. #1
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default How to port windows app to linux

    Hi ,
    I am working on QT windows(MSVS IDE) from last one year.Now i need to port my windows application to linux .I am new to both linux and eclipse environments.
    So please suggest me to how to port my QT windows application to linux and please help me how to work QT on eclipse IDE in linux.(I am new to linux and eclipse).
    So plese Help me by suggesting how to work out.

    regards,
    sudheer.

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to port windows app to linux

    Porting of your app depends on what kind of app you have. It is hard to tell without knowing how many system-specific things you are using there.

    As for Eclipse integration , then see this.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: How to port windows app to linux

    Hi,
    thanks for your quick reply.I would like to know how to port a basic QT window app to linux as I already informed that I am new to QT in linux ,I even dont know how to compile the project in Linux enviroment , which was already developed on MSVS. And coming to type of app I would like to port the gui app in which I do mostly the database operations( I mean connectiong to sqlite and creating tables and updating data).
    So please suggestme to get out of this problem.


    Regards,
    Sudheer.

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to port windows app to linux

    1. Copy your project to Linux
    2. Install eclipse and integration (see link above)
    3. Run eclipse and create (i think there should be 'import project' option) project
    4. Run build from eclipse.

    I think this is the best solution for you
    I'm a rebel in the S.D.G.

  5. #5
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to port windows app to linux

    I'm not sure if you have any .pro file for your project when you develop under MSVC so find the suitable option in MSVC Qt menu or use the :
    Qt Code:
    1. qmake -project
    To copy to clipboard, switch view to plain text mode 
    command in your project directory.
    When you have your code and the .pro file, you can use in the (almost) same way on any platform supported by Qt. You need to run a console (terminal) and change directory to your project dir with cd command and then type:
    Qt Code:
    1. qmake
    To copy to clipboard, switch view to plain text mode 
    when it finish (quite fast :]) type:
    Qt Code:
    1. make
    To copy to clipboard, switch view to plain text mode 
    and then you have your app built :]
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. Port Shared Library from Linux to Windows
    By calh1578 in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2009, 18:14
  2. Linux -> Windows port issue (signals)
    By robertogoberto in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2009, 07:44
  3. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 11:27
  4. Replies: 5
    Last Post: 15th January 2009, 09:03
  5. QPalette works differently on windows and linux
    By babu198649 in forum Newbie
    Replies: 3
    Last Post: 6th March 2008, 07:27

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.