Results 1 to 1 of 1

Thread: QT project to Eclipse CDT in a few steps

  1. #1
    Join Date
    Jul 2013
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QT project to Eclipse CDT in a few steps

    After looking all over the Internet, Google, and documentation I did not find anything that guide to how to move a QT project to Eclipse CDT, so after it worked for me I decided to make it easier for those who will need it .

    Steps to move Qt project to Eclipse CDT

    First you need to have Eclipse CDT installed, you can do that by typing in the terminal the following:-
    [ sudo apt-get install eclipse-cdt]
    After that go to open Eclipse and press File -> New Project, and choose C++ Project then Next, then type project name and choose the directory of the source code then an empty project -> Linux






    Then press finish and then yes


    Now you will see your project on your left click on it and choose Project from the menu ->Properties click on C/C++ Build and remove the check from Generate MakeFiles Auto and in the Build location navigate to the folder that contains MakeFile that QT created for you.



    Now you can compile the code with no errors, and to run the project you need to do the following after building(compile) your project.
    Click Run from the menu and choose External Tools Configurations and double click Program from the right and type any name then in Location choose the executable file that was created by the compilation.



    If you still have Unresolved reference, you need to choose Windows in the menu and click Preferences double click on C/C++ - > Indexer in the Cash limits frame increase the cache I do not know what is the right amount but you can try yourself.



    I have attached the picture in case if the pictures are not visable
    Attached Images Attached Images

Similar Threads

  1. Eclipse, Moc Files, Custom Build Steps
    By gmat4321 in forum Qt Programming
    Replies: 4
    Last Post: 6th August 2010, 05:25
  2. importing creator project into eclipse
    By piotr.dobrogost in forum Qt Tools
    Replies: 3
    Last Post: 1st June 2009, 00:14
  3. Importing qt project to an eclipse workspace
    By isahin in forum Installation and Deployment
    Replies: 2
    Last Post: 28th January 2008, 18:00
  4. Qt 4.3.2 + eclipse 3.3 first project building
    By christauffre in forum Newbie
    Replies: 2
    Last Post: 5th December 2007, 12:52
  5. Howto use Eclipse with QT4 in 10 steps
    By the_bis in forum Newbie
    Replies: 3
    Last Post: 28th January 2007, 20:21

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.