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. [qmake] system call used to work with Qt4.7.x, fails with Qt4.8
Forum Updated to NodeBB v4.3 + New Features

[qmake] system call used to work with Qt4.7.x, fails with Qt4.8

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 3.4k 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.
  • J Offline
    J Offline
    JulienMaille
    wrote on last edited by
    #1

    I am calling a .bat file (I'm running windows) with a few arguments in a .pri file.
    @# ==== Versioning: Windows =====================================================
    system(string_replacer.bat "GLOBAL_VER" "$$GLOBAL_MAJOR,$$GLOBAL_MINOR,$$GLOBAL_BUILD" version_win_template.h > version_win.h)@
    I am getting this error message when running qmake on Qt4.8:
    [quote]system(exec) requires one argument[/quote]

    How can I fix this?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JulienMaille
      wrote on last edited by
      #2

      Hum it looks it has to do with quote escaping.
      Changed the line to
      @# ==== Versioning: Windows =====================================================
      system(string_replacer.bat "GLOBAL_VER" ""$$GLOBAL_MAJOR,$$GLOBAL_MINOR,$$GLOBAL_BUILD"" version_win_template.h > version_win.h)
      @ and it works.

      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