I am using FLTK on ARM with nano-X/nxlib but either X or nano-X compiled for 
ARM should do.
Your FLTK makeinclude file is including headers from your 386 build system - 
they need to be included from your arm cross compiler directory.
I hacked the makeinclude file to include the correct directory look for CFLAGS, 
CXXFLAGS -I(path), but you should be able to add --includedir=/(path) to 
./configure.
For my system (gumstix), this macro is defined in :
...build_arm_nofpu/stagin_dir/include/arm-asm/posix_types.h
but this file is included by nano-X, which is then included by fltk.
For me, fltk compiles simply by inlcuding the nanoX and nxlib include 
directories rather than the 386 ones.

Hope this helps.

> peng ha scritto:
> > hi,
> >
> > I wrote a program, and it runs well on i386 arch (Fedora core 
> > 6,fltk1.1.7),now i want to cross-compile the fltk1.1.7,and let my program 
> > run on arm. But there are some problems when i use the arm-linux-gcc and 
> > arm-linux-g++
> > I use the configure option:
> > ./configure --prefix=/usr/fltk  --host=arm-linux  --build=i386-linux 
> > --target=arm-linux
> > make it then comes:
> > Fl_x.cxx: In function `int fl_wait(double)':
> > Fl_x.cxx:238: inconsistent operand constraints in an `asm'
> > Fl_x.cxx:239: inconsistent operand constraints in an `asm'
> > Fl_x.cxx:240: inconsistent operand constraints in an `asm'
> >
> > how to solve it?
> >
> > I search other messages, someone said he also uses nano-X & nxlib, i wonder 
> > nano-X & nxlib are necessary?
>
> Hi,
> when trying to cross compile for my target I have the same problem;
> HOw did you solved this problem?

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

Reply via email to