> well, i guess i am doing things a little "out-of-order" 
> because i am building FLTK on windows using mingw/msys 
> using a ./configure, make, make install.

No - I'd see that as perfectly normal. That is how I build for win32...


> on the configure 
> stage FLTK looks for pthread.h and a pthread lib. if it 
> doesnt find them it sais THREAD SUPPORT: NO when done 
> configuring. 

That is very odd. Yes, it looks for pthreads. Yes, it fails to find it,
but that does not mean that thread support should fail

> since i dont have visual basic or whatever it 
> is called "), how would i build FLTK with mingw and windows 
> native thread support?

Sorry, you lost me for a minute there... But now I think that by "visual
basic" you mean "Visual Studio"?
Nah - you don't need any of that. Msys/mingw works perfectly well.



Anyway: here's the recipe I just used against fltk-1.3 from svn (the
exact same recipe works for 1.1.x and 2.x though)

Using Msys and mingw, in the Msys shell:

   ./configure --enable-threads CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib

NOTES: the CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib bit is
because I have jpeg, png and zlib installed and I do not want fltk to
use its built-in versions I want it to use the system versions. Adding
these options forces fltk to pick up the system versions. If you do not
have these libs installed (you probably do not on a deafult mingw setup)
then you want to use --enable-local-jpeg --enable-local-png
--enable-local-zlib instead, perhaps.


This returns the results;

        :
        :
checking for png.h... yes
checking pthread.h usability... no
checking pthread.h presence... no
checking for pthread.h... no
checking GL/gl.h usability... Yes
        :
        :

So it has not found pthreads. But we don't care about that because at
the end the summary reports:

Configuration Summary
------------------------------------------------------------------------
-
    Directories: prefix=/usr/local
                 bindir=${exec_prefix}/bin
                 datadir=${prefix}/share
                 datarootdir=
                 exec_prefix=${prefix}
                 includedir=${prefix}/include
                 libdir=${exec_prefix}/lib
                 mandir=${prefix}/man
       Graphics: GDI
Image Libraries: JPEG=System
                 PNG=System
                 ZLIB=System
    Large Files: YES
         OpenGL: YES
        Threads: YES
configure: creating ./config.status
config.status: creating makeinclude
config.status: creating fltk.list
config.status: creating fltk-config
config.status: creating fltk.spec
config.status: creating FL/Makefile
config.status: creating config.h


So we see that "Threads: YES" here, meaning that threads are supported.

Make, then run test/threads - and we see the threads demo works. That is
all there is to it.
Does this *not* work for you? It should do.






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