Results 1 to 2 of 2

Thread: how to use khtmlpart&DOM without KDE environment

  1. #1

    Default how to use khtmlpart&DOM without KDE environment

    Hi
    I made a .so file include some header such as "khtml_part.h","dom_node.h" under KDE environment with Kdevelop.

    now i want to use this .so file without KDE environment.
    The problem is that program can't find the header "khtml_part.h" ..etc.
    the path is not right.
    how to set the path?
    thx
    error:
    /*******************************
    /home/cai/websearch/src/my_pst.h:27:24: error: khtml_part.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:45:21: error: qstring.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:46:18: error: qdir.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:49:26: error: dom/dom_node.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:50:25: error: dom/dom_doc.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:51:29: error: dom/dom_element.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:52:30: error: dom/html_element.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:53:31: error: dom/html_document.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:54:27: error: dom/html_misc.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:55:28: error: dom/dom_string.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:56:26: error: dom/dom_text.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:57:31: error: dom/dom_exception.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:58:29: error: dom/dom2_events.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:63:28: error: kdelibs_export.h: No such file or directory
    /home/cai/websearch/src/my_pst.h:72: error: ‘DOM’ is not a namespace-name
    /home/cai/websearch/src/my_pst.h:72: error: expected namespace-name before ‘;’ token
    /home/cai/websearch/src/my_pst.h:77: error: ‘DOM’ has not been declared
    /home/cai/websearch/src/my_pst.h:77: error: ISO C++ forbids declaration of ‘Node’ with no type
    /home/cai/websearch/src/my_pst.h:77: error: expected ‘;’ before ‘node’
    /home/cai/websearch/src/my_pst.h:83: error: ‘DOM’ was not declared in this scope
    /home/cai/websearch/src/my_pst.h:83: error: template argument 1 is invalid
    /home/cai/websearch/src/my_pst.h:83: error: template argument 2 is invalid
    /home/cai/websearch/src/my_pst.h:98: error: ‘DOM’ has not been declared
    /home/cai/websearch/src/my_pst.h:98: error: ISO C++ forbids declaration of ‘Node’ with no type
    /home/cai/websearch/src/my_pst.h:98: error: expected ‘;’ before ‘node’
    /home/cai/websearch/src/my_pst.h:110: error: ‘QString’ does not name a type
    /home/cai/websearch/src/my_pst.h:112: error: ‘QString’ does not name a type
    /home/cai/websearch/src/my_pst.h:117: error: ‘QString’ has not been declared
    /home/cai/websearch/src/my_pst.h:125: error: ‘QString’ has not been declared
    /home/cai/websearch/src/domtopst.h:
    36: error: ‘DOM’ is not a namespace-name
    /home/cai/websearch/src/domtopst.h:36: error: expected namespace-name before ‘;’ token
    /home/cai/websearch/src/domtopst.h:49: error: ‘DOM’ has not been declared
    /home/cai/websearch/src/domtopst.h:49: error: expected ‘,’ or ‘...’ before ‘node’
    /home/cai/websearch/src/domtopst.h:54: error: ‘QString’ does not name a type
    /home/cai/websearch/src/domtopst.h:57: error: ‘DOM’ has not been declared
    /home/cai/websearch/src/domtopst.h:57: error: ISO C++ forbids declaration of ‘NodeList’ with no type
    /home/cai/websearch/src/domtopst.h:57: error: expected ‘;’ before ‘tagNodeList’
    /home/cai/websearch/src/domtopst.h:60: error: ‘DOM’ has not been declared
    /home/cai/websearch/src/domtopst.h:60: error: ISO C++ forbids declaration of ‘Node’ with no type
    /home/cai/websearch/src/domtopst.h:60: error: expected ‘;’ before ‘getNode’
    /home/cai/websearch/src/domtopst.h:63: error: ‘DOM’ has not been declared
    /home/cai/websearch/src
    /domtopst.h:63: error: ISO C++ forbids declaration of ‘Node’ with no type
    /home/cai/websearch/src/domtopst.h:63: error: expected ‘;’ before ‘getTag’
    /home/cai/websearch/src/domtopst.h:69: error: ‘DOM’ was not declared in this scope
    /home/cai/websearch/src/domtopst.h:69: error: template argument 1 is invalid
    /home/cai/websearch/src/domtopst.h:69: error: template argument 2 is invalid
    /home/cai/websearch/src/domtopst.h:69: error: ‘DOM’ has not been declared
    /home/cai/websearch/src/domtopst.h:69: error: expected ‘,’ or ‘...’ before ‘node’
    /home/cai/websearch/src/domtopst.h:71: error: ‘DOM’ has not been declared
    /home/cai/websearch/src/domtopst.h:71: error: expected ‘,’ or ‘...’ before ‘node’
    /home/cai/websearch/src/domtopst.h:75: error: ‘DOM’ was not declared in this scope
    /home/cai/websearch/src/domtopst.h:75: error: template argument 1 is invalid
    /home/cai/websearch/src/domtopst.h:75: error: template argument 2 is invalid
    *******************/

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to use khtmlpart&DOM without KDE environment

    Quote Originally Posted by youshou View Post
    now i want to use this .so file without KDE environment.
    The problem is that program can't find the header "khtml_part.h" ..etc.
    Even if you have a .so file, you still need KDE headers and libraries that your library uses.

Similar Threads

  1. Replies: 1
    Last Post: 22nd June 2007, 20:46
  2. Environment variable
    By Pragya in forum Qt Programming
    Replies: 2
    Last Post: 25th May 2007, 14:02
  3. D-Bus in Multithreading environment
    By mdecandia in forum Qt Programming
    Replies: 0
    Last Post: 15th March 2007, 17:36
  4. Environment symbol
    By Doug Broadwell in forum Newbie
    Replies: 1
    Last Post: 1st November 2006, 19:54
  5. Accessing Environment Variables
    By mhoover in forum Qt Programming
    Replies: 6
    Last Post: 21st September 2006, 16:05

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.