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. Trouble using /root as the target directory on my embedded device.
Forum Updated to NodeBB v4.3 + New Features

Trouble using /root as the target directory on my embedded device.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 506 Views 1 Watching
  • 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
    dewsoft
    wrote on last edited by aha_1980
    #1

    Other directories work fine but I can not target the root directory of my embedded device.

    Here is the App Output
    15:23:10: Starting /usr/bin/appcontroller /root/DevProg ...
    "DBUS_SESSION_BUS_ADDRESS" "unix:abstract=/tmp/dbus-YJfUdCn1Zc,guid=18613c11cd13cbe14f8a15515d8d21a3"
    "FB_MULTI_BUFFER" "2"
    "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
    "QTWEBENGINE_DISABLE_SANDBOX" "1"
    "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
    "QT_IM_MODULE" "qtvirtualkeyboard"
    "QT_QPA_EGLFS_FORCEVSYNC" "1"
    "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
    "QT_QUICK_CONTROLS_1_STYLE" "Flat"
    "XDG_RUNTIME_DIR" "/run/user/0"
    "/root/DevProg" ()
    Failed to start
    Binary is not a file.
    15:23:11: Application finished with exit code 0.

    I'm fairly new to QT embedded Unix

    jsulmJ 1 Reply Last reply
    0
    • D dewsoft

      Other directories work fine but I can not target the root directory of my embedded device.

      Here is the App Output
      15:23:10: Starting /usr/bin/appcontroller /root/DevProg ...
      "DBUS_SESSION_BUS_ADDRESS" "unix:abstract=/tmp/dbus-YJfUdCn1Zc,guid=18613c11cd13cbe14f8a15515d8d21a3"
      "FB_MULTI_BUFFER" "2"
      "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
      "QTWEBENGINE_DISABLE_SANDBOX" "1"
      "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
      "QT_IM_MODULE" "qtvirtualkeyboard"
      "QT_QPA_EGLFS_FORCEVSYNC" "1"
      "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
      "QT_QUICK_CONTROLS_1_STYLE" "Flat"
      "XDG_RUNTIME_DIR" "/run/user/0"
      "/root/DevProg" ()
      Failed to start
      Binary is not a file.
      15:23:11: Application finished with exit code 0.

      I'm fairly new to QT embedded Unix

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @dewsoft This is normal as only root user has access to /root.
      Why do you want to deploy to /root?
      Running applications as root is most of the time a bad idea (for the same reason it is a bad idea to work as Administrator on Windows).
      Create a normal user and deploy to that users home directory instead of /root.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • D Offline
        D Offline
        dewsoft
        wrote on last edited by
        #3

        @dewsoft said in Trouble using \root as the target directory on my embedded device.:

        Other directories work fine but I can not target the root directory of my embedded device.

        Here is the App Output
        15:23:10: Starting /usr/bin/appcontroller /root/DevProg ...
        "DBUS_SESSION_BUS_ADDRESS" "unix:abstract=/tmp/dbus-YJfUdCn1Zc,guid=18613c11cd13cbe14f8a15515d8d21a3"
        "FB_MULTI_BUFFER" "2"
        "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
        "QTWEBENGINE_DISABLE_SANDBOX" "1"
        "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
        "QT_IM_MODULE" "qtvirtualkeyboard"
        "QT_QPA_EGLFS_FORCEVSYNC" "1"
        "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
        "QT_QUICK_CONTROLS_1_STYLE" "Flat"
        "XDG_RUNTIME_DIR" "/run/user/0"
        "/root/DevProg" ()
        Failed to start
        Binary is not a file.
        15:23:11: Application finished with exit code 0.

        I'm fairly new to QT embedded Unix

        Here's the App output of a successful deployment
        15:43:23: Starting /usr/bin/appcontroller /opt/DevProg/bin/DevProg ...
        "DBUS_SESSION_BUS_ADDRESS" "unix:abstract=/tmp/dbus-YJfUdCn1Zc,guid=18613c11cd13cbe14f8a15515d8d21a3"
        "FB_MULTI_BUFFER" "2"
        "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
        "QTWEBENGINE_DISABLE_SANDBOX" "1"
        "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
        "QT_IM_MODULE" "qtvirtualkeyboard"
        "QT_QPA_EGLFS_FORCEVSYNC" "1"
        "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
        "QT_QUICK_CONTROLS_1_STYLE" "Flat"
        "XDG_RUNTIME_DIR" "/run/user/0"
        "/opt/DevProg/bin/DevProg" ()
        Unable to query physical screen size, defaulting to 100 dpi.
        To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
        Init. Connected to SWI Port
        Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.

        @jsulm - We want to app to run on boot on an embedded version of Ubuntu running on a Toradex IM6

        aha_1980A jsulmJ 2 Replies Last reply
        0
        • D dewsoft

          @dewsoft said in Trouble using \root as the target directory on my embedded device.:

          Other directories work fine but I can not target the root directory of my embedded device.

          Here is the App Output
          15:23:10: Starting /usr/bin/appcontroller /root/DevProg ...
          "DBUS_SESSION_BUS_ADDRESS" "unix:abstract=/tmp/dbus-YJfUdCn1Zc,guid=18613c11cd13cbe14f8a15515d8d21a3"
          "FB_MULTI_BUFFER" "2"
          "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
          "QTWEBENGINE_DISABLE_SANDBOX" "1"
          "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
          "QT_IM_MODULE" "qtvirtualkeyboard"
          "QT_QPA_EGLFS_FORCEVSYNC" "1"
          "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
          "QT_QUICK_CONTROLS_1_STYLE" "Flat"
          "XDG_RUNTIME_DIR" "/run/user/0"
          "/root/DevProg" ()
          Failed to start
          Binary is not a file.
          15:23:11: Application finished with exit code 0.

          I'm fairly new to QT embedded Unix

          Here's the App output of a successful deployment
          15:43:23: Starting /usr/bin/appcontroller /opt/DevProg/bin/DevProg ...
          "DBUS_SESSION_BUS_ADDRESS" "unix:abstract=/tmp/dbus-YJfUdCn1Zc,guid=18613c11cd13cbe14f8a15515d8d21a3"
          "FB_MULTI_BUFFER" "2"
          "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
          "QTWEBENGINE_DISABLE_SANDBOX" "1"
          "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
          "QT_IM_MODULE" "qtvirtualkeyboard"
          "QT_QPA_EGLFS_FORCEVSYNC" "1"
          "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
          "QT_QUICK_CONTROLS_1_STYLE" "Flat"
          "XDG_RUNTIME_DIR" "/run/user/0"
          "/opt/DevProg/bin/DevProg" ()
          Unable to query physical screen size, defaulting to 100 dpi.
          To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
          Init. Connected to SWI Port
          Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.

          @jsulm - We want to app to run on boot on an embedded version of Ubuntu running on a Toradex IM6

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dewsoft

          @jsulm - We want to app to run on boot on an embedded version of Ubuntu running on a Toradex IM6

          That still does not require to run the app as root neither deploying it into /root.

          Do you have an user account on that Ubunto target system?

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          1
          • D dewsoft

            @dewsoft said in Trouble using \root as the target directory on my embedded device.:

            Other directories work fine but I can not target the root directory of my embedded device.

            Here is the App Output
            15:23:10: Starting /usr/bin/appcontroller /root/DevProg ...
            "DBUS_SESSION_BUS_ADDRESS" "unix:abstract=/tmp/dbus-YJfUdCn1Zc,guid=18613c11cd13cbe14f8a15515d8d21a3"
            "FB_MULTI_BUFFER" "2"
            "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
            "QTWEBENGINE_DISABLE_SANDBOX" "1"
            "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
            "QT_IM_MODULE" "qtvirtualkeyboard"
            "QT_QPA_EGLFS_FORCEVSYNC" "1"
            "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
            "QT_QUICK_CONTROLS_1_STYLE" "Flat"
            "XDG_RUNTIME_DIR" "/run/user/0"
            "/root/DevProg" ()
            Failed to start
            Binary is not a file.
            15:23:11: Application finished with exit code 0.

            I'm fairly new to QT embedded Unix

            Here's the App output of a successful deployment
            15:43:23: Starting /usr/bin/appcontroller /opt/DevProg/bin/DevProg ...
            "DBUS_SESSION_BUS_ADDRESS" "unix:abstract=/tmp/dbus-YJfUdCn1Zc,guid=18613c11cd13cbe14f8a15515d8d21a3"
            "FB_MULTI_BUFFER" "2"
            "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
            "QTWEBENGINE_DISABLE_SANDBOX" "1"
            "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
            "QT_IM_MODULE" "qtvirtualkeyboard"
            "QT_QPA_EGLFS_FORCEVSYNC" "1"
            "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
            "QT_QUICK_CONTROLS_1_STYLE" "Flat"
            "XDG_RUNTIME_DIR" "/run/user/0"
            "/opt/DevProg/bin/DevProg" ()
            Unable to query physical screen size, defaulting to 100 dpi.
            To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
            Init. Connected to SWI Port
            Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.

            @jsulm - We want to app to run on boot on an embedded version of Ubuntu running on a Toradex IM6

            jsulmJ Online
            jsulmJ Online
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @dewsoft said in Trouble using /root as the target directory on my embedded device.:

            We want to app to run on boot

            You can use systemd for that

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2

            • Login

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