Quote:
Originally Posted by LeFrettchen
I found a solution.
I edited the file "./emc/usr_intf/axis/extensions/togl.c", and it seems that gmake is searching "tk8.4a3.h" instead of "tk.h".
So I tried a
Code:
# ln -s /usr/local/include/tk8.4/tk.h /usr/local/include/tk8.4/tk8.4a3.h
and that's it.
|
Nasty and hackish, that. The full code around that line, looking at their git repository is the following:
Code:
#ifdef USE_LOCAL_TK_H
#include "tk8.4a3.h"
#else
#include <tk.h>
#endif
So I'm not going to look into how USE_LOCAL_TK_H gets defined, but I want to guess this is a specific version they (sometimes?) distribute along with their distribution. I'd think you'd want USE_LOCAL_TK_H to end up not defined. That ought to happen from running the configure script. Looking at
http://git.linuxcnc.org/gitweb?p=lin...9cd8a192fafcab there's nothing about how to disable this extension that's failing to build or to specify the include and library directories for Tcl/Tk. Perhaps if you run ./configure --help you'll see something.
Otherwise, the way to debug this build properly is to look at what the configure script did or failed to do. It happens that Makefiles on random software packages do not respect your CFLAGS and LDFLAGS (one of the many reasons why it's much nicer when someone does a port/package for us). Did you have them set before running configure? If there's nothing in configure's output about, blah blah blah,
Never mind that, just look in
http://git.linuxcnc.org/gitweb?p=lin...9cd8a192fafcab section 5. See the answer to your question there?