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. toolchain.prf(50): system(execute) requires one or two arguments.
QtWS25 Last Chance

toolchain.prf(50): system(execute) requires one or two arguments.

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 5.1k 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.
  • T Offline
    T Offline
    titan83
    wrote on last edited by
    #1

    Hello.
    I has migrated my project (arm11, linaro4.7 cross-compiling) from Qt5.4.2 to Qt5.9.1 and catch some error.
    When I choose debug build I have next error messages in QtCreator 4.0.2:
    /usr/local/qt/qt591-chipsee-egl/mkspecs/features/toolchain.prf(50): system(execute) requires one or two arguments.
    Project ERROR: Cannot run compiler '/home/user/work/tools/linaro-4.7/bin/arm-linux-gnueabihf-g++'. Maybe you forgot to setup the environment?
    Error while parsing file /home/user/work/_projects/eWSH/eWSH.pro. Giving up.
    Pro file is not parsed, project is not displaying in QtCreator.

    In release mode these errors are not occured.
    Also in spite error messages compilation is successful even in debug mode.

    I see next lines in toolchain.prf file:

            output = $$system("$$cmd_prefix $$QMAKE_CXX $$qtMakeExpand($$cxx_flags) -xc++ - 2>&1 $$cmd_suffix", lines, ec)
    
        ret = $$system("$$1 -E $$system_quote($$PWD/data/macros.cpp) <$$null_device 2>$$null_device", lines, ec)
        !equals(ec, 0): \
            error("Cannot run compiler '$$1'. Maybe you forgot to setup the environment?")
        return($$ret)
    

    I tried to remove "lines" parameter. Error message was suppressed, but project still not displaying in QtCreator.

    Can somebody point me to syntax of prf file of help with parameters system() function?

    Thanks.

    T D 2 Replies Last reply
    1
    • T titan83

      Hello.
      I has migrated my project (arm11, linaro4.7 cross-compiling) from Qt5.4.2 to Qt5.9.1 and catch some error.
      When I choose debug build I have next error messages in QtCreator 4.0.2:
      /usr/local/qt/qt591-chipsee-egl/mkspecs/features/toolchain.prf(50): system(execute) requires one or two arguments.
      Project ERROR: Cannot run compiler '/home/user/work/tools/linaro-4.7/bin/arm-linux-gnueabihf-g++'. Maybe you forgot to setup the environment?
      Error while parsing file /home/user/work/_projects/eWSH/eWSH.pro. Giving up.
      Pro file is not parsed, project is not displaying in QtCreator.

      In release mode these errors are not occured.
      Also in spite error messages compilation is successful even in debug mode.

      I see next lines in toolchain.prf file:

              output = $$system("$$cmd_prefix $$QMAKE_CXX $$qtMakeExpand($$cxx_flags) -xc++ - 2>&1 $$cmd_suffix", lines, ec)
      
          ret = $$system("$$1 -E $$system_quote($$PWD/data/macros.cpp) <$$null_device 2>$$null_device", lines, ec)
          !equals(ec, 0): \
              error("Cannot run compiler '$$1'. Maybe you forgot to setup the environment?")
          return($$ret)
      

      I tried to remove "lines" parameter. Error message was suppressed, but project still not displaying in QtCreator.

      Can somebody point me to syntax of prf file of help with parameters system() function?

      Thanks.

      T Offline
      T Offline
      titan83
      wrote on last edited by titan83
      #2

      @titan83 And I answer myself to question above.
      In file mkspecs/features/default_pre.prf I commented last line "load(toolchain)"

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lover
        wrote on last edited by
        #3

        thanks a lot!!!

        1 Reply Last reply
        1
        • T titan83

          Hello.
          I has migrated my project (arm11, linaro4.7 cross-compiling) from Qt5.4.2 to Qt5.9.1 and catch some error.
          When I choose debug build I have next error messages in QtCreator 4.0.2:
          /usr/local/qt/qt591-chipsee-egl/mkspecs/features/toolchain.prf(50): system(execute) requires one or two arguments.
          Project ERROR: Cannot run compiler '/home/user/work/tools/linaro-4.7/bin/arm-linux-gnueabihf-g++'. Maybe you forgot to setup the environment?
          Error while parsing file /home/user/work/_projects/eWSH/eWSH.pro. Giving up.
          Pro file is not parsed, project is not displaying in QtCreator.

          In release mode these errors are not occured.
          Also in spite error messages compilation is successful even in debug mode.

          I see next lines in toolchain.prf file:

                  output = $$system("$$cmd_prefix $$QMAKE_CXX $$qtMakeExpand($$cxx_flags) -xc++ - 2>&1 $$cmd_suffix", lines, ec)
          
              ret = $$system("$$1 -E $$system_quote($$PWD/data/macros.cpp) <$$null_device 2>$$null_device", lines, ec)
              !equals(ec, 0): \
                  error("Cannot run compiler '$$1'. Maybe you forgot to setup the environment?")
              return($$ret)
          

          I tried to remove "lines" parameter. Error message was suppressed, but project still not displaying in QtCreator.

          Can somebody point me to syntax of prf file of help with parameters system() function?

          Thanks.

          D Offline
          D Offline
          Damos
          wrote on last edited by
          #4

          @titan83 - usualy it's when you've configured your compiler path to gcc instead of g++. You can try to check that and uncomment (get back) your line at the end of default_pre.prf file.
          I wonder if it help?

          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