From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Problem compiling on Windows 7: Symbol's function definition is void: org-find-library-dir Date: Mon, 10 Sep 2012 14:42:57 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB9sp-000141-J6 for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 15:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB9so-0001HT-Jk for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 15:42:59 -0400 Received: from mail-vc0-f169.google.com ([209.85.220.169]:60553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB9so-0001HL-FR for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 15:42:58 -0400 Received: by vcbfl13 with SMTP id fl13so2349495vcb.0 for ; Mon, 10 Sep 2012 12:42:57 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode 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