On Wed, 9 May 2007 08:49:45 +0100
"MacArthur, Ian \(SELEX\) \(UK\)" <[EMAIL PROTECTED]> wrote:
>
> > > > then compilation test like this
> > > >
> > > > [EMAIL PROTECTED]:~/src/fltk-2.0.x-r5528>
> > > > /usr/ppc/arm-wince-mingw32ce/bin/gcc -I/usr/local/include
> > > > -I/usr/X11/include -Wno-non-virtual-dtor -o arc test/arc.cxx
> > > > -L/usr/local/lib /usr/local/lib/libfltk2.a -L/usr/X11/lib
> > -lsupc++
> > >
> > >
> > > Hmm, don't like the look of that compile command much at all.
> > > The include paths look all wrong for a cross-compile
> > target, as do the
> > > library paths.
> >
> > Because this string is constructed by
> > '/usr/local/bin/fltk2-config --compile test/arc.cxx'
> > I've expanded it, to show full libraries list (includes
> > and libs).
>
>
> No, what I mean is that you seem to have the wrong include and library
> paths in your command.
>
> If you are cross-compiling a wince build from a non-wince host, then the
> paths can not be "/usr/local/anything" since that path will pick up the
> *host* file, not the cross-compile file.
>
> Your paths should probably be like
> "/usr/ppc/arm-wince-mingw32ce/include" and so forth, to get the
> cross-compile *target* files.
>
> That's what I was meaning you to change in makeinclude - to make sure
> the paths all point at the cross-compile target, and to make sure that
> makeinclude names the cross-compile tools (e.g.
> "/usr/ppc/arm-wince-mingw32ce/bin/ld" rather than just "ld",
> "/usr/ppc/arm-wince-mingw32ce/bin/ar" rather than just "ar", etc...)
IIRC, all these things (CXX, CC, AR, RANLIB) were changed by me in
makeinclude.
About include paths - gcc from arm-wince-mingw32ce finds dirent.h,
w32api/*.h
quite well, so I don't need to worry about includes at all.
What makes me nervous a bit - inability to turn off X dependancy.
"./configure --without-x" spews error (under SUSE, don't know about
Windows XP though).
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev