Re: [Inkscape-devel] prefix.cpp pthreads dependency

On Mon, 2004-05-03 at 06:54, John Cliff wrote:
I fixed my build by dling the win32 pthreads from here http://sources.redhat.com/pthreads-win32/
dont know if the added dep is worth it for the windows build or not but it gets it building again :)
I think I'd rather not include the pthreads stuff for long if we can help it -- I'm worried it could conflict with glib's windows threads wrapper at some point.
-mental

On Mon, 03 May 2004 22:16:58 -0400, MenTaLguY wrote:
I think I'd rather not include the pthreads stuff for long if we can help it -- I'm worried it could conflict with glib's windows threads wrapper at some point.
I should have mentioned this before. If you want to add support to binreloc for Win32 threading I'm happy to accept a patch for that upstream.
thanks -mike

MenTaLguY wrote:
On Mon, 2004-05-03 at 06:54, John Cliff wrote:
I fixed my build by dling the win32 pthreads from here http://sources.redhat.com/pthreads-win32/
dont know if the added dep is worth it for the windows build or not but it gets it building again :)
I think I'd rather not include the pthreads stuff for long if we can help it -- I'm worried it could conflict with glib's windows threads wrapper at some point.
-mental
I agree. There might be occasions where we need to tie threads to the GUI.
I re-did the threads section of that file with GLib's threads. Compiles nicely on win32 and linux. The code is much smaller, since GLib does most of the work. Someone might check if my little trick to mimic g_once() (which is not available until 2.4) makes sense. Should the nonstatic key existing/not existing be sufficient to see if the function has been called already, or should there be a test for existence/non-existence of a value for that key? Anyway, check it out, fix if necessary.
Sorry I didn't see this earlier. I have been gone for a couple of weeks.
Bob (ishmal)

Bob Jamison wrote:
Blah, blah, droning on endlessly.... ;-)
I mentioned this on inkscape@...341... already, but I wanted to make sure that someone sees this.
Someone likely needs to check configure.in and src/Makefile.am to make sure that gthread-2.0 is added to the pkg-config check, and to the dependent libs. It's already in your glib distros, but this will add it to the include paths and links.
I think that pkg-config -libs gthread-2.0 is what is required.
I already added libgthread-2.0.0.dll to the win32 distro. It has always been in gtk2.zip.
So the autobuilds should be working again.
Thanks, someone, for looking into this.
Bob
participants (3)
-
Bob Jamison
-
MenTaLguY
-
Mike Hearn