LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   compiling openoffice (https://www.linuxquestions.org/questions/slackware-14/compiling-openoffice-208073/)

busbarn 07-21-2004 08:18 PM

compiling openoffice
 
I am trying to build an OpenOffice.org slackware package. During ./configure, I get this error:
Code:

checking for xmkmf... no
configure: error: install xmkmf to run this script, include openwin in path

I have passed the following options in the configure script:
Code:

--prefix=/usr --sysconfdir=/etc --localstatedir=/var --bindir=/usr/bin \
--with-jdk-home=/usr/lib/j2sdk1.4.2_04 --x-includes=/usr/X11R6 --x-libraries=/usr/X11R6/lib \
--disable-mozilla

I manually checked to see if I have xmkmf installed:
Code:

whereis xmkmf
xmkmf: /usr/X11R6/bin/xmkmf /usr/bin/X11/xmkmf

Can anybody help me with how to pass this argument to get configure past this?
Thanks in advance.

iro 07-21-2004 08:46 PM

If you check out the results of:

./configure --help

It will hopefully tell you how to explicitly specify where xmkmf is

busbarn 07-21-2004 08:57 PM

Unfortunately, it doesn't, unless I'm missing it.
Quote:

For better control, use the options below.

Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]

X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR

Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-libart Enables the use of libart, instead of GPC for
polygon clipping.

--enable-libsn Enables the use of libstartup-notification

--disable-mozilla OO.o usually includes a strangely hacked up mozilla
binary for your platform, to build without this
version, use this option.

Usage: --disable-mozilla

--enable-gcc3 Deprecated: Now has no effect, checks compiler version

--enable-symbols Include debugging symbols in output. Warning -
a complete build needs 8 Gb of space and takes
much longer. (enables -g compiler flag)

--enable-symbols=SMALL sets the gcc -g1 setting
which is smaller.


--enable-debug: Include debugging symbols from --enable-symbols
plus extra debugging code. Extra large build!
(enables -g compiler flag and dmake debug=true)

--enable-crashdump: Enable the crashdump feature code. This option
implicitly activates --enable-symbols.

--enable-cl-standard For Microsoft C/C++ compiler users, use non-optimizing standard compiler.
( This just disables optimization options and therefore removes a lot of
warnings when using the cheaper standard compiler. )

--enable-static-gtk: Modules that are linked against gtk libraries use
the static libraries instead of the dynamic ones.
(enables -Bstatic linker flag for gtk libraries)

--disable-rpath: Disable the use of relative paths in shared libraries

--disable-java Build without Java support. Use if there is no supported JDK
for your platform. The build will have no support for Java
components, applets, accessibility or XML filters.

--enable-check-only Use this option option if you just want to check your
environment. This option stops the generation of an
????env.set

Usage: --enable-check-only=yes

--enable-macos9 Use this option option if you want to generate a
macos9 environment on macosx.

Usage: --enable-macos9

--enable-sgistl for IRIX users, use this option option to build
OpenOffice.org using SGI's STL.

Usage: --enable-check-only=yes


Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD

--with-gnu-cp Specify location of GNU cp on Solaris or FreeBSD

--without-gpc *NOT RECOMMENDED* Removes GPC code from
openoffice.org Reduces some graphics capability
slightly.
This is required to allow some strict packagers to
comply with their distrubution policy.

--without-fonts Removes Bitstream Vera fonts from
openoffice.org installation set, for people building
for specific distributions where the fonts are known
to be already available

--with-system-zlib Use zlib already on system

--with-stlport4-home The location that STLport4 is installed in. The STL
header files are assumed to be in stlport4-home/stlport
and the STLport4 library in stlport4-home/lib.

Usage: --with-stlport4-home=<absolute path to stlport4 home>

--with-jdk-home if you have installed JDK 1.3, on your system,
please supply the path here.
Note that this is not the location of the Java binary but the
location of the entire distribution.

Usage: --with-jdk-home=<absolute path to JDK 1.3 home>

--with-gxx-include-path if you want to override the autodetected g++ include path.

Usage: --with-gxx-include-path=<absolute path to g++ include dir>

--with-ant-home If you have installed Jakarta Ant on your system,
please supply the path here.
Note that this is not the location of the Ant binary
but the location of the entire distribution.

Usage: --with-ant-home=<absolute path to Ant home>

--with-perl-home If you have installed the Perl 5 Distribution, on your
system, please supply the path here.
Note that this is not the location of the Perl binary
but the location of the entire distribution.

Usage: --with-perl-home=<absolute path to Perl 5 home>

--with-cl-home For Windows NT users, please supply the path
for the Microsoft C/C++ compiler.
Note that this is not the location of the compiler
binary but the location of the entire distribution.

Usage: --with-cl-home=<absolute path to Microsoft C/C++ compiler home>

--with-mspdb-path For Microsoft C/C++ compiler users, please supply the path
pointing to the mspdb60.dll (MSVC 6) or mspdb7x.dll (.NET).

Usage: --with-mspdb-path=<absolute path to mspdb60.dll/mspdb7x.dll>

--with-midl-path For Microsoft C/C++ .NET compiler users, please supply the path
pointing to the midl.exe.

Usage: --with-midl-path=<absolute path to midl.exe>

--with-wdevenv-path For Microsoft C/C++ .NET compiler users, please supply the path
pointing to the wdevenv.exe.

Usage: --with-wdevenv-path=<absolute path to wdevenv.exe>

--with-psdk-home For Windows NT users, please supply the path
for the Microsoft Platform SDK.

Usage: --with-psdk-home=<absolute path to Microsoft Platform SDK>

--with-2003-psdk Deprecated: Now has no effect.

--with-old-psdk For Windows users, and compatibility reasons. Please
use this option for the October 2002 version of the
Microsoft Platform SDK.

This is a temporary workaround!

Usage: --with-old-psdk

--with-local-solenv If you have solenv in a location other than ../solenv,
please supply the path here.

Usage: --with-local-solenv=<absolute path to solenv>

--with-local-solver if you have solver in a location other than ../solver,
please supply the path here.

Usage: --with-local-solver=<absolute path to solver>

--with-lang Use this option to build OpenOffice.org with
additional language support. US English is always
included by default. Separate multiple languages with
commas. For all languages, use --with-lang=ALL.

Usage: --with-lang=SPAN,SWED,TURK

--with-dict Use this option to build OpenOffice.org with
dictionary support. ALL dictionaries are always
included by default unless overridden with
this option. Separate multiple dictionaries with
commas. For all dictionaries, use --with-dict=ALL.

Usage: --with-dict=ENGB,ENUS,ITIT

--with-asm-home For Windows users, please supply the path for the
ml.exe assembler.

Usage: --with-asm-home=<path to ml.exe directory>

--with-os-version For FreeBSD users, use this option option to override
the detected OSVERSION.

Usage: --with-os-version=<OSVERSION>

--with-unzip-home Deprecated: use --with-zip-home instead
--with-zip-home If you use a non standard zip, for example windows
please supply the path for zip

Usage: --with-zip-home=<path to zip executable>

--with-mingwin For Windows users, use the mingwin32 compiler within
cygwin environment, this implies --with-use-shell=tcsh

Usage: --with-mingwin=yes

--with-use-shell Select shell different form the default shell. For
Windows users, don't use the 4NT shell with
"mingwin32" environment

Usage: --with-use-shell=<desired shell>

--with-x use the X Window System

Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
I'd appreciate any help I can get if i'm missing something.

tank728 07-22-2004 12:36 AM

Yes from what I hear it is painful, but very do able, a guy name Diffie has do it over at the dropline forums for version 1.1.1, now 1.1.2 is out (I think). Here is the link I believe on the second page that some asked him how he did it, and he goes it to detail about it. Let us know when you have done it. Good Luck.

-tank

busbarn 07-22-2004 12:01 PM

Thanks for the link. Unfortunately, I haven't even made it past the configure stage because it can't find this file. Any ideas package building gurus?

MilkyBar_Kid 07-22-2004 12:54 PM

Hi

This may sound silly, but have you checked the md5 to make sure file wasn't corrupted during the D/L?

trey85stang 07-22-2004 01:19 PM

whereis xmkmf
xmkmf: /usr/X11R6/bin/xmkmf /usr/bin/X11/xmkmf

I would try symlinking xmkmf to /usr/bin

Code:

cd /usr/bin/
ln -s /usr/bin/X11/xmkmf

i bet it will find it after doing that.


Also, there is an openoffice binary installer.... I would use that.. unless you just want to compile it for the sake of comopiling it :)

busbarn 07-22-2004 04:35 PM

I want to be able to make a slackware package for it--easier for install and uninstall. I'll try the binary installer to see if I can get the makepkg stuff to work.

The symlink worked! Now there's other hurdles but I'll try the binary installer first!

Thanks, it seems overly simple now.

dhave 10-25-2004 11:54 AM

Quote:

Originally posted by trey85stang
whereis xmkmf
xmkmf: /usr/X11R6/bin/xmkmf /usr/bin/X11/xmkmf

I would try symlinking xmkmf to /usr/bin

Code:

cd /usr/bin/
ln -s /usr/bin/X11/xmkmf

i bet it will find it after doing that.

(It's been said before, but ...) Ah, the power of Linux.


All times are GMT -5. The time now is 10:31 AM.