emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-odt: cannot find factory styles


From: Jambunathan K
Subject: Re: [O] org-odt: cannot find factory styles
Date: Sat, 03 Mar 2012 02:08:21 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (windows-nt)

The easiest solution is to use ELPA. There is some instruction on how to
use ELPA here:

http://orgmode.org/worg/org-faq.html#installing-via-elpa

If you are installing through ELPA for the first time, make sure that
you have no installation of org in your load-path. M-x locate-library
RET org RET will show where the current Org is located. Rename the
parent dir to someother name, so that it is removed out of load
path. Repeat this process until there is no more Org in your
load-path. Then proceed with ELPA installation.

Another solution is to download the tar and use

$ make install

More specifically, use of "byte-compile-directory" to compile and
install Org will definitely *break* the ODT exporter. Copying the .elc
files by hand will also break the exporter. The only solution to have a
working installation is to use "make install" to install the Org >= 7.8.

,----
| # Where local software is found
| prefix=/usr/local
| 
| # Where local lisp files go
| lispdir   = $(prefix)/share/emacs/site-lisp
| 
| # Where data files go
| # $(datadir) contains auxiliary files for use with ODT exporter.
| # See comments under DATAFILES.
| datadir = $(prefix)/share/emacs/etc
`----

> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/org/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/etc/org/...

The above two messages suggests that whoever built the binaries had the
following setting for lispdir.

lispdir = c:/emacs-23.4/site-lisp/org

and *didn't* use 'make install'.

If the Org is meant for a global distribution (as opposed to personal
installation), the distributor has to specifically ask the users to copy
the styles file to <<data-directory>>/etc/org.

C-h v data-directory

In your case, the data-directory is c:/emacs-23.4/etc/org/.

Emacs-24.1 (pretest) users will not see this problem because the styles
files are already part of the emacs tree. See
http://bzr.savannah.gnu.org/lh/emacs/trunk/files/head:/etc/org/.


Style files from the git repo is here:
http://orgmode.org/w/?p=org-mode.git;a=tree;f=etc/styles;hb=HEAD

Schema files form the git repo is here:
http://orgmode.org/w/?p=org-mode.git;a=tree;f=contrib/odt/etc/schema;hb=HEAD

Remember to download the raw files if you are downloading from git repo.


> Hello all,
>
> I've been googling this problem and searching the archives, but I
> can't seem to find a solution.  When I try to export to ODT, I get
>
> Error (org-odt): Cannot find factory styles files. Aborting.
>
> Looking in my *Messages* buffer, I see at startup:
>
> Debug (org-odt): Searching for OpenDocument schema files...
> Debug (org-odt): Trying
> c:/c/Emacs-modified/tmpdir/emacs-23.4/etc/org/schema/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/contrib/odt/etc/schema/...
> Debug (org-odt): No OpenDocument schema files installed
> Debug (org-odt): Searching for OpenDocument styles files...
> Debug (org-odt): Trying
> c:/c/Emacs-modified/tmpdir/emacs-23.4/etc/org/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/org/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/etc/org/...
> Problems while trying to load feature `org-odt'
>
> So you can see that i am using Windows (Win 7 64 bit).  In fact, I am
> using Vincent Goulet's Windows installer (modified-2, FWIW), and I
> directed it to install into C:/emacs-23.4 instead of the default
> C:/Program Files (x86) directory.
>
> Looking in the site-lisp directories for the folders org-odt is
> searching, I don't see contrib, org, or etc directories.
>
> But I do see C:/emacs-23.4/etc/org/styles, which has OrgOdtStyles.xml,
> and C:/emacs-23.4/etc/schema, which doesn't obviously have any files
> to do with ODT.
>
> Is there a workaround or alternative installation to fix it?  It would
> be really cool to export to ODT!
>
> M

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]