LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error compiling Openoffice (https://www.linuxquestions.org/questions/linux-newbie-8/error-compiling-openoffice-706428/)

paulclark 02-21-2009 10:25 AM

Error compiling Openoffice
 
I am trying to compile Openoffice but have the following compile error.

---------------------------------------------------------------------------
/home/paul/t/OOG680_m9/canvas/source/cairo/cairo_cairo.cxx: In member function 'cairo::Surface* cairo::Surface::getSimilar(cairo::Content, int, int)':
/home/paul/t/OOG680_m9/canvas/source/cairo/cairo_cairo.cxx:202: error: 'PictStandardA8' was not declared in this scope
/home/paul/t/OOG680_m9/canvas/source/cairo/cairo_cairo.cxx:205: error: 'PictStandardRGB24' was not declared in this scope
/home/paul/t/OOG680_m9/canvas/source/cairo/cairo_cairo.cxx:209: error: 'PictStandardARGB32' was not declared in this scope
/home/paul/t/OOG680_m9/canvas/source/cairo/cairo_cairo.cxx:213: error: 'XRenderFindStandardFormat' was not declared in this scope
dmake: Error code 1, while making '../../unxlngi6.pro/slo/cairo_cairo.obj'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /home/paul/t/OOG680_m9/canvas/source/cairo
dmake: Error code 1, while making 'build_instsetoo_native'
---------------------------------------------------------------------------

I have installed Cairo but suspect some other dependency is missing but dont know what?

Paul Clark

weibullguy 02-21-2009 10:41 AM

Those are all provided by libXrender, IIRC. Make sure you have the latest libXrender installed.

paulclark 02-21-2009 11:46 AM

In /usr/lib I have

libXrender.a
libXrender.la
libXrender.so
libXrender.so.1
libXrender.so.1.3.0

along with the rest of the X-libraries?

Paul Clark

weibullguy 02-21-2009 01:37 PM

I'm assuming you are using a pre-compiled distribution (don't know, because you don't have it listed). When using a pre-compiled distro, you also need to explicitly install the development files. These are packages that have the same name, but are suffixed with -dev or -devel. Use you package manager to find the development files package for libXrender.

John VV 02-21-2009 02:38 PM

you need to install the header files for "libXrender" .ether build libXrender from the source or install the libXrender-dev,or libXrender-devel for your distro.
and why not install the prebuilt openoffice , from openoffice web site OR the ones already made for YOUR distro ( whatever it is )
on fedora it is
--
yum install openoffice
--
are you using a distro that has app get or yum

paulclark 02-22-2009 04:52 AM

I have been following the "Linux From Scratch" and "Beyond Linux From Scratch" books. So have installed everything from source.

I have now compiled libXrender again and installed it. I notice during the "make install":-

/usr/bin/install -c -m 644 '../include/X11/extensions/Xrender.h' '/usr/include/X11/extensions/Xrender.h'

So is my problem that this "header" file is not found during the Openoffice compile?

I will fall back to installing the binary if I cannot make this work. But as everything else is from source and Openoffice is the last thing I need I don't want to throw in the towel just yet.

Paul Clark

John VV 02-22-2009 10:16 AM

or export the include file from ./configure
run
Code:

./configure --help
for the instructions

John VV 02-22-2009 10:17 AM

or export the include file from ./configure
run
Code:

./configure --help
for the instructions

paulclark 02-22-2009 10:57 AM

Do you mean I should look at ./configure --help in Openoffice or libXrender?

John VV 02-22-2009 11:23 AM

your problem is with Openoffice so...

paulclark 02-24-2009 04:58 PM

I was a bit confused over what "export the include file from ./configure" means but
after the pointer you gave I found and used the option
"--with-system-xrender-headers" and the compile has now worked thank you. Does that mean that this switch "exports the include"?


All times are GMT -5. The time now is 09:55 AM.