[Magic-dev] installation problem

R. Timothy Edwards tim at opencircuitdesign.com
Wed Mar 19 11:38:19 EDT 2008


Dear Isabelle,

>  I tried to installed magic-7.4.59 on my computer. When I type "make 
> config", everything is fine. No make.log is generated. But when I type 
> "make", then I have the error message
> 
> $ sudo make
> --- errors and warnings logged in file make.log
> --- making modules
> --- compiling cmwind/CMWmain.o
> CMWmain.c:26:25: erreur: utils/magic.h : Aucun fichier ou répertoire de 
> ce type
> CMWmain.c:27:28: erreur: utils/geometry.h : Aucun fichier ou répertoire 
> de ce type
> CMWmain.c:28:29: erreur: windows/windows.h : Aucun fichier ou répertoire 
> de ce type
> .....

I learned French before the Internet age, but I did manage to translate
"no such file or folder".  The path to header files declared in quotes
(like #include "utils/magic.h") must be relative to some "-I <directory>"
passed to the compiler.  In magic, this is done in the file "defs.mak"
in the definition "CPPFLAGS =".  This normally says

	CPPFLAGS = -I. -I${MAGICDIR}

Change "${MAGICDIR}" to the full path of the top-level source
directory, and I think it should compile properly.

Alternately, it may be that the problem is caused by using "sudo", and
you may get better results by simply doing "make".

					Regards,
					Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: tim at opencircuitdesign.com    |
| Open Circuit Design, Inc.	 | web:   http://opencircuitdesign.com |
| 22815 Timber Creek Lane        | phone: (301) 528-9364               |
| Clarksburg, MD 20871-4001      | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+



More information about the magic-dev mailing list