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. Trying to run qmake from command line on windows to build my application.
Forum Updated to NodeBB v4.3 + New Features

Trying to run qmake from command line on windows to build my application.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 4 Posters 5.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
    John Owens
    wrote on last edited by
    #1

    Surprisingly I have this working on linux but I can't seem to get it to work on windows.

    When I try.

    cd build
    C:\Qt\5.9.1\msvc2015_64\bin\qmake.exe  -makefile -spec win32-msvc ../project/project.pro
    make
    

    I get this error

    /bin/sh: -c: line 1: syntax error: unexpected end of file
    make: *** [Makefile:44: sub-framework-make_first] Error 1
    

    When I use -spec win32-g++

    I get linking errors although I think this is because I have built my libraries using visual studio.

    Ideally I would like to get the visual studio version working i.e. -spec win32-msvc

    Can anyone help?

    jsulmJ 1 Reply Last reply
    0
    • J John Owens

      Surprisingly I have this working on linux but I can't seem to get it to work on windows.

      When I try.

      cd build
      C:\Qt\5.9.1\msvc2015_64\bin\qmake.exe  -makefile -spec win32-msvc ../project/project.pro
      make
      

      I get this error

      /bin/sh: -c: line 1: syntax error: unexpected end of file
      make: *** [Makefile:44: sub-framework-make_first] Error 1
      

      When I use -spec win32-g++

      I get linking errors although I think this is because I have built my libraries using visual studio.

      Ideally I would like to get the visual studio version working i.e. -spec win32-msvc

      Can anyone help?

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

      @John-Owens Is the build directory empty when you call qmake?
      Also with MSVC you should call nmake not make.

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

      aha_1980A J 2 Replies Last reply
      1
      • jsulmJ jsulm

        @John-Owens Is the build directory empty when you call qmake?
        Also with MSVC you should call nmake not make.

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

        @jsulm said in Trying to run qmake from command line on windows to build my application.:

        Also with MSVC you should call nmake not make.

        or jom, if you don't want to wait that long.

        https://wiki.qt.io/Jom

        Qt has to stay free or it will die.

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

          Hi,

          What command line are you using for that ?

          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
          0
          • jsulmJ jsulm

            @John-Owens Is the build directory empty when you call qmake?
            Also with MSVC you should call nmake not make.

            J Offline
            J Offline
            John Owens
            wrote on last edited by
            #5

            @jsulm When I call nmake I now get missing headers however I think I can continue from here.

            Thanks.

            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