superteny
29th April 2009, 11:01
Hi!!!
I am trying to create a custom widget following the example of "World Time Clock Plugin" from the qt5waybutton widget demo provide by with qt. I have compiled and created the .so from the sources, then i have checked if the .so was under /plugins/designer directory and after all, i started qtcreator to use it. When i load a .ui file or create a new qt form, the next error occurs:
/usr/local/Trolltech/qt-creator-1.1.0-src/bin/qtcreator.bin: symbol lookup error: /usr/local/Trolltech/Qt-4.5.1/plugins/designer/libqt5waybutton.so: undefined symbol: _ZN16QtSvgPixmapCacheC1EP7QObject
I dont know if i have to copy the .so library into another directory or if there is another step that i am missing.
i put my .pro file.
CONFIG += designer plugin
TARGET = $$qtLibraryTarget($$TARGET)
TEMPLATE = lib
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer
HEADERS = qt5waybutton.h \
qt5waybuttonplugin.h
SOURCES = qt5waybutton.cpp \
qt5waybuttonplugin.cpp
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/designer/qt5waybuttonplugin
INSTALLS += target sources
Thanks for your help and sorry for the nuisance.
I am trying to create a custom widget following the example of "World Time Clock Plugin" from the qt5waybutton widget demo provide by with qt. I have compiled and created the .so from the sources, then i have checked if the .so was under /plugins/designer directory and after all, i started qtcreator to use it. When i load a .ui file or create a new qt form, the next error occurs:
/usr/local/Trolltech/qt-creator-1.1.0-src/bin/qtcreator.bin: symbol lookup error: /usr/local/Trolltech/Qt-4.5.1/plugins/designer/libqt5waybutton.so: undefined symbol: _ZN16QtSvgPixmapCacheC1EP7QObject
I dont know if i have to copy the .so library into another directory or if there is another step that i am missing.
i put my .pro file.
CONFIG += designer plugin
TARGET = $$qtLibraryTarget($$TARGET)
TEMPLATE = lib
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer
HEADERS = qt5waybutton.h \
qt5waybuttonplugin.h
SOURCES = qt5waybutton.cpp \
qt5waybuttonplugin.cpp
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/designer/qt5waybuttonplugin
INSTALLS += target sources
Thanks for your help and sorry for the nuisance.