Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347279 - sci-physics/geant not compiling Qt4 visualization driver
Summary: sci-physics/geant not compiling Qt4 visualization driver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2010-11-30 12:19 UTC by mane00
Modified: 2011-01-22 02:35 UTC (History)
0 users

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


Attachments
fix qt4 support (geant-4.9.3_p02-r1.diff,1.19 KB, patch)
2010-12-04 09:52 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mane00 2010-11-30 12:19:00 UTC
Also if i turn on the qt4 use the visualizzation driver fot qt was not compiled. I resolved the problem modifing the src_configure() in ebuild:

src_configure() {
	export GEANT4_DIR="/usr/share/${PN}${PV1}"
	# where to put compiled libraries;
	# we set env var G4LIB in src_install()
	# to avoid confusing make
	export GEANT4_LIBDIR=/usr/$(get_libdir)/${PN}${PV1}
	export G4INSTALL="${S}"
	export G4WORKDIR="${S}"
	export G4INCLUDE="${D}/usr/include/${PN}"
	export CLHEP_BASE_DIR=/usr

	# parse USE; just set flags of drivers to build, G4*_USE_* vars are set
	# later automatically for G4*_BUILD_*_DRIVER
	use minimal             && export G4UI_NONE=y \
							&& export G4VIS_NONE=y

	use motif               && export G4UI_BUILD_XM_SESSION=y
	use athena              && export G4UI_BUILD_XAW_SESSION=y
	if use qt4; then
		export G4UI_BUILD_QT_SESSION=y
                export G4VIS_BUILD_OPENGLQT_DRIVER=1
                export G4UI_USE_QT=1
                export G4VIS_USE_OPENGLQT=1
		export QTLIBS="-L/usr/$(get_libdir)/qt4 -lQtCore -lQtGui"
		export QTFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/Qt"
		use opengl && \
			export GLQTLIBS="${QTLIBS} -lQtOpenGL"
		#export QTFLAGS="${QTFLAGS} -I/usr/include/qt4/QtOpenGL"
	fi
	use dawn                && export G4VIS_BUILD_DAWN_DRIVER=y
	use raytracerx          && export G4VIS_BUILD_RAYTRACERX_DRIVER=y
	use openinventor        && export G4VIS_BUILD_OI_DRIVER=y
	use opengl              && export G4VIS_BUILD_OPENGLX_DRIVER=y
	use opengl && use motif && export G4VIS_BUILD_OPENGLXM_DRIVER=y
	use gdml                && export G4LIB_BUILD_GDML=y
	use geant3              && export G4LIB_BUILD_G3TOG4=y
	use zlib                && export G4LIB_USE_ZLIB=y
	use vrml                && export G4VIS_BUILD_VRML_DRIVER=y \
							&& export G4VIS_BUILD_VRMLFILE_DRIVER=y
	use aida                && export G4ANALYSIS_USE=y
	use data                && export G4DATA="${GEANT4_DIR}/data"
	use debug               && export G4DEBUG=y || export G4OPTIMIZE=y

	# switch to see compiling flags
	export CPPVERBOSE=y

	# if shared libs are built, the script will also build static libs
	# with pic flags
	# avoid that by building it twice and removing temporary objects
	export G4LIB_BUILD_SHARED=y
}

I thik the important line is:
export G4VIS_BUILD_OPENGLQT_DRIVER=1

Can you test ad update official ebuild for future geant version?

tanks.
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-12-04 09:52:50 UTC
Created attachment 256295 [details, diff]
fix qt4 support
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-12-04 09:55:32 UTC
Thank you for your report. I would like to ask you to submit diff against ebuilds (see attachment) rather than paste code into bugzie. Assigning to the maintainers. Thanks again!
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2011-01-22 02:35:32 UTC
fixed. aida will not come back until we have an implementation of aida in the gentoo portage tree