Re: [AD] cross compiling with mingw.

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


Henrik Stokseth wrote:
> 
> 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:

It was my fault. I wasn't aware of the makefile.mgx file and thought
that the chages in makefile.mgw would allow for using the cross-make.sh
script that comes with the cross-tools mingw32 package.

> 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.
> 

:) Good idea.

-- 
Tom Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net/



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