On Tue, 8 May 2007 20:16:46 +0200
matthiasm <[EMAIL PROTECTED]> wrote:

> 
> On May 8, 2007, at 8:02 PM, Anton 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).
> >     FYI, running like mentioned below, gives the same effect, i.e.
> >
> > /usr/local/lib/libfltk2.a(Window.o):Window.cxx:(.text+0x33c):  
> > undefined reference to `OpenIcon'
> 
> Hmm, first of all, you should not b linking with X11 at all if you  
> try to create a WindowsCE executable. Secondly, you should ost  
> definetly not link with the *native* X11 (or any other native  
> libraries).

[EMAIL PROTECTED]:~/src/fltk-2.0.x-r5528> ./configure --without-x 
--enable-cygwin

checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for X... disabled
configure: error: Configure could not find required X11 libraries
./configure: line 10136: exit: aborting.: numeric argument required
./configure: line 10136: exit: aborting.: numeric argument required

        <configure snip>
        if test x$no_x = xyes; then
            { { echo "$as_me:$LINENO: error: Configure could not find required 
X11 libraries" >&5
echo "$as_me: error: Configure could not find required X11 libraries" >&2;}
   { (exit aborting.); exit aborting.; }; }
        fi

        <configure snip/>

That's why I did run as ./configure --enable-cygwin --host=arm

> 
> -I in your command line should have some argument similar to -I/usr/ 
> ppc/arm/include ...


Are we talking about configure invocation or test apps compile stage?

Thanks.

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to