Results 1 to 9 of 9

Thread: From Visual Studio 2005 to KDevelop

  1. #1
    Join Date
    Apr 2008
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default From Visual Studio 2005 to KDevelop

    Hello,

    I need to compile my Qt4 Visual Studio 2005 project in Linux KDevelop environment. What steps should I take to achive that?

  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: From Visual Studio 2005 to KDevelop

    call qmake && make from the command line. KDevelop is not required for that. If you insist on using KDevelop, use "Import project" menu entry from KDevelop's project menu and find your project file. If you don't have a qmake project file, you'll have to generate it using qmake -project or write the project file yourself.

  3. #3
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: From Visual Studio 2005 to KDevelop

    I'd recommend writing your .pro files manually as the integration module does a bodgy job, well the way it adds the references to libs differs and doesn't always work correctly.

  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: From Visual Studio 2005 to KDevelop

    I'd recommend not using the VS integration module at all

  5. #5
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: From Visual Studio 2005 to KDevelop

    Why? I find the integration to be a good time saver.

  6. #6
    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: From Visual Studio 2005 to KDevelop

    Quote Originally Posted by stevey View Post
    I find the integration to be a good time saver.
    How does it apply to what you have written in your previous post?

  7. #7
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: From Visual Studio 2005 to KDevelop

    Hmm, well there's the project wizards which help to generate the various Qt projects with minimal effort, you also get a header file containing a premade __declspec(dllimport), etc define, this is a good time saver.

    There's also being able to double click a Pushbutton and get an on_pushbutton_clicked() signature and implementation automatically filled out.

    Changing Qt back end version is a couple of clicks away.

    I do all my dev in VS with the integration, then months later when I want to publish I'll make a .pro file for the cross platform bit.
    I've done it the other way by hand creating a .pro file it I have to say it slows down the development process, but the trade off is that I'm not fluent in the qmake language so I need to commit some time at the end of a project if I want to build a .pro file.

    I've also tried setting up my .pro to create a .vcproj file for me but it does the library dependencies differently. I spend up to 8 hours a day in Visual Studio at work, so I'm used to the way it handles dependency folders and libs, so in the end it is quicker to work the same way and build the .pro file at a later stage.

  8. #8
    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: From Visual Studio 2005 to KDevelop

    Quote Originally Posted by stevey View Post
    There's also being able to double click a Pushbutton and get an on_pushbutton_clicked() signature and implementation automatically filled out.
    Automatic connections suck.

    then months later when I want to publish I'll make a .pro file for the cross platform bit.
    And that's the whole problem - you have to create the project file from scratch. If you want something more than a very basic project this is going to be pain in the neck. Building the project file incrementally as you need it should be easier and the integration should do it for you instead of transforming the project file to VS project. Many problems arise after that point.

  9. #9
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: From Visual Studio 2005 to KDevelop

    Each to their own.
    Anyway if the .pro file manual authoring step was going to be too difficult I could always write a reusable converter.

    Anyway I'm willing to enter an best ide / process debate so I won't answer this thread anymore.

Similar Threads

  1. Qt 4 for Windows CE : Visual Studio 2005 integration
    By pscheven in forum Installation and Deployment
    Replies: 4
    Last Post: 20th March 2008, 08:36
  2. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  3. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 13:40

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.