Results 1 to 1 of 1

Thread: Setting remote working directory in Qt Creator 3.2.1

  1. #1
    Join Date
    Jan 2010
    Qt products
    Unix/X11 Windows

    Default Setting remote working directory in Qt Creator 3.2.1


    Working environment:
    Debian 8 Jessie 64bit, Qt Creator 3.2.1, both Debian's CrossToolchains and the ones provided for Raspberry Pi in the official repo on github
    Rapsberry Pi 2, Rasbian (latest version)

    I have recently bought a Raspberry Pi 2 and decided to check out the embedded development features Qt and Qt Creator provide. It took me a couple of days to get the right compilation setup but finally I can compile a valid 32bit ARM binary that is automatically send over to the Raspberry Pi 2 when I click on Deploy. The binary runs without any issues when I open it natively on the device. However I would also like to be able to run and debug it remotely (over SSH). This seems a very difficult task for me.

    My project is a CMake project and accordingly I have a CMakeLists.txt

    Qt Code:
    1. # Description: Arm-linux cross-compilation project for RPi2 using Qt Creator
    2. project(RPiCrossCompileRemoteTest)
    3. cmake_minimum_required(VERSION 2.8)
    6. include(CMakeForceCompiler)
    8. # Set OS and processor architecture
    9. set(CMAKE_SYSTEM_NAME Linux)
    11. set(CMAKE_SYSTEM_VERSION 1) # not so important
    13. # Specify the compilers
    14. #set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc) # for C
    15. set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) # for C++
    18. # TODO: auto-generate the deployment configuration file for connecting local with remote paths
    19. # ...
    21. aux_source_directory(. SRC_LIST)
    22. add_executable(${PROJECT_NAME} ${SRC_LIST})
    To copy to clipboard, switch view to plain text mode 

    and a QtCreatorDeployment.txt

    Qt Code:
    1. /home/pi/Projects/remote_projects/
    To copy to clipboard, switch view to plain text mode 

    I thought that running the application actually uses the same setting for working directory as does the Deployment for the SFTP transfer, remote command execution etc. However it seems this is not the case. The only thing I can come up with is giving the full SFTP address in that field:

    Qt Code:
    1. sftp://
    To copy to clipboard, switch view to plain text mode 

    All I get in return is a slap from Qt Creator:

    Qt Code:
    1. Cannot change to working directory "sftp:/": No such file or directory
    To copy to clipboard, switch view to plain text mode 

    In total I have wasted something like 3 days looking into this issue without any success whatsoever. Is it really that difficult to do something like this?

    I have seen settings for Symbian and Maemo/MeeGo devices for example but the exact part I so desperately need seems to be set automatically. The generic Linux device (which I am using) section contains multiple things that don't look like that anymore and the part of setting the remote working directory is skipped completely (you can just see Executable on device: /opt/MyProject/bin/MyProject).

    Please help! I can do all that via terminal but I would really like to use the very neat functionality Qt Creator offers as IDE.
    Last edited by rbaleksandar; 20th August 2015 at 23:00. Reason: Subscribed to thread

Similar Threads

  1. Replies: 0
    Last Post: 12th February 2013, 19:35
  2. qt remote directory monitor
    By thefatladysingsopera in forum Newbie
    Replies: 2
    Last Post: 12th March 2012, 17:21
  3. Replies: 2
    Last Post: 2nd March 2012, 07:07
  4. Remote debugging with Qt Creator
    By rodrigotavares in forum Qt Tools
    Replies: 4
    Last Post: 3rd February 2010, 18:15
  5. setting working directory for current process
    By mule in forum Qt Programming
    Replies: 1
    Last Post: 8th October 2007, 13:54

Tags for this Thread


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.