Results 1 to 5 of 5

Thread: problems installing qtservice windows 7 Qt 5.4.1

  1. #1
    Join Date
    Mar 2014
    Location
    USA
    Posts
    82
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default problems installing qtservice windows 7 Qt 5.4.1

    I'm trying to compile qtservice using nmake. I get error C1083. When trying to include "stddef.h" it can't find it. I didn't see VC's include folder in the Path variable, so I added it. I still get the same error. Anybody have any idea why qglobal.h can't find it? I am running nmake distclean in-between attempts to clear out the old stuff.

  2. #2
    Join Date
    Mar 2014
    Location
    USA
    Posts
    82
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: problems installing qtservice windows 7 Qt 5.4.1

    OK, it looks like the VC folder in Visual Studio 2013 is not getting added to the include file path in the compiler. How can I add it? The Qt path is there because those include files are getting found.

  3. #3
    Join Date
    Jul 2008
    Posts
    406
    Thanks
    9
    Thanked 52 Times in 50 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: problems installing qtservice windows 7 Qt 5.4.1

    Hi, did you compile from a CMD window? There should be a link to a "Visual Studio Command prompt" in your Start menu, did you try that one? It should set up the environment variables for compilation.

    Ginsengelf

  4. The following user says thank you to Ginsengelf for this useful post:

    TonyInSoMD (16th February 2018)

  5. #4
    Join Date
    Mar 2014
    Location
    USA
    Posts
    82
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: problems installing qtservice windows 7 Qt 5.4.1

    It's a 64 bit Qt so I had to use the x64 Native Tools Command Prompt (the Developer command prompt gave me an error saying I was trying to compile, something about x86 and x64 incompatibility. It seems to compile now, now all I have to do is figure out where it is and how to use it Thanks for the help. I was trying to do it from administrator command line and I guess that's why it wasn't working. My only excuse is that I never use command line to compile, but with Qt there's no choice. Edited: It seems to have compiled looking at the command prompt, at least I don't see any fatal errors, but I can't find where it compiled it to. I've done a search on the Qt folder and the qtserver folder, and can't find the dll. I did compile it with the -library option so there should be a dll. The only qtservice files I can find are the ones it uses to compile. The examples are there, but I can't find the library or include file so that I can use it in my program. Now what did I do wrong?
    Last edited by TonyInSoMD; 16th February 2018 at 11:40.

  6. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,073
    Thanks
    233
    Thanked 649 Times in 639 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: problems installing qtservice windows 7 Qt 5.4.1

    It has probably put it in your C:\Users\<username>\Documents\Visual Studio xxxx\Projects directory somewhere. You can run "nmake /?" to see a list of nmake options. If you run "nmake /N" it will show you what it will do without actually doing anything, so that might give you a clue where it is putting things. I don't know how you have created your nmake makefile, but that's where all the instructions are that aren't imported from global VS confguration files.

    When you run the Visual Studio IDE, you can see the default configuration using the Tools -> Options command from the menu.

    I am not sure I understand why you are doing this from the command line and not from the VS IDE, where you have a lot more information and control of how your build proceeds.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Trying to install QtService examples in windows 7
    By nikhilqt in forum Qt Programming
    Replies: 2
    Last Post: 15th January 2012, 03:28
  2. Problems starting a QtService using QtServiceController
    By Stiander in forum Qt Programming
    Replies: 3
    Last Post: 10th May 2011, 10:54
  3. QtService Library (dll) for windows
    By ruben.rodrigues in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd October 2010, 19:18
  4. Replies: 0
    Last Post: 1st May 2010, 12:41
  5. QtService on Windows as Non-Interactive
    By stefanadelbert in forum Qt Programming
    Replies: 2
    Last Post: 26th April 2010, 03:27

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.