Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross compiling qt for arm
Forum Updated to NodeBB v4.3 + New Features

Cross compiling qt for arm

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 1.1k 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.
  • V Offline
    V Offline
    VAMSIkrishna
    wrote on last edited by
    #1

    Hi,

    I am trying to cross compile qt 5.9.1 for arm i am getting the following error while configuring

    here is the configure command used
    ./configure -xplatform /home/user/J6+Backup/rootfs/usr/share/qt5.7.1/mkspecs/linux-arm-gnueabihf-g++ -prefix /home/user/qtbin/Qt5.9.1 -platform linux-g++ -confirm-license -opensource -sysroot /home/user/qtcross/tisdk-rootfs-image-dra7xx-evm -no-compile-examples -nomake tests -nomake examples -skip qtwebchannel -skip qtwebsockets -skip qtwebview -skip qtwebengine -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtlocation

    • cd qtbase

    • /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/configure -top-level -xplatform /home/user/J6+Backup/rootfs/usr/share/qt5.7.1/mkspecs/linux-arm-gnueabihf-g++ -prefix /home/user/qtbin/Qt5.9.1 -platform linux-g++ -confirm-license -opensource -sysroot /home/user/qtcross/tisdk-rootfs-image-dra7xx-evm -no-compile-examples -nomake tests -nomake examples -skip qtwebchannel -skip qtwebsockets -skip qtwebview -skip qtwebengine -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtlocation
      Creating qmake...
      /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/configure: line 167:
      BEGIN {
      values["LITERAL_WHITESPACE"] = " "
      values["LITERAL_DOLLAR"] = "$"
      }
      /^[_A-Z0-9.]+[ \t]*+?=/ {
      valStart = index($0, "=") + 1

      append = 0
      if (substr($0, valStart - 2, 1) == "+") {
      append = 1
      }

      variable = substr($0, 0, valStart - 2 - append)
      value = substr($0, valStart)
      gsub("[ \t]+", "", variable)
      gsub("^[ \t]+", "", value)
      gsub("[ \t]+$", "", value)

      ovalue = ""
      while (match(value, /$$({[_A-Z0-9.]+}|[_A-Z0-9.]+)/)) {
      ovalue = ovalue substr(value, 1, RSTART - 1)
      var = substr(value, RSTART + 2, RLENGTH - 2)
      value = substr(value, RSTART + RLENGTH)
      if (var ~ /^{/) {
      var = substr(var, 2, length(var) - 2)
      }
      ovalue = ovalue values[var]
      }
      value = ovalue value

      ovalue = ""
      while (match(value, /$$system(("[^"]"|[^)]))/)) {
      ovalue = ovalue substr(value, 1, RSTART - 1)
      cmd = substr(value, RSTART + 9, RLENGTH - 10)
      gsub(/^"|"$/, "", cmd)
      value = substr(value, RSTART + RLENGTH)
      while ((cmd | getline line) > 0) {
      ovalue = ovalue line
      }
      close(cmd)
      }
      value = ovalue value

      combinedValue = values[variable]
      if (append == 1 && length(combinedValue) > 0) {
      combinedValue = combinedValue " " value
      } else {
      combinedValue = value
      }
      values[variable] = combinedValue
      }
      END {
      for (var in values) {
      print var "=" values[var]
      }
      }
      : No such file or directory
      /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/configure: line 230: /^(QMAKE_CC)=/ { print substr($0, index($0, "=") + 1) }: No such file or directory
      /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/configure: line 167:
      BEGIN {
      values["LITERAL_WHITESPACE"] = " "
      values["LITERAL_DOLLAR"] = "$"
      }
      /^[_A-Z0-9.]+[ \t]*+?=/ {
      valStart = index($0, "=") + 1

      append = 0
      if (substr($0, valStart - 2, 1) == "+") {
      append = 1
      }

      variable = substr($0, 0, valStart - 2 - append)
      value = substr($0, valStart)
      gsub("[ \t]+", "", variable)
      gsub("^[ \t]+", "", value)
      gsub("[ \t]+$", "", value)

      ovalue = ""
      while (match(value, /$$({[_A-Z0-9.]+}|[_A-Z0-9.]+)/)) {
      ovalue = ovalue substr(value, 1, RSTART - 1)
      var = substr(value, RSTART + 2, RLENGTH - 2)
      value = substr(value, RSTART + RLENGTH)
      if (var ~ /^{/) {
      var = substr(var, 2, length(var) - 2)
      }
      ovalue = ovalue values[var]
      }
      value = ovalue value

      ovalue = ""
      while (match(value, /$$system(("[^"]"|[^)]))/)) {
      ovalue = ovalue substr(value, 1, RSTART - 1)
      cmd = substr(value, RSTART + 9, RLENGTH - 10)
      gsub(/^"|"$/, "", cmd)
      value = substr(value, RSTART + RLENGTH)
      while ((cmd | getline line) > 0) {
      ovalue = ovalue line
      }
      close(cmd)
      }
      value = ovalue value

      combinedValue = values[variable]
      if (append == 1 && length(combinedValue) > 0) {
      combinedValue = combinedValue " " value
      } else {
      combinedValue = value
      }
      values[variable] = combinedValue
      }
      END {
      for (var in values) {
      print var "=" values[var]
      }
      }
      : No such file or directory
      /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/configure: line 230: /^(QMAKE_CXX)=/ { print substr($0, index($0, "=") + 1) }: No such file or directory
      Creating qmake...1
      /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/configure: line 167:
      BEGIN {
      values["LITERAL_WHITESPACE"] = " "
      values["LITERAL_DOLLAR"] = "$"
      }
      /^[_A-Z0-9.]+[ \t]*+?=/ {
      valStart = index($0, "=") + 1

      append = 0
      if (substr($0, valStart - 2, 1) == "+") {
      append = 1
      }

      variable = substr($0, 0, valStart - 2 - append)
      value = substr($0, valStart)
      gsub("[ \t]+", "", variable)
      gsub("^[ \t]+", "", value)
      gsub("[ \t]+$", "", value)

      ovalue = ""
      while (match(value, /$$({[_A-Z0-9.]+}|[_A-Z0-9.]+)/)) {
      ovalue = ovalue substr(value, 1, RSTART - 1)
      var = substr(value, RSTART + 2, RLENGTH - 2)
      value = substr(value, RSTART + RLENGTH)
      if (var ~ /^{/) {
      var = substr(var, 2, length(var) - 2)
      }
      ovalue = ovalue values[var]
      }
      value = ovalue value

      ovalue = ""
      while (match(value, /$$system(("[^"]"|[^)]))/)) {
      ovalue = ovalue substr(value, 1, RSTART - 1)
      cmd = substr(value, RSTART + 9, RLENGTH - 10)
      gsub(/^"|"$/, "", cmd)
      value = substr(value, RSTART + RLENGTH)
      while ((cmd | getline line) > 0) {
      ovalue = ovalue line
      }
      close(cmd)
      }
      value = ovalue value

      combinedValue = values[variable]
      if (append == 1 && length(combinedValue) > 0) {
      combinedValue = combinedValue " " value
      } else {
      combinedValue = value
      }
      values[variable] = combinedValue
      }
      END {
      for (var in values) {
      print var "=" values[var]
      }
      }
      : No such file or directory
      /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/configure: line 230: /^(QMAKE_CXXFLAGS)=/ { print substr($0, index($0, "=") + 1) }: No such file or directory
      /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/configure: line 167:

    please help in resolving this issue.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What cross-compiler are you using ?

      You seem be mixing two different versions of Qt: 5.7.1 and 5.9.1 which is not a good idea.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • V Offline
        V Offline
        VAMSIkrishna
        wrote on last edited by
        #3

        tried by giving the below modified configure command but got the same error

        ./configure -xplatform linux-arm-gnueabihf-g++ -prefix /home/user/qtbin/Qt5.9.1 -platform linux-g++ -confirm-license -opensource -sysroot /home/user/qtcross/tisdk-rootfs-image-dra7xx-evm -no-compile-examples -nomake tests -nomake examples -skip qtwebchannel -skip qtwebsockets -skip qtwebview -skip qtwebengine -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtlocation

        1 Reply Last reply
        0
        • V Offline
          V Offline
          VAMSIkrishna
          wrote on last edited by
          #4

          sry not the above one

          ./configure -xplatform /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/mkspecs/linux-arm-gnueabihf-g++ -prefix /home/user/qtbin/Qt5.9.1 -platform linux-g++ -confirm-license -opensource -sysroot /home/user/qtcross/tisdk-rootfs-image-dra7xx-evm -no-compile-examples -nomake tests -nomake examples -skip qtwebchannel -skip qtwebsockets -skip qtwebview -skip qtwebengine -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtlocation

          KroMignonK 1 Reply Last reply
          0
          • V VAMSIkrishna

            sry not the above one

            ./configure -xplatform /home/user/qtcrosscompile/qt-everywhere-opensource-src-5.9.1/qtbase/mkspecs/linux-arm-gnueabihf-g++ -prefix /home/user/qtbin/Qt5.9.1 -platform linux-g++ -confirm-license -opensource -sysroot /home/user/qtcross/tisdk-rootfs-image-dra7xx-evm -no-compile-examples -nomake tests -nomake examples -skip qtwebchannel -skip qtwebsockets -skip qtwebview -skip qtwebengine -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtlocation

            KroMignonK Offline
            KroMignonK Offline
            KroMignon
            wrote on last edited by
            #5

            @VAMSIkrishna I don't know if you are targeting a Raspberry PI, but this link could give you some helpful information about cross-compiling to ARM ==> Cross-Compile QT 5.12.3 / Raspberry Pi 3

            It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

            1 Reply Last reply
            0
            • V Offline
              V Offline
              VAMSIkrishna
              wrote on last edited by
              #6

              I am corss compiling it for Ti J6+ @KroMignon

              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