[Scribus] scribus-0.9.10 shared library extension fix for hpux 11.00

Gansser, Martin MGansser
Tue May 20 13:37:13 CEST 2003


Hi,

on hpux 11.00 the shared library extensions are .sl not so.
to fix the error message 'can't find Plugin' on hpux 11.00
the following patch is necessary:

--- scribus-0.9.10/scribus/scribus.cpp.orig     2003-05-20 13:01:35.000000000 +0200
+++ scribus-0.9.10/scribus/scribus.cpp  2003-05-20 13:04:43.000000000 +0200
@@ -3000,7 +3000,11 @@
        typedef About* (*sdem)(QWidget *d);
        sdem demo;
        QString pfad = PREL;
+#if defined(__hpux)
+       pfad += "/lib/scribus/libs/libabout.sl";
+#else
        pfad += "/lib/scribus/libs/libabout.so";
+#endif
        mo = dlopen(pfad, RTLD_LAZY);
        if (!mo)
                {
@@ -4551,7 +4555,11 @@
        typedef Preferences* (*sdem)(QWidget *d, preV *Vor);
        sdem demo;
        QString pfad = PREL;
+#if defined(__hpux)
+       pfad += "/lib/scribus/libs/libpreferences.sl";
+#else
        pfad += "/lib/scribus/libs/libpreferences.so";
+#endif
        mo = dlopen(pfad, RTLD_LAZY);
        if (!mo)
                {
@@ -5000,7 +5008,11 @@
        typedef PSLib* (*sdem)(bool psart, SCFonts &AllFonts, QMap<QString,QFont> DocFonts, CListe D
ocColors, bool pdf);
        sdem demo;
        QString pfad = PREL;
+#if defined(__hpux)
+       pfad += "/lib/scribus/libs/libpostscript.sl";
+#else
        pfad += "/lib/scribus/libs/libpostscript.so";
+#endif
        PSDriver = dlopen(pfad, RTLD_LAZY);
        if (!PSDriver)
                {
@@ -5030,7 +5042,11 @@
        typedef PDFlib* (*sdem)();
        sdem demo;
        QString pfad = PREL;
+#if defined(__hpux)
+       pfad += "/lib/scribus/libs/libpdf.sl";
+#else
        pfad += "/lib/scribus/libs/libpdf.so";
+#endif
        PDFDriver = dlopen(pfad, RTLD_LAZY);
        if (!PDFDriver)
                {


could someone check and committe it ?

I'm happy, PDF's export works now !
many thanks !

thanks Martin



More information about the scribus mailing list