<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>35637</bug_id>
          
          <creation_ts>2010-03-03 03:21:09 -0800</creation_ts>
          <short_desc>[Qt] qwebplugindatabase.h included in &lt;QtWebKit&gt; on static builds</short_desc>
          <delta_ts>2010-03-10 04:25:41 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tor Arne Vestbø">vestbo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>robert</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>195433</commentid>
    <comment_count>0</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2010-03-03 03:21:09 -0800</bug_when>
    <thetext>This bug report originated from issue QTBUG-7339
http://bugreports.qt.nokia.com/browse/QTBUG-7339

--- Description ---

I built Qt 4.6 statically on a Ubuntu 9.10 box using the following flags:

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/path/to/src/configure
  -prefix /usr/local/Trolltech/Qt-4.6.0-&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt;
  -release -opensource
  -&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt;
  -fast -qt-sql-sqlite
  -no-qt3support
  -nomake &lt;span class=&quot;code-quote&quot;&gt;&quot;demos examples&quot;&lt;/span&gt;
  -silent
  -platform linux-g++-32&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Which builds just fine. When I try to compile one of my applications (which have a &lt;tt&gt;QT += webkit&lt;/tt&gt; line), I get the following error:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;/usr/local/Trolltech/Qt-4.6.0-static/include/QtWebKit/QtWebKit:15:32: error: qwebplugindatabase.h: No such file or directory&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;After some exploring I found out that the above file includes &lt;tt&gt;qwebplugindatabase.h&lt;/tt&gt; even on static builds. Since plugins are not supported on static builds, this line shouldn&apos;t be there.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Workaround:&lt;/b&gt;&lt;br/&gt;
A quick workaround is to use more granular includes, like &lt;tt&gt;#include &amp;lt;QtWebKit/QWebFrame&amp;gt;&lt;/tt&gt; instead of &lt;tt&gt;#include &amp;lt;QtWebKit&amp;gt;&lt;/tt&gt;.&lt;/p&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197751</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2010-03-09 13:36:10 -0800</bug_when>
    <thetext>This seems like another Qt specific (as opposed to QtWebKit specific) build problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197955</commentid>
    <comment_count>2</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2010-03-10 03:07:56 -0800</bug_when>
    <thetext>We now to the module header and class headers as part of the WebKit/qt/Api derived sources, so the fix for this should be made in trunk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197980</commentid>
    <comment_count>3</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2010-03-10 04:24:21 -0800</bug_when>
    <thetext>The QtWebKit module header should include all header files, and the headers should be usable regardless of the build configuration. 

Is this an issue in trunk still?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197982</commentid>
    <comment_count>4</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2010-03-10 04:25:41 -0800</bug_when>
    <thetext>Actually we don&apos;t really support static builds, so closing this for now, unless the original reporter (not me) reopens it with a valid test-case for trunk.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>