[Scribus] Compile error 1.2.1 on Ubuntu

Scott Karns scottkinsf
Tue Jan 11 17:05:48 CET 2005


--- David Purton <dcpurton at chariot.net.au> wrote:

> On Tue, Jan 11, 2005 at 12:59:14AM -0500, Jozsef Mak
> wrote:
> > After entering the command you mentioned I got the
> following output. It 
> > seems something isn't right but i dont know how
> should i interpret it.
> > 
> > mak at ubuntu:~ $ dpkg -S /usr/include/qt3/qglobal.h
> > libqt3-headers: /usr/include/qt3/qglobal.h
> > mak at ubuntu:~ $ dpkg -l libqt3-headers
> > Desired=Unknown/Install/Remove/Purge/Hold
> > |
>
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> > |/
> Err?=(none)/Hold/Reinst-required/X=both-problems
> (Status,Err: 
> > uppercase=bad)
> > ||/ Name           Version        Description
> >
>
+++-==============-==============-============================================
> > ii  libqt3-headers 3.2.3-4ubuntu1 Qt3 header files
> > mak at ubuntu:~ $
> > 
> 
> It does make sense, but I agree it is a bit weird to
> interpret.
> 
> The important line is the last one:
> 
>         ||/ Name           Version       
> Description
>        
>
+++-==============-==============-====================
>         ii  libqt3-headers 3.2.3-4ubuntu1 Qt3 header
> files
> 
> The first i indicates that you want the package
> installed
> The second i indicates that the package is currently
> installed
> The blank char indicates that there is nothing wrong
> with the install
> 
> The bad news is that you seem to have only QT 3.2.3.
> I *think* that
> Scribus wants at least QT 3.3.
> 
> I'm just a vanilla debian user, so I'll leave it to
> others to advise the
> best way to get QT 3.3 for Ubuntu.
> 
> cheers
> 
> dc
> 
> -- 
> David Purton
> dcpurton at chariot.net.au
>  
> For the eyes of the LORD range throughout the earth
> to
> strengthen those whose hearts are fully committed to
> him.
>                                  2 Chronicles 16:9a
> 

Jozsef,

I hope my solution to this problem helps you. I am
able to configure, ompile and run scribus-1.2.1 on a
Mandrake 10.0 system (Qt3.2). Since Mandrake uses RPM
for package management, I've excerpted the pertinent
section from my .spec file here:
==================================================
# this is a kludge!
%patch2 -p1 -b .acinclude
%patch3 -p1 -b .manpages
%patch4 -p1 -b .profiles


%build
export WANT_AUTOCONF_2_5="1"
export WANT_AUTOMAKE="1.7"

export QTDIR=%_prefix/lib/qt3
export KDEDIR=%_prefix

export
LD_LIBRARY_PATH=$QTDIR/%{_lib}:$KDEDIR/%{_lib}:$LD_LIBRARY_PATH
export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
export QTLIB=$QTDIR/%{_lib}

make -f Makefile.cvs dist

export CFLAGS="$RPM_OPT_FLAGS -I/usr/include/lcms"
export CXXFLAGS="$RPM_OPT_FLAGS -I/usr/include/lcms"

./configure %{_target_platform} \
        --program-prefix=%{?_program_prefix} \
        --prefix=%{_prefix} \
        --exec-prefix=%{_exec_prefix} \
        --bindir=%{_bindir} \
        --sbindir=%{_sbindir} \
        --sysconfdir=%{_sysconfdir} \
        --datadir=%{_datadir} \
        --includedir=%{_includedir} \
        --libdir=%{_libdir} \
        --libexecdir=%{_libexecdir} \
        --localstatedir=%{_localstatedir} \
        --sharedstatedir=%{_sharedstatedir} \
        --mandir=%{_mandir} \
        --infodir=%{_infodir} \
        --disable-debug \
        --without-xinerama
echo ">>>> configure finished ==> make"


%make
====================================================

The acinclude patch is what gets it to configure and
compile for me.

Contents of my acinclude.patch:
====================================================
--- scribus-1.2.1cvs/admin/acinclude.m4.in.orig
2004-11-15 15:33:06.000000000 -0700
+++ scribus-1.2.1cvs/admin/acinclude.m4.in     
2004-12-07 12:21:13.332665697 -0700
@@ -1130,9 +1130,9 @@
 AC_DEFUN([KDE_USE_QT],
 [
 if test -z "$1"; then
-  # Current default Qt version: 3.3
+  # Current default Qt version: 3.2
   kde_qtver=3
-  kde_qtsubver=3
+  kde_qtsubver=2
 else
   kde_qtsubver=`echo "$1" | sed -e
's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
   # following is the check if subversion isnt found
in passed argument
@@ -1156,11 +1156,7 @@
   if test "$kde_qtver" = "3"; then
     if test $kde_qtsubver -gt 0; then
         if test $kde_qtsubver -gt 1; then
-           if test $kde_qtsubver -gt 2; then
-               kde_qt_minversion=">= Qt 3.3"
-           else
-               kde_qt_minversion=">= Qt 3.2"
-           fi
+           kde_qt_minversion=">= Qt 3.2"
         else
             kde_qt_minversion=">= Qt 3.1 (20021021)"
          fi
====================================================

Beware of line folding performed by this MUA. This
patch works for me -- not particularly elegant, but it
works.

Good luck!
Scott Karns


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250




More information about the scribus mailing list