[Kde-bindings] Error compiling qtruby4-1.4.10 on MacOS 10.5
Richard Dale
rdale at foton.es
Tue Jul 22 19:00:33 UTC 2008
On Tuesday 22 July 2008 12:29:15 Jose Ernesto Suarez wrote:
> I´m trying to compile the Qt ruby bindings on MacOs Leopard getting
> this error:
>
> Linking CXX shared module qtruby4.so
> Undefined symbols:
> "QWebHistoryItem::~QWebHistoryItem()", referenced from:
>
> QList<QWebHistoryItem>::node_destruct(QList<QWebHistoryItem>::Node*,
> QList<QWebHistoryItem>::Node*)in handlers.o
> "QWebHistoryItem::QWebHistoryItem(QWebHistoryItem const&)",
> referenced from:
>
> QList<QWebHistoryItem>::node_construct(QList<QWebHistoryItem>::Node*,
> QWebHistoryItem const&)in handlers.o
>
> QList<QWebHistoryItem>::node_copy(QList<QWebHistoryItem>::Node*,
> QList<QWebHistoryItem>::Node*, QList<QWebHistoryItem>::Node*)in
> handlers.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[3]: *** [ruby/qtruby/src/qtruby4.so] Error 1
> make[2]: *** [ruby/qtruby/src/CMakeFiles/qtruby4.dir/all] Error 2
> make[1]: *** [ruby/qtruby/src/CMakeFiles/qtruby4.dir/rule] Error 2
> make: *** [qtruby4] Error 2
>
> I´ve try to xompile it installing the QT framework from the tar.gz and
> from the .dmg image file
>
> Any suggestion?
I would just comment out the lines in handlers.cpp that refer to
QList<QWebHistoryItem>.
// DEF_VALUELIST_MARSHALLER( QWebHistoryItemList, QList<QWebHistoryItem>,
QWebHistoryItem )
...
// { "QList<QWebHistoryItem>", marshall_QWebHistoryItemList },
I'm not sure why some versions of Qt 4.4 have this type, and others don't. I
use the version of Qt in qt-copy in the kde svn and it has this list:
mardigras rdale 123% grep 'QList<QWebHistoryItem>' *.h
qwebhistory.h: QList<QWebHistoryItem> items() const;
qwebhistory.h: QList<QWebHistoryItem> backItems(int maxItems) const;
qwebhistory.h: QList<QWebHistoryItem> forwardItems(int maxItems) const;
-- Richard
More information about the Kde-bindings
mailing list