On 2008-10-27, MacArthur, Ian (SELEX GALILEO, UK) <[EMAIL PROTECTED]> wrote:
>
>
>> 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...
ok, great :)
>
>> 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.
>
yes, visual studio :p
>
> 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.
>
it said no for me last time i have tried. maybe it is
because i use FLTK 1.1.9? or maybe, do you have some
headers in windows that i dont have? does windows XP pro
come with any headers anyway? thats probably a stupid
question, but since my win installation is just standard i
wouldnt assume to have it any header files. OTOH, if i had
no headers, how would i be able to build FLTK ^^). maybe
solely because of mingw...?
i will try that configure again, harder! :>
ty, jan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk