On Mon, 20 Dec 1999, patrick wrote:

> I was trying to compile a 3d modeller for povray
> the other day and failed.  It crapped out trying
> to find -lqgl (libqgl) with qt.

We didn't ship qgl because it depends on Mesa (or a different OpenGL
implementation), which is not included in Red Hat Linux 6.1. This will
change in 6.2 though.

> Question:  how do you rebuild a source rpm
> like qt using rpm so that it actually compiles
> and produces the gl stuff?  Do I have to install
> the src.rpm, dig thru the spec file or the src
> installation directories and find the little 
> bugger myself?

Yes. Here's what I've added for 6.2 (this is for Qt 2.1, though, you might
have to adapt it for Qt 1.44):

%package GL
Summary: OpenGL add-on for Qt
Group: System Environment/Libraries
Requires: /usr/X11R6/lib/libGL.so.1
BuildPrereq: /usr/X11R6/include/GL/gl.h

%description GL
OpenGL (3D graphics) add-on for Qt. Requires Mesa.

[after make]
cd extensions/opengl/src
make

[in %install]
cp lib/libqgl.a $RPM_BUILD_ROOT/usr/lib/qt-%{QTVERSION}/lib

[after the %files section]
%files GL
%defattr(-,root,root,-)
/usr/lib/qt-%{QTVERSION}/lib/libqgl.a

LLaP
bero

-- 
Nobody will ever need more than 640 kB RAM.
                -- Bill Gates, 1983
Windows 98 requires 16 MB RAM.
                -- Bill Gates, 1999
Nobody will ever need Windows 98.
                -- logical conclusion


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to