On 30 Mar 2012, at 14:49, Jayaram wrote:

> Built fltk for an arm target as shared library and using it in my application 
> gives the following error –

You may need to provide more info:

- what version of fltk
- what host toolchain
- what X11 server
- are you cross-compiling or building native on the arm host?

In any case, I'd recommend that you use fltk as a static lib, at least until 
you are confident that your system is working, then struggle with the vagaries 
of dynamic linking once that's all dealt with!



> /usr/local/arm/3.4/lib/libfltk.a(utf8Input.o): In function 
> `XUtf8LookupString':
> utf8Input.c:(.text+0xef8): undefined reference to `XIMOfIC'
> utf8Input.c:(.text+0xf08): undefined reference to `XLocaleOfIM'
> collect2: ld returned 1 exit status
> 
> libX11.so is available in the required path.
> 
> Any idea what the issue could be ? Please help me in solving this problem

I assume this is failing at link time?

Well, it is failing to find (some of) the Input Method hooks to link against. 
Do other X11 functions link OK (i.e. it is only the IM stuff that is choking?)

Does your Xlib contain the hooks for XIMOfIC ? (Run in through nm and grep the 
output for XIMOfIC, see whether it is defined or not. You can also use this 
approach to search through the other X11 libs - libXext, libICE, etc., to see 
what they provide. Maybe it is hiding somewhere non-standard...)

I suppose it is possible that your X library does not provide an implementation 
of the necessary Input Methods? What X system are you using on your target 
machine?



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

Reply via email to