[fltk.general] FLTK 1.3.0 build error under CentOS 5.4 x86_64

2011-07-26 Thread CHEN Xiaoshuo
Hi, I'm trying to build the FLTK 1.3.0 with --enable-shared option under Centos 5.4 x86_64 and meet the following error. === making src === g++ -L. -L/usr/lib64 -Wl,-soname,libfltk.so.1.3 -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11 -shared -fPIC -o libfltk.so.1.3 ...

Re: [fltk.general] FLTK 1.3.0 build error under CentOS 5.4 x86_64

2011-07-26 Thread MacArthur, Ian (SELEX GALILEO, UK)
I'm trying to build the FLTK 1.3.0 with --enable-shared option under Centos 5.4 x86_64 and meet the following error. === making src === g++ -L. -L/usr/lib64 -Wl,-soname,libfltk.so.1.3 -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11 -shared -fPIC -o libfltk.so.1.3 ...

Re: [fltk.general] FLTK 1.3.0 build error under CentOS 5.4 x86_64

2011-07-26 Thread Duncan Gibson
I'm trying to build the FLTK 1.3.0 with --enable-shared option under Centos 5.4 x86_64 and meet the following error. === making src === g++ -L. -L/usr/lib64 -Wl,-soname,libfltk.so.1.3 -lXext -lXft \ -lfontconfig -lXinerama -lpthread -ldl -lm -lX11 -shared \ -fPIC -o libfltk.so.1.3 ...

Re: [fltk.general] FLTK 1.3.0 build error under CentOS 5.4 x86_64

2011-07-26 Thread Albrecht Schlosser
On 26.07.2011 10:44, MacArthur, Ian (SELEX GALILEO, UK) wrote: === making src === g++ -L. -L/usr/lib64 -Wl,-soname,libfltk.so.1.3 -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11 -shared -fPIC -o libfltk.so.1.3 ... /usr/bin/ld: Fl.o: relocation R_X86_64_32 against `a local

Re: [fltk.general] FLTK 1.3.0 build error under CentOS 5.4 x86_64

2011-07-26 Thread MacArthur, Ian (SELEX GALILEO, UK)
Hmm, isn't -fPIC already in the OP'S command line? At least we can see it in the linker command, which is probably not where it is needed (?), Yes, it needs to be in the compiler command, though I don't know what the OP's compile command looked like. That's why I suggested explicitly

Re: [fltk.general] Can't get text working

2011-07-26 Thread Stuart Shepherd
Well I say mostly working they are displaying how I want them=20 to. My next job is to get them to react to button presses.=20 We're not using a keyboard or mouse we just have some arrow=20 keys and buttons that and I need to work out how to generate=20 events from them for the app to

Re: [fltk.general] Can't get text working

2011-07-26 Thread MacArthur, Ian (SELEX GALILEO, UK)
I have about a dozen buttons which will be used to change menus/options these are read through an FPGA device, I have a driver working that reads the FPGA on a timer and then wakes the user space app on a epoll when a button has been pressed/released. This all works fine but I need to

Re: [fltk.general] Can't get text working

2011-07-26 Thread Ben Stott
I just downloaded the latest source and tweaked it a little to compile, but not much. The text works but the other bits I had working tabs, images etc... now don't. Wait, you had to tweak it to compile? On what device / what config? It should compile out of the box. Did you try

Re: [fltk.general] Can't get text working

2011-07-26 Thread MacArthur, Ian (SELEX GALILEO, UK)
I just downloaded the latest source and tweaked it a little to compile, but not much. The text works but the other bits I had working tabs, images etc... now don't. The fltk-1 and fltk-2 API's are quite different, so there's some work in getting your fltk code moved from one to the other.

Re: [fltk.general] Can't get text working

2011-07-26 Thread Duncan Gibson
The timeline went something like this: (ASCII art! Beware!) |--fltk-1.2(abandoned) | BigBang--fltk-1.0--fltk-1.1fltk-1.3--now | |--fltk-2.x-- See also Article #825: What are the Versions of

Re: [fltk.general] Can't get text working

2011-07-26 Thread Stuart Shepherd
I just downloaded the latest source and tweaked it a little to compile, but not much. The text works but the other bits I had working tabs, images etc... now don't. Wait, you had to tweak it to compile? On what device / what config? It should compile out of the box. Did you try

Re: [fltk.general] Can't get text working

2011-07-26 Thread MacArthur, Ian (SELEX GALILEO, UK)
Just tried 1.1.10 and everything works wonderfully. Thank you for the info it has been a big help. Doh! I think I just realised why this doesn't work for you with fltk-1.3. UTF8 support. Box the XFT and Xlib backends in fltk-1.3 under X11 have been enhanced to support UTF8 rendering. So,

Re: [fltk.general] Can't get text working

2011-07-26 Thread Ben Stott
Doh! I think I just realised why this doesn't work for you with fltk-1.3. UTF8 support. Box the XFT and Xlib backends in fltk-1.3 under X11 have been enhanced to support UTF8 rendering. So, for example, in the Xlib version, where fltk-1.1 uses XDrawString() we now use XUtf8DrawString()

Re: [fltk.general] FLTK 1.3.0 build error under CentOS 5.4 x86_64

2011-07-26 Thread Bob Tolbert
Hi, I'm trying to build the FLTK 1.3.0 with --enable-shared option under Centos 5.4 x86_64 and meet the following error. === making src === g++ -L. -L/usr/lib64 -Wl,-soname,libfltk.so.1.3 -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11 -shared -fPIC -o libfltk.so.1.3 ...