Results 1 to 5 of 5

Thread: Problem with QXmlQuery and Visual Studio 2005

  1. #1
    Join Date
    Jan 2007
    Posts
    95
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem with QXmlQuery and Visual Studio 2005

    Hi, I have a problem in windows with Visual Studio 2005 when I try to compile my project:

    fatal error C1083: Can't open include file: 'QXmlQuery': No such file or directory

    But I have seen that the file is in the directory and paths in Visual Studio project are ok.

    What's happend?

    Thanks in advanced.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem with QXmlQuery and Visual Studio 2005

    Only core and gui modules are enabled to by default. Add
    Qt Code:
    1. QT += xmlpatterns
    To copy to clipboard, switch view to plain text mode 
    to your .pro file to take the xmlpatterns module into use and then re-generate the visual studio project.

    More details: Configuring the Build Process
    J-P Nurmi

  3. #3
    Join Date
    Jan 2007
    Posts
    95
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem with QXmlQuery and Visual Studio 2005

    I have done this before generate the visual studio project.

    in .pro file:

    Qt Code:
    1. TEMPLATE = app
    2. TARGET =
    3. DEPENDPATH += . generalfiles graphviewer texteditor Molpro
    4. INCLUDEPATH += . generalfiles graphviewer texteditor Molpro
    5. QT += opengl
    6. QT += xml
    7. QT += xmlpatterns
    8. ...
    To copy to clipboard, switch view to plain text mode 


    and in .h file:

    Qt Code:
    1. #include <QtXml>
    2. #include <QXmlQuery>
    To copy to clipboard, switch view to plain text mode 


    ???????
    Last edited by jpn; 25th May 2008 at 13:02. Reason: missing [code] tags

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem with QXmlQuery and Visual Studio 2005

    Could you show us the buildlog from VS (or compiler output from command line)?
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    zorro68 (26th May 2008)

  6. #5
    Join Date
    Jan 2007
    Posts
    95
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem with QXmlQuery and Visual Studio 2005

    I have just solve my problem. The problem was that I have installed two versions of Qt (4.3.1 and 4.4.0) and the enviroment variables in windows was set to 4.3.1 where I haven't compiled the QXmlQuery (I compiled with visual studio 6 and this nmake not compiled this library).
    I changed in windows the environment variables (to 4.4.0) and all works.

    Thanks jpn for your suggestion.

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.