[Kde-bindings] Building QtRuby for Qt/Embedded

Steffen Beyer serpent at centibel.org
Sat Feb 20 16:57:21 UTC 2010


On Fri, 19 Feb 2010 18:24:35 +0000, Richard Dale wrote:
> That looks good. I think you will need to remove the QtOpenGL 
> initialization for the qtopengl smoke lib from qtruby.cpp:

Had to remove some more stuff:

--- qtruby.cpp.orig	2010-02-20 16:51:56.000000000 +0000
+++ qtruby.cpp	2010-02-20 16:52:33.000000000 +0000
@@ -49,7 +49,7 @@
 #include <smoke/qtgui_smoke.h>
 #include <smoke/qtxml_smoke.h>
 #include <smoke/qtsql_smoke.h>
-#include <smoke/qtopengl_smoke.h>
+// #include <smoke/qtopengl_smoke.h>
 #include <smoke/qtnetwork_smoke.h>
 #include <smoke/qtsvg_smoke.h>
 #include <smoke/qtdbus_smoke.h>
@@ -2113,10 +2113,12 @@
             rb_ary_push(class_list, 
rb_str_new2(qtsql_Smoke->classes[i].className));
     }
 
+    /*
     for (int i = 1; i <= qtopengl_Smoke->numClasses; i++) {
         if (qtopengl_Smoke->classes[i].className && 
!qtopengl_Smoke->classes[i].external)
             rb_ary_push(class_list, 
rb_str_new2(qtopengl_Smoke->classes[i].className));
     }
+    */
 
     for (int i = 1; i <= qtnetwork_Smoke->numClasses; i++) {
         if (qtnetwork_Smoke->classes[i].className && 
!qtnetwork_Smoke->classes[i].external)
@@ -2339,7 +2341,7 @@
     init_qtgui_Smoke();
     init_qtxml_Smoke();
     init_qtsql_Smoke();
-    init_qtopengl_Smoke();
+    // init_qtopengl_Smoke();
     init_qtnetwork_Smoke();
     init_qtsvg_Smoke();
     init_qtdbus_Smoke();
@@ -2350,7 +2352,7 @@
     INIT_BINDING(qtgui)
     INIT_BINDING(qtxml)
     INIT_BINDING(qtsql)
-    INIT_BINDING(qtopengl)
+    // INIT_BINDING(qtopengl)
     INIT_BINDING(qtnetwork)
     INIT_BINDING(qtsvg)
     INIT_BINDING(qtdbus)

Now I'm stuck here:

[root at centibel ~]# ruby -r Qt -e exit
ASSERT failure in QList<T>::operator[]: "index out of range", file 
/usr/local/include/QtCore/qlist.h, line 447
Aborted

Another point: usually I start an application with the "-qws" parameter to 
let it act as "master". Does this still work for QtRuby applications?

Kind regards,
-- 
Steffen Beyer <serpent at centibel.org>

GnuPG key fingerprint: CA00 1611 242B 89D4 E643  E235 05F3 7689 DD3E EB26
Public key available upon request or at http://wwwkeys.de.pgp.net



More information about the Kde-bindings mailing list