Re: [AD] cross compiling with mingw.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Tom Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:

> when it gets down to compiling makedoc-linux it tries this command:
> PATH= gcc -O2 -c -o docs/makedoc-linux.o docs/makedoc.c
>
> which obviously doesn't work.

if you take a look at makefile.all line 178 and 181 you will see that the
targets requires NATIVEPATH to be set to a valid path for it to work. you
obviously haven't done that. there are two things you can do about it.
either:

1) add the following lines to makefile.mgx:

docs:
        make CROSSCOMPILE="1" \
                MINGDIR="$(INSTALL_BASE)" \
                NATIVEPATH="$(PATH)" \
                PATH="$(XC_PATH):$(PATH)" docs

and run 'make -f makefile.mgx docs'. or

2) run make CROSSCOMPILE="1" MINGDIR="$INSTALL_BASE" NATIVEPATH="$PATH"
PATH="$XC_PATH:$PATH" docs manually.

currently makefile.mgx only exists to aid the user on building and
installing allegro and nothing else. this will change soon though as i plan
to do a minor update on makefile.mgx, fix the docs properly and probably add
a fixxming.sh script.

-henrik




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/