clone 522659 -1
retitle -1 Make the examples compilable
severity -1 minor
thanks
On Sun, Apr 05, 2009 at 07:01:34PM +0200, Joachim Reichel wrote:
> The packages uses non-standard include dirs and library names. This is
> probably a result of the decision to support qt3 and qt4 packages, and to be
> able to install both flavours in parallel.
You're right. Just add one another assumption: the default at the moment
is Qt3 flavour - as it was before transition. I plan to left it as is until
squeeze will be released as stable. After that there will be no default.
However I am not sure yet about the last statement.
> This causes many problems. The non-standard library name makes it necessary to
> patch the build systems of other packages that would like to use libqglviewer.
> This is very inconvenient. (Actually there is such a package, cgal.)
That's the problem with any minor library depending on major library
appearing in different version. And there is no good solution - all known
me have some drawbacks.
> Another problem is the non-standard include dir. For example, not even the
> qglviewer demos compile without modifications, because the includes are
> expected to be found in a dirctory $SOME_PREFIX/QGlViewer.
That's my mistake and it would be fixed. Thank you for pointing the issue.
> 1. Install one of the two flavours (qt3, qt4) in the standard locations,
> such that it can be used by other software without problems. Keep the
> modifications for the other flavour. I'd strongly suggest that the qt4
> flavout ends up in the standard location, while the qt3 flavour keeps the
> current modifications.
For historical reasons I would do vice versa. Qt3 was the default in Debian.
And one can still use transitional packages which provide full (I hope)
compliance with libqglviewer before transition.
> 2. Provide directories /usr/share/libqglviewer-qt{3,4}, similar to
> /usr/share/qt{3,4}, with symlinks to the real locations. These directories
> should contain all the necessary stuff such one can pass this directory to
> the configuration script of any build system without requiring further
> modifications.
I am afraid that's not the case. Some files from Qt3 and Qt4 are installed
in standard locations but with -qt3 or -qt4 suffix. So, there are, for
example:
/usr/bin/moc-qt3
/usr/bin/moc-qt4
/usr/bin/qmake-qt3
/usr/bin/qmake-qt4
and following symlinks:
/usr/share/qt3/bin/moc -> ../../../bin/moc-qt3
/usr/share/qt4/bin/moc -> ../../../bin/moc-qt4
/usr/share/qt3/bin/qmake -> ../../../bin/qmake-qt3
/usr/share/qt4/bin/qmake -> ../../../bin/qmake-qt4
Most files in qglviewer are installed in different location for each
flavour. With exception of shared library files - they comes to /usr/lib.
Regards
--
(ac) ,<
_�_____ We all live in a yellow submarine...
<_______>
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]