Custom widget library with Qtopia

enocode edugarcas at gmail.com
Thu Oct 4 18:03:39 CEST 2007


Hi,

i create a custom witget with Qt/X11 4.3.1 to integrate it in QtDesigner.
This process generated a lib flie and was deployed in /plugins/designer
directory.
The problem is when do the compilation of other project that include this
widget with Qtopia 4.3.1, linker process show this error:

g++ -Wl,-rpath,/local/build/Qtopia-4.3.1/lib -o Samson release/main.o
release/moc_MainMenu.o release/moc_StartPrinter.o release/moc_IpScreen.o
release/moc_ConsoleScreenTemplate.o release/moc_PrinterInfo.o
release/moc_SystemInfo.o -L/local/build/Qtopia-4.3.1/lib
-L/local/build/QtX11/plugins/designer -lQNotepadPlugin -lQtGui
-L/local/build/Qtopia-4.3.1/lib -lpng -lQtNetwork -lQtCore -lz -lm -lrt -ldl
-lpthread
/local/build/QtX11/plugins/designer/libQNotepadPlugin.so: undefined
reference to `QWidget::x11Event(_XEvent*)'
collect2: ld returned 1 exit status

The libQNotepadPlugin.so contains my custom widget.
I tried to put a -fno-rtti flag in linker command line, but have the same
error.

all ideas will be well received ;)

Than's and best regards.

-- 
Eduard Garcia Castelló
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qtopia-preview-feedback/attachments/20071004/d3b1cd71/attachment.html 


More information about the Qtopia-preview-feedback mailing list