Import and build Eclipse project in Qt
This is my first time on this forum so excuse me if my question was already on it.
I have a question about importing an Eclipse project in Qt.
Firstly I want to tell you, we have to make an chat program over an Ad-hoc network.
For my Assignment we got a code that works in eclipse and we already made a protocol etc.
Now we want to make a GUI with Qt but don't know where to start.
If we import the Files by:
File > New file or project... > Import Project > Import Existing Project
We get our .cpp and .h files imported but i cant build it.
Probably because there isn't a .pro or .ui I suppose.
The error i get is:
:-1: error: No rule to make target 'all'. Stop.
How can i get my project work?
Thanks in advance =)
Student uTwente Enschede
Hi @uTwenteStudent ,
You are on the right track. Qt Creator likes .pro files (it can work with other things too, but for simplicity stick with .pro and qmake).
I would suggest taking a look at the documentation at http://doc.qt.io/qtcreator/creator-project-creating.html (also available inside Qt Creator) to see what options you have in importing and creating projects.
Import as qmake Project could be the thing you want, or possibly create a test project (a Qt widgets application is probably easiest if you aren't familiar with QML) to see what a .pro file contains.
The next question is to decide if you want to just include your existing code into a Qt project, or treat it as a library. If you want a library, then you would import as a library.
P.S. http://doc.qt.io/ is a good bookmark