Skip to main content

Building of personal profile is failed with qte-2.3.X

1 reply [Last post]
ansoncat
Offline
Joined: 2006-11-15
Points: 0

Hi,

I have try to build phoneME Advanced (b114) with personal profile on top of QTE-2.3.X, but get error messages as follows:

In file included from ../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:28:
../../src/share/personal/native/awt/qt/wproxy/QpFrame.h:63: error: `class Qt::BackgroundMode' has not been declared
../../src/share/personal/native/awt/qt/wproxy/QpFrame.h:63: error: ISO C++ forbids declaration of `mode' with no type
../../src/share/personal/native/awt/qt/wproxy/QpFrame.h:68: error: `class Qt::BackgroundMode' has not been declared
../../src/share/personal/native/awt/qt/wproxy/QpFrame.h:68: error: ISO C++ forbids declaration of `mode' with no type
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc: In constructor `QpFrame::QpFrame(QpWidget*, char*, int)':
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:46: error: `NoBackground' is not a member of `Qt'
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc: At global scope:
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:66: error: variable or field `setBackgroundMode' declared void
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:66: error: `int QpFrame::setBackgroundMode' is not a static member of `class QpFrame'
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:66: error: `BackgroundMode' is not a member of `Qt'
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:66: error: expected `,' or `;' before '{' token
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc: In member function `virtual void QpFrame::execute(int, void*)':
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:134: error: `BackgroundMode' is not a member of `Qt'
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:134: error: expected primary-expression before "int"
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc: At global scope:
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:175: error: variable or field `execSetBackgroundMode' declared void
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:175: error: `int QpFrame::execSetBackgroundMode' is not a static member of `class QpFrame'
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:175: error: `BackgroundMode' is not a member of `Qt'
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:175: error: expected `,' or `;' before '{' token
make: *** [obj/QpFrame.o] Error 1

It is due to the difference between QT-3 and QT-2 APIs. In QT-2, there are no Qt::BackgroundMode and Qt::NoBackground being defined. Insteadly, you need to use QWidget::BackgroundMode and QWidget::NoBackground to successfully build on top of Qt-2. I don't know if it is need to be fixed , but for my job, it has to be. So this issue ls left to you guys.:)

BR,
Anson

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03
Points: 0

I can confirm this issue, and posted about it before. Here is how I fixed
the problem:

http://forums.java.net/jive/click.jspa?searchID=717888&messageID=283725

Davy