Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300222 - Request for ?-libs/qtbrowserplugin
Summary: Request for ?-libs/qtbrowserplugin
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Qt Bug Alias
URL: http://qt.nokia.com/products/appdev/a...
Whiteboard:
Keywords:
Depends on:
Blocks: 299769
  Show dependency tree
 
Reported: 2010-01-08 21:33 UTC by Justin Lecher (RETIRED)
Modified: 2010-01-11 20:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2010-01-08 21:33:25 UTC
WE need this the sci-chemistry/qtiplot version bump. It is an optional DEP but we like to provide support of it. From a quick look at the package it seems to be a quite simple one.
Comment 1 Dror Levin (RETIRED) gentoo-dev 2010-01-08 22:11:20 UTC
This is what the README.txt says:
This module can not function if built as a DLL, it must be
statically linked with the plugin. Hence, DLL building is not
supported, and the -library option to configure will be ignored.

It seems like an ebuild for this might not be very useful, unless I'm missing something.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2010-01-08 23:46:18 UTC
it only builds .so here.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-01-11 19:42:23 UTC
Justin, I've tried to build, but all I saw, was .so objects for examples. So I guess this bug is invalid. Please, reopen if I'm wrong here.


As for qtiplot, to build plugin it requires  qtbrowserplugin sources in 3rdparty/QtSolutions/qtbrowserplugin/. But unfortunately this does not builds here with:

x86_64-pc-linux-gnu-g++ -c -m64 -pipe -O2 -pipe -march=native -mtune=native -ggdb -D_REENTRANT -Wall -W -fPIC -DQT_PLUGIN -DTRANSLATIONS_PATH=\"/usr/share/qtiplot/translations\" -DMANUAL_PATH=\"/usr/share/doc/qtiplot-0.9.7.11-r2/html\" -DSCRIPTING_MUPARSER -DXLS_IMPORT -DODS_IMPORT -DBROWSER_PLUGIN -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I/usr/include/qt4/QtAssistantClient -I/usr/include/qt4/QtAssistant -I../3rdparty/qwtplot3d/include -I../3rdparty/zlib -I../3rdparty/qwt/src -I/usr/include/boost-1_35/boost -I/usr/include/liborigin2 -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/include -Isrc/lib/3rdparty/qtcolorpicker/src -Isrc/plot2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/origin -Isrc/table -Isrc/scripting -I/usr/include/quazip -I/vt/portage/tmp/portage/sci-visualization/qtiplot-0.9.7.11-r2/work/qtiplot-0.9.7.11/3rdparty/QtSolutions/qtbrowserplugin/src -I/usr/X11R6/include -I/usr/X11R6/include -I/vt/portage/tmp/portage/sci-visualization/qtiplot-0.9.7.11-r2/work/qtiplot-0.9.7.11/tmp/qtiplot -o ../tmp/qtiplot/Convolution.o src/analysis/Convolution.cpp
In file included from src/core/ApplicationWindow.h:54,
                 from src/analysis/Filter.h:34,
                 from src/analysis/Convolution.h:32,
                 from src/analysis/Convolution.cpp:29:
/vt/portage/tmp/portage/sci-visualization/qtiplot-0.9.7.11-r2/work/qtiplot-0.9.7.11/3rdparty/QtSolutions/qtbrowserplugin/src/qtbrowserplugin.h: In member function ‘QStringList QtNPClass<T>::mimeTypes() const’:
/vt/portage/tmp/portage/sci-visualization/qtiplot-0.9.7.11-r2/work/qtiplot-0.9.7.11/3rdparty/QtSolutions/qtbrowserplugin/src/qtbrowserplugin.h:130: error: invalid use of incomplete type ‘struct QMetaClassInfo’
/usr/include/qt4/QtCore/qobjectdefs.h:234: error: forward declaration of ‘struct QMetaClassInfo’
make: *** [../tmp/qtiplot/Convolution.o] Error 1

If interested the only changes required in ebuild are:
--- /home/pva/overlays/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.7.11-r2.ebuild	2010-01-11 22:13:52.000000000 +0300
+++ qtiplot-0.9.7.11-r2.ebuild	2010-01-11 22:36:36.000000000 +0300
@@ -7,12 +7,13 @@
 
 DESCRIPTION="Qt based clone of the Origin plotting package"
 HOMEPAGE="http://soft.proindependent.com/qtiplot.html"
-SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
+SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2
+	plugin? ( http://get.qt.nokia.com/qt/solutions/lgpl/qtbrowserplugin-2.4_1-opensource.tar.gz )"
 
 LICENSE="GPL-2 GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="doc python ods xls"
+IUSE="doc plugin python ods xls"
 
 LANGS="cn cz de es fr ro ru ja sv"
 for l in ${LANGS}; do
@@ -68,6 +68,8 @@
 	qt4_src_prepare
 
 	rm -rf 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/}
+	mkdir 3rdparty/QtSolutions/
+	mv "${WORKDIR}/qtbrowserplugin-2.4_1-opensource" 3rdparty/QtSolutions/qtbrowserplugin
 
 	# Check build.conf for changes on bump.
 	cat >build.conf <<-EOF
@@ -103,6 +105,7 @@
 		echo "QUAZIP_INCLUDEPATH = /usr/include/quazip" >> build.conf
 		echo "QUAZIP_LIBS = -lquazip" >> build.conf
 	fi
+	use plugin && echo "CONFIG          += BrowserPlugin" >> build.conf
 
 	# Fails to build... 
 	#if use emf; then


But I guess work on this plugin is not finished yet, and thus even sources are not provided with qtiplot.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2010-01-11 20:15:26 UTC
You will be right. I saw the weird sources too. lets wait if either the qtiplot or the browserplugin upstream changes something.