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. [SOLVED] Do I have to rebuild Qt using nmake every time I want to build my project using qmake and nmake
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Do I have to rebuild Qt using nmake every time I want to build my project using qmake and nmake

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 3.0k 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.
  • R Offline
    R Offline
    rizoritis
    wrote on last edited by
    #1

    Hello,

    I am currently building my Qt project for WEC7. It seems that every time I want to rebuild my project from the command line I have to first build all of Qt using nmake from the command line. This takes an enormous amount of time. If I leave the command line dialog open after building Qt then I can rebuild my project as I want using "qmake && nmake". But the instant I close the console window I have to rebuild all of Qt because it does not recognize qmake unless I finished rebuilding Qt from that console window when building my project. This can't be right. Does anyone know a way so that I don't have to rebuild all of Qt when I just want to rebuild my project after closing my computer or closing the command console window?

    Thanks

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

      Hi,

      You either have to provide the full path to qmake when you want to call it, or have it in your PATH environment variable.

      IIRC there is a bat script in Qt's folder that you can call from the console to setup your command line.

      But beside that, why don't you use Qt creator for your project ? It would handle all that for you.

      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
      • R Offline
        R Offline
        rizoritis
        wrote on last edited by
        #3

        [quote author="SGaist" date="1374176724"]Hi,

        You either have to provide the full path to qmake when you want to call it, or have it in your PATH environment variable.

        IIRC there is a bat script in Qt's folder that you can call from the console to setup your command line.

        But beside that, why don't you use Qt creator for your project ? It would handle all that for you.[/quote]

        How do you provide the full path to qmake from the command line? I set the path variable when building Qt:

        set path=...PATH...

        checksdk -sdk "Platform Builder (_TGTCPU)" -script qt-wec7-pb-env.bat

        qt-wec7-pb-env.bat

        Apparently this doesn't work for WEC7 so I set the environment variables manually. I believe this is the bat script you were referring to?
        But besides that, I use QtCreator and it compiles Qt applications for Windows, can I set up QtCreator so I can switch it to compile for Windows Compact as well? I'm not sure how to do this, it would be great.

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

          Add a new Qt version pointing to your WEC7 build, create a kit using that one and you should be good to go

          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

          • Login

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