From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Problem compiling on Windows 7: Symbol's function definition is void: org-find-library-dir
Date: Mon, 10 Sep 2012 15:02:03 -0500 [thread overview]
Message-ID: <CA+M2ft_MNqY7geTsKhp3ha+-saKD2Mm=N2VzDRbbsEsB7sZ=ZA@mail.gmail.com> (raw)
In-Reply-To: <CA+M2ft-TU73LGEWg=WPoW_W6aS94v6Dy9LM1Uj3bFy_URE0frA@mail.gmail.com>
On Mon, Sep 10, 2012 at 2:42 PM, John Hendy <jw.hendy@gmail.com> wrote:
> I'm starting a new thread for this issue. My process:
>
> - git pull
>
> - cd into ~/path/org.git/mk
>
> - run Worg compile command from cmd utility:
> #+begin_src cmd
> C:\path\to\emacs-23.3\bin\emacs.exe -batch -Q -L lisp -l
> ../mk/org-fixup -f org-make-autoloads-compile
> #+end_src
>
> - get following error
> ,-----
> | Cannot open load file: ../mk/org-fixup
> `-----
>
> - check working dir with =dir=
> ,-----
> | Directory of C:\path\to\org.git\mk
> `-----
>
> - added \path\to\emacs-23.3\bin to Windows path variable
>
> - verified that from cmd utility, 'emacs' indeed opens emacs
>
> - redid the above
>
> Now, I recalled the Worg command being `emacs -batch ... -l
> ../mk/org-fixup.el ...` (not the ".el"). When I try that, it tries but
> fails:
> ,-----
> | Symbol's function definition is void: org-find-library-dir
> `-----
>
> This is *with* emacs in the path. I wondered if starting emacs from
> cmd with a path would somehow evaluate it using the emacs bin
> directory as the "home base" and for that reason not realize it should
> be operating in ../path/to/org.git/mk, but with it in $PATH, I'm
> thinking that isn't an issue.
>
> org-find-library-dir is called here in org-fixup.el:
> #+begin_src lisp
> (defun org-make-autoloads (&optional compile force)
> "Make the files org-install and org-version.el in the install directory.
> Finds the install directory by looking for library \"org\".
> Optionally byte-compile lisp files in the install directory or
> force re-compilation. This function is provided for easier
> manual install when the build system can't be used."
> (let* ((origin default-directory)
> (dirlisp (org-find-library-dir "org"))
> (dirorg (concat dirlisp "../" ))
> (dirodt (if (boundp 'org-odt-data-dir)
> org-odt-data-dir
> (concat dirorg "etc/"))))
> (unwind-protect
> (progn
> (cd dirlisp)
> (org-fixup)
> (org-make-org-version (org-release) (org-git-version) dirodt)
> (org-make-org-install)
> (when compile (byte-recompile-directory dirlisp 0 force)))
> (cd origin))))
> #+end_src
>
> I get no completions in emacs trying to run =M-x org-find-library-dir=.
>
> I tried replacing = (dirlisp (org-find-library-dir "org"))= with
> =(dirlisp (concat "C:/path/to/org.git"))= and it *seemed* to compile.
> I got a final report of:
> ,-----
> | Done (Total of 66 files compiled, 18 failed, 5 skipped in 7 directories)
> `-----
>
> Any suggestions?
>
>
> Thanks,
> John
As a followup, the =lispdir= variable is looking for things in my
emacs install, at least per my read of default.mk. I just compile and
leave things in the org git repo vs. actually installing them. Is the
byte compiling code from Worg trying to install or just make the
autoloads/compile? I don't want to install. Do I need to set these in
default.mk in order to compile org? There's no mention of tweaking
default.mk in Worg, though if this is required I'll definitely have to
do so since it's set up for Linux.
John
next prev parent reply other threads:[~2012-09-10 20:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-10 19:42 Problem compiling on Windows 7: Symbol's function definition is void: org-find-library-dir John Hendy
2012-09-10 20:02 ` John Hendy [this message]
2012-09-10 20:04 ` Achim Gratz
2012-09-10 20:29 ` John Hendy
2012-09-10 20:52 ` Achim Gratz
2012-09-10 21:12 ` John Hendy
2012-09-11 17:43 ` Achim Gratz
2012-09-11 17:56 ` John Hendy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+M2ft_MNqY7geTsKhp3ha+-saKD2Mm=N2VzDRbbsEsB7sZ=ZA@mail.gmail.com' \
--to=jw.hendy@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.