|
From: Gudjon I. G. <gu...@mc...> - 2007-05-07 08:03:37
|
Hi My name is Gudjon and I have made a Debian package out of QwtPlot3d that= is=20 already in the distribution. It is great that the work on the library will resume, I look forward to= =20 that but I have a question. I dislike having 3dparty libraries within packages since Debian has the= =20 dependency framework that lets one package install another. Gl2ps in=20 QwtPlot3d is also an old version of the library. I tried to compile QwtPlot= 3d=20 against the new version and got the following result: src/qwt3d_io_gl2ps.cpp:377: error: cannot convert =E2=80=98GLfloat*=E2=80= =99 to =E2=80=98GLfloat=E2=80=99 for=20 argument =E2=80=985=E2=80=99 to =E2=80=98GLint gl2psTextOpt(const char*, co= nst char*, GLshort, GLint,=20 GLfloat)=E2=80=99 The last argument has changed to angle in the gl2ps library. So with this u= gly=20 change the new library works. diff src/qwt3d_io_gl2ps.cpp.org src/qwt3d_io_gl2ps.cpp 377c377,378 < ret =3D gl2psTextOpt(str, fontname, (int)fontsize, a, 0); =2D-- > //ret =3D gl2psTextOpt(str, fontname, (int)fontsize, a, rgba2); > ret =3D gl2psTextOpt(str, fontname, (int)fontsize, a, 0);//rgba2); Has anyone fixed this in a more beautiful way? Regards Gudjon |