I'm trying to make the blackfin toolchain on OS X (normally it's for RedHat) and I'm hitting a snag when running the build script. It tries including X11/Xlib.h, but it's not finding it. I heard this file gets downloaded as part of the Xcode Command Line tools, which I've installed, but the file still isn't found.
The specific line trying to import the file is:
#include <X11/Xlib.h>
Where is X11/Xlib.h on my computer, currently (if at all... if it's not, it prompts the question, where can I get it?) and further, where do I need to put it or what do I need to change for the file to properly get imported?
Here's the blackfin toolchain source forge page, for those interested:
http://sourceforge.net/projects/adi-toolchain/files/2013R1/2013R1-RC1/src/
Edit:
Okay, after some more searching I found out that X11's library gets installed in /opt/X11.
Further, I found a suggestion to make a symlink to it like this:
ln -s /opt/X11/include/X11 /usr/local/include/X11
I did that, but I'm still running into these problems:
Any idea what I'm missing now?
I found a suggestion that it might mean /usr/X11/lib/libX11.so or .a is missing. I checked that directory and didn't see either of those files, but I found these two:
/usr/X11/lib/libX11.6.dylib
/usr/X11/lib/libX11-xcb.1.dylib
The specific line trying to import the file is:
#include <X11/Xlib.h>
Where is X11/Xlib.h on my computer, currently (if at all... if it's not, it prompts the question, where can I get it?) and further, where do I need to put it or what do I need to change for the file to properly get imported?
Here's the blackfin toolchain source forge page, for those interested:
http://sourceforge.net/projects/adi-toolchain/files/2013R1/2013R1-RC1/src/
Edit:
Okay, after some more searching I found out that X11's library gets installed in /opt/X11.
Further, I found a suggestion to make a symlink to it like this:
ln -s /opt/X11/include/X11 /usr/local/include/X11
I did that, but I'm still running into these problems:
Code:
Checking for development packages (skip checks with the -D option)
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
ld: warning: directory not found for option '-L/sw/lib'
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
ld: warning: directory not found for option '-L/sw/lib'
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
ld: warning: directory not found for option '-L/sw/lib'
ld: library not found for -lX11
Any idea what I'm missing now?
I found a suggestion that it might mean /usr/X11/lib/libX11.so or .a is missing. I checked that directory and didn't see either of those files, but I found these two:
/usr/X11/lib/libX11.6.dylib
/usr/X11/lib/libX11-xcb.1.dylib
Last edited: