Results 1 to 3 of 3

Thread: using xml in qt 3

  1. #1
    Join Date
    May 2006
    Posts
    57
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    12

    Unhappy using xml in qt 3

    HI

    I have a source code from a qt3 project, but this code don't have .pro file, this program use opengl, libxml2, and qxml, I don't want port this code to qt 4, I want compile this code with qt3, but when I compile g++ say:

    "Some of the required modules <xml large-config>are not available."
    "Skipped."

    here the scketch from my .pro file
    Qt Code:
    1. TEMPLATE = app
    2. CONFIG += qt opengl warn_on release
    3. CONFIG -= dlopen_opengl
    4. REQUIRES = opengl
    5. CONFIG += qt warn_on release
    6. REQUIRES += xml large-config
    7. DEPENDPATH += carpets
    8. INCLUDEPATH += . \
    9. carpets
    10.  
    11. # Input
    12. HEADERS += h files
    13. INTERFACES += ui files
    14. SOURCES +=cpp files
    To copy to clipboard, switch view to plain text mode 

    I hope someone can helpme...

  2. #2
    Join Date
    Apr 2010
    Location
    Portland, OR
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    2

    Default Re: using xml in qt 3

    Add QT += xml to your .pro file if your project uses the Qt XML classes.

    EDIT: I think I was on the wrong path. Use LIBS to include static libraries, not REQUIRES
    Last edited by desertpilot; 28th April 2010 at 02:03.

  3. #3
    Join Date
    May 2006
    Posts
    57
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    12

    Default Re: using xml in qt 3

    Well, I used Requires because I saw an sample code of qt3 this way of doing it .pro file (this example is the next)
    Qt Code:
    1. TEMPLATE = app
    2. TARGET = outliner
    3.  
    4. CONFIG += qt warn_on release
    5.  
    6. REQUIRES = xml large-config
    7.  
    8. HEADERS = outlinetree.h
    9. SOURCES = main.cpp \
    10. outlinetree.cpp
    11. INTERFACES =
    To copy to clipboard, switch view to plain text mode 

    Either way it seems to work, but still I 'm not sure; because I have to correct errors in my code

    Anyway Thanks

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
  •  
Qt is a trademark of The Qt Company.