Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator: Build C Project on Remote Linux Machine

Qt Creator: Build C Project on Remote Linux Machine

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 2.8k 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.
  • D Offline
    D Offline
    Dungeon Keeper
    wrote on last edited by
    #1

    Hi,

    I would like to use Qt Creator to develop a standard C project and build it on a remote Linux machine. My development machine, however is a Windows PC.

    I found out, that I can add my Linux target without any problems in to the devices in Qt Creator and I can connect via SSH. What I dont know is, how I could start a remote build process this way.

    Normally I work with a Cygwin Shell and execute a shell script from there, which syncs my .c and .h files using rsync to the linux machine and then executes "make" there. However, I want the error messages to be visible in Qt Creator, so I can easily jump to the line of code with the problem. My compiler is GCC, running on the Linux system.

    In the best case, I would also like to debug the application running on the Linux system with the Qt Creator on my Windows PC.

    Is there a way, to get this to work?
    Thanks in advance!

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      Hi, I had more or less the same setup, a remote Linux PC connected with SSH.
      When i wanted to debug my Qt apps, I ended up installing Qt/QtCreator and VNCServer on the remote Linux PC, and using VNCViewer on my Windows PC to connect to it over SSH.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dungeon Keeper
        wrote on last edited by
        #3

        Hi hskoglund, thanks for your reply. However, I was hoping that there would be another solution than VNC. Actually it would be fine for me, if I could just run my Shell script from Qt Creator (for which I would need cygwin or something else, as I am on Windows) and somehow parse the errors correctly.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          deusinvictus
          wrote on last edited by
          #4

          Doesn't QtCreator/GDB have some sort of remote debugger option? I've never used it, know little if anything about it, have no clue if it would work cross platform, but I have a vague recollection that it exists. It could be worth looking into.

          1 Reply Last reply
          0

          • Login

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