bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/26028] New: Don't compile X11Embedd class on non-X11 Qt-v


From: hs4233 at mail dot mn-solutions dot de
Subject: [Bug classpath/26028] New: Don't compile X11Embedd class on non-X11 Qt-versions
Date: 30 Jan 2006 11:13:46 -0000

In the process of getting GNU ClassPath working with Qt/Embedded 4.x I went
into a compilation problem. It tried to compile a X11-specific class which is
not possible on Qt/Embedded, which run's without X-Windows directly in the
framebuffer. The following patch fixed the compilation problem and allowed me
to run a demo app.

Q_WS_X11 is documented at http://doc.trolltech.com/4.1/emb-differences.html

--- c.orig/native/jni/qt-peer/qtembeddedwindowpeer.cpp  2005-08-17
01:22:09.000000000
+++ c/native/jni/qt-peer/qtembeddedwindowpeer.cpp       2006-01-30
11:18:29.000000000
@@ -37,6 +37,7 @@

 #include <assert.h>
 #include <QWidget>
+#ifdef Q_WS_X11
 #include <QX11EmbedWidget>
 #include <gnu_java_awt_peer_qt_QtEmbeddedWindowPeer.h>
 #include "qtcomponent.h"
@@ -111,3 +112,4 @@
   mainThread->postEventToMain( new EmbedEvent( panel, (WId)wid ) );
 }

+#endif


-- 
           Summary: Don't compile X11Embedd class on non-X11 Qt-versions
           Product: classpath
           Version: 0.20
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hs4233 at mail dot mn-solutions dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: arm-unknown-linux-gnu
GCC target triplet: arm-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26028





reply via email to

[Prev in Thread] Current Thread [Next in Thread]