[Scribus] Compile Errors

Klaus Ade Johnstad klaus
Wed Sep 24 07:21:56 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

onsdag 24. september 2003, 03:09, skrev Joe Villari:

> --prefix switch did the trick. Now I have a make error:
>
> Making all in svgimplugin
> make[4]: Entering directory
> `/home/joev/scribus-1.1.0/scribus/plugins/svgimplugin'
> /usr/lib/qt3-gcc2.95/bin/moc ./svgplugin.h -o svgplugin.moc
> source='svgplugin.cpp' object='svgplugin.lo' libtool=yes \
> depfile='.deps/svgplugin.Plo' tmpdepfile='.deps/svgplugin.TPlo' \
> depmode=gcc /bin/sh ../../../admin/depcomp \
> /bin/sh ../../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H
> -I. -I. -I../../.. -I/usr/include/freetype2
> -I/usr/lib/qt3-gcc2.95/include -I/usr/X11R6/include
> -I../../../scribus -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2
> -fno-exceptions -fno-check-new -c -o svgplugin.lo `test -f
> 'svgplugin.cpp' || echo './'`svgplugin.cpp mkdir .libs
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/include/freetype2
> -I/usr/lib/qt3-gcc2.95/include -I/usr/X11R6/include
> -I../../../scribus -DQT_THREAD_SUPPORT -D_REENTRANT -O2
> -fno-exceptions -fno-check-new -c svgplugin.cpp
> -Wp,-MD,.deps/svgplugin.TPlo  -fPIC -DPIC -o .libs/svgplugin.o
> svgplugin.cpp: In method `class QWMatrix
> SVGPlug::parseTransform(const QString &)':
> svgplugin.cpp:521: implicit declaration of function `int tan(...)'
> svgplugin.cpp: In method `const char * SVGPlug::getCoord(const char
> *, double &)':
> svgplugin.cpp:587: implicit declaration of function `int pow(...)'
> svgplugin.cpp: In method `void SVGPlug::calculateArc(FPointArray *,
> bool, double &, double &, double, double, double, double, double,
> bool, bool)':
> svgplugin.cpp:819: `M_PI' undeclared (first use this function)
> svgplugin.cpp:819: (Each undeclared identifier is reported only once
> svgplugin.cpp:819: for each function it appears in.)
> svgplugin.cpp:874: implicit declaration of function `int atan2(...)'
> svgplugin.cpp:881: implicit declaration of function `int ceil(...)'
> make[4]: *** [svgplugin.lo] Error 1
> make[4]: Leaving directory
> `/home/joev/scribus-1.1.0/scribus/plugins/svgimplugin'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/joev/scribus-1.1.0/scribus/plugins'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/joev/scribus-1.1.0/scribus'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/joev/scribus-1.1.0'
> make: *** [all] Error 2
> [joev at localhost scribus-1.1.0]$
>
> Thanks Again
> Joe

I had the same problem at my Debian Woody machine, solved it my adding a 
line.
Insert ?#include <math.h>? at the beginning of
 scribus-1.1.0/scribus/plugins/svgimplugin/svgplugin.cpp

- -- 
Klaus
http://www.holmlia.gs.oslo.no
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/cSn3hJ+fXyb6R30RAmtcAKCLpkE8SMoHNgANpYlCBR9HJjh0MQCgkv2S
QMtohlyHqAk0imCUn4OKwjU=
=2Vap
-----END PGP SIGNATURE-----




More information about the scribus mailing list