On 06/19/11 20:49, Samu Voutilainen wrote:
On Thursday 16 June 2011 09:25:56 Marius Brehler wrote:
Hello,
in reference to the 'Jambi Cross Compiling Error' thread I would like to 
discuss the error more detailed.

The library.native.compile fails on the QEasingCurve::setCustomType function. 
This function is only
generated for my ARM target and is not for an X86 target. Compiling the library 
succeeds if the
function is commented out in 
build/generator/out/cpp/com_trolltech_qt_core/qtjambishell_QEasingCurve.cpp

// QEasingCurve::setCustomType(float func)
extern "C" Q_DECL_EXPORT void JNICALL
QTJAMBI_FUNCTION_PREFIX(Java_com_trolltech_qt_core_QEasingCurve__1_1qt_1setCustomType_1float__JF)
(JNIEnv *__jni_env,
   jobject,
   jlong __this_nativeId,
   jfloat func0)
{
      QTJAMBI_DEBUG_TRACE("(native) entering: QEasingCurve::setCustomType(float 
func)");
      Q_UNUSED(__jni_env)
      Q_UNUSED(__this_nativeId)
      QEasingCurve *__qt_this = (QEasingCurve *) 
qtjambi_from_jlong(__this_nativeId);
      QTJAMBI_EXCEPTION_CHECK(__jni_env);
      Q_ASSERT(__qt_this);
      __qt_this->setCustomType((float )func0);
      QTJAMBI_DEBUG_TRACE("(native) ->  leaving: QEasingCurve::setCustomType(float 
func)");

}

I am at the point that I belive that this is not a problem with my qmake 
mkspecs/cross compiling.
Commenting the function out works as mentioned, but I do not know if this is 
realy a good idea. It
would be possible to run 'ant generator', runing 'sed' on 
qtjambishell_QEasingCurve.cpp and
afterwards run 'ant library'. Hope somebody can helps.
Best Regards

Marius
_______________________________________________
Qt-jambi-interest mailing list
Qt-jambi-interest@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest

Oh, this is solution to earlier problem?

Yes, this is the solution to the problem described in the 'Jambi Cross Compile 
Error' thread.

Looks like this is unnecessary function then, or do anyone have an use case 
what for it should be included in Jambi? Or can I just reject it out.

The attached patch would remove the function at least for float. For double it 
is already removed.
Best Regards

Marius
From: Marius Brehler <mar...@linux.sungazer.de>
Date: Fri, 17 Jun 2011 11:38:47 +0200
Subject: [PATCH] Remove QEasingCurve::setCustomType(float).

---
 .../typesystem/xml/typesystem_core-common.xml      |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/generator/typesystem/xml/typesystem_core-common.xml b/generator/typesystem/xml/typesystem_core-common.xml
index fd3e7ae..4abf423 100644
--- a/generator/typesystem/xml/typesystem_core-common.xml
+++ b/generator/typesystem/xml/typesystem_core-common.xml
@@ -958,6 +958,7 @@
     <value-type name="QEasingCurve">
         <modify-function signature="customType()const" remove="all" />
         <modify-function signature="setCustomType(double)" remove="all" />
+	<modify-function signature="setCustomType(float)" remove="all" />
         <modify-function signature="operator!=(const QEasingCurve &amp;)const" remove="all" />
     </value-type>
 
-- 
1.7.2.5

_______________________________________________
Qt-jambi-interest mailing list
Qt-jambi-interest@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest

Reply via email to