Hi,

I have been trying to build the `customwidgetplugin` example given in Qt documentation but I am unable to see the built and installed plugin in Qt Designer.

I built static and debug version of the Qt libraries, I added the release and static flag to the CONFIG parameter of the .pro file. I successfully built the example. I ran make and make install but couldn't see the plugin in the designer.

Is there something I do wrong ?

The resulting output for make is as follows:

Qt Code:
  1. alisami@workbench1:~/pluginTest/customwidgetplugin$ make -j2
  2. g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I../../qt-x11-commercial-src-4.4.3/mkspecs/linux-g++ -I. -I../../qt-443-x11/include/QtDesigner -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include -I. -I. -o analogclock.o analogclock.cpp
  3. g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I../../qt-x11-commercial-src-4.4.3/mkspecs/linux-g++ -I. -I../../qt-443-x11/include/QtDesigner -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include -I. -I. -o customwidgetplugin.o customwidgetplugin.cpp
  4. /home/alisami/qt-443-x11/bin/moc -DQT_NO_DEBUG -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I../../qt-x11-commercial-src-4.4.3/mkspecs/linux-g++ -I. -I../../qt-443-x11/include/QtDesigner -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include -I. -I. analogclock.h -o moc_analogclock.cpp
  5. /home/alisami/qt-443-x11/bin/moc -DQT_NO_DEBUG -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I../../qt-x11-commercial-src-4.4.3/mkspecs/linux-g++ -I. -I../../qt-443-x11/include/QtDesigner -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include -I. -I. customwidgetplugin.h -o moc_customwidgetplugin.cpp
  6. g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I../../qt-x11-commercial-src-4.4.3/mkspecs/linux-g++ -I. -I../../qt-443-x11/include/QtDesigner -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include -I. -I. -o moc_analogclock.o moc_analogclock.cpp
  7. g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I../../qt-x11-commercial-src-4.4.3/mkspecs/linux-g++ -I. -I../../qt-443-x11/include/QtDesigner -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtCore -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtGui -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtXml -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include/QtScript -I../../qt-443-x11/include -I. -I. -o moc_customwidgetplugin.o moc_customwidgetplugin.cpp
  8. rm -f libcustomwidgetplugin.a
  9. ar cqs libcustomwidgetplugin.a analogclock.o customwidgetplugin.o moc_analogclock.o moc_customwidgetplugin.o
  10. alisami@workbench1:~/pluginTest/customwidgetplugin$
To copy to clipboard, switch view to plain text mode 

and the output of `make install` is as follows:

Qt Code:
  1. alisami@workbench1:~/pluginTest/customwidgetplugin$ make install
  2. install -m 644 -p "libcustomwidgetplugin.a" "/home/alisami/qt-443-x11/plugins/designer/libcustomwidgetplugin.a"
  3. install -m 644 -p /home/alisami/pluginTest/customwidgetplugin/analogclock.cpp /home/alisami/qt-443-x11/examples/designer/customwidgetplugin/
  4. install -m 644 -p /home/alisami/pluginTest/customwidgetplugin/customwidgetplugin.cpp /home/alisami/qt-443-x11/examples/designer/customwidgetplugin/
  5. install -m 644 -p /home/alisami/pluginTest/customwidgetplugin/analogclock.h /home/alisami/qt-443-x11/examples/designer/customwidgetplugin/
  6. install -m 644 -p /home/alisami/pluginTest/customwidgetplugin/customwidgetplugin.h /home/alisami/qt-443-x11/examples/designer/customwidgetplugin/
  7. install -m 644 -p /home/alisami/pluginTest/customwidgetplugin/customwidgetplugin.pro /home/alisami/qt-443-x11/examples/designer/customwidgetplugin/
  8. alisami@workbench1:~/pluginTest/customwidgetplugin$ ~/qt-443-x11/bin/designer
To copy to clipboard, switch view to plain text mode 

sami