Results 1 to 6 of 6

Thread: Compiling error with caps file names

  1. #1
    Join Date
    Mar 2006
    Posts
    142
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Compiling error with caps file names

    I have problems with a #include <QDomElement> line in a library (file not found). The file is here but it seems that the compiler does not make the translation QDomElement -> qdomelement.h
    Where is the problem?

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compiling error with caps file names

    did you set path to Qt's includes?

  3. #3
    Join Date
    Mar 2006
    Posts
    142
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Compiling error with caps file names

    yes but it seems that it is now necessary to include QT/XML path...

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compiling error with caps file names

    did you add QT += xml to your pro-file?
    Last edited by spirit; 21st October 2008 at 10:22. Reason: reformatted to look better

  5. #5
    Join Date
    Mar 2006
    Posts
    142
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Compiling error with caps file names

    No because it works without it on my MacOSX computer but I have this problem on Linux Ubuntu and I suppose the reason is here. I will check it ASAP.

  6. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compiling error with caps file names

    let's look to documentation:
    To include the definitions of the module's classes, use the following directive:
    #include <QtXml>
    To link against the module, add this line to your qmake .pro file:
    QT += xml
    Configuring the Build Process

  7. The following user says thank you to spirit for this useful post:

    Caius Aérobus (24th October 2008)

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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.