Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Import and build Eclipse project in Qt
Forum Updated to NodeBB v4.3 + New Features

Import and build Eclipse project in Qt

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 3.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    uTwenteStudent
    wrote on 12 Apr 2017, 08:31 last edited by
    #1

    Hi all.

    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 =)

    R.
    Student uTwente Enschede

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tekojo
      wrote on 12 Apr 2017, 09:47 last edited by tekojo 4 Dec 2017, 09:49
      #2

      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.

      1 Reply Last reply
      1
      • T Offline
        T Offline
        tekojo
        wrote on 12 Apr 2017, 09:49 last edited by
        #3

        P.S. http://doc.qt.io/ is a good bookmark

        1 Reply Last reply
        1

        1/3

        12 Apr 2017, 08:31

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved