> Hi, I was trying to cross compiling fltk with the cris 
> compiler. When  
> I compile it the building process stops and I obtain the 
> follow output:
> 
> Linking fluid2...
> ../lib/libfltk2.so: undefined reference to `fmodf'
> ../lib/libfltk2.so: undefined reference to `cosf'
> ../lib/libfltk2.so: undefined reference to `acosf'
> ../lib/libfltk2.so: undefined reference to `atan2f'
> ../lib/libfltk2.so: undefined reference to `sinf'
> ../lib/libfltk2.so: undefined reference to `ceilf'
> collect2: ld returned 1 exit status
> 
> Where do I mistake? Is there some parameter to specify when I peform  
> the configure command?

This is attempting to build fluid with your cross-compiler. A few
observations.

- You probably do not need to build fluid with the cross-tools, it seems
unlikely you would want to run fluid on the target. A host version of
fluid is probably much more useful. So this probably is not really a
problem...

- It looks like you are missing a maths library. With a gcc based
compiler, that would normally be resolved by adding -lm to the end of
your link line. Your tools may be different, but in essence you need to
add whichever lib provides the maths functions.

- You might be better off using one of the fltk 1.x series rather than
fltk-2, since the 1.x series are considered stable and are more widely
supported, and have been used in a number of places on embedded boards
already.






SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to