Re: [Bf-committers] MinGW Build Questions
Hi, Openmp is a MinGW64 problem, mixing pthreads with openmp is buggy. Currently I am trying to debug this in their winpthread implementation but I am no thread expert. Not by far. Any help is welcome. I have downloaded their svn repository and winpthread is in experimental/winpthread folder. Standard configure/make with CFLAGS=-g is enough to get a debug build. Also MSYS is required. Warning! Uncommented and unindented code in there, prepare for eyesores :p A minimum test case to reproduce the hang is (compile with -fopenmp) #include #include #include void *do_thread(void *) { int niterations = 200; int i; #pragma omp parallel for for (i = 0; i < niterations; i++) { printf ("ducks\n"); } return NULL; } int main() { pthread_t id; pthread_create(&id, NULL, do_thread, NULL); pthread_join (id, NULL); } ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] MinGW Build Questions
What do you mean? I didn't have any problems enabling WITH_OPENMP in my builds and I assumed that it worked even though I didn't test it. On the other hand, I wasn't aware large parts of Blender had been updated for OpenMP, so I'm not sure how it could make that much of a difference. On Sat, Nov 24, 2012 at 8:04 AM, Yousef Hurfoush wrote: > > out of the subject BUT! > can some look into openmp with mingw? > i build mingw on windows and it really makes a deference in speed. > > Regards > Yousef Harfoush > ba...@msn.com > > > >> Date: Sat, 24 Nov 2012 07:53:59 -0600 >> From: jason.a.wilk...@gmail.com >> To: bf-committers@blender.org >> Subject: Re: [Bf-committers] MinGW Build Questions >> >> Everything runs fine after building, but I just realized that the dll >> installed by 'make install' is the one from Blender's lib directory, >> not the one in mingw's. So it still isn't quite consistent. >> >> On Sat, Nov 24, 2012 at 7:48 AM, Jason Wilkins >> wrote: >> > I just setup so I can build with MinGW and I've run into some things I >> > think are strange. I hope you guys don't mind me asking here if it >> > turns out they aren't so strange :-) >> > >> > It seems that the lib/mingw/pthread directory only contains a lib >> > directory but not an include directory. The preprocessor keeps >> > warning me that lib/mingw/pthread/include does not exist. However it >> > seems to be finding a pthread.h somewhere and I assume it is in >> > c:/mingw/include. >> > >> > It seems to me that either it should use the lib and header from mingw >> > or the one that comes with Blender but not both. >> > >> > I modified CMakeLists.txt to make sure it uses the library and header >> > distributed with mingw and it seems to build fine (I couldn't do it >> > the other way since there is no header to be found in the mingw >> > library directory). >> > >> > I have other questions, but I'll just start off with that one. >> ___ >> Bf-committers mailing list >> Bf-committers@blender.org >> http://lists.blender.org/mailman/listinfo/bf-committers > > ___ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] MinGW Build Questions
out of the subject BUT! can some look into openmp with mingw? i build mingw on windows and it really makes a deference in speed. Regards Yousef Harfoush ba...@msn.com > Date: Sat, 24 Nov 2012 07:53:59 -0600 > From: jason.a.wilk...@gmail.com > To: bf-committers@blender.org > Subject: Re: [Bf-committers] MinGW Build Questions > > Everything runs fine after building, but I just realized that the dll > installed by 'make install' is the one from Blender's lib directory, > not the one in mingw's. So it still isn't quite consistent. > > On Sat, Nov 24, 2012 at 7:48 AM, Jason Wilkins > wrote: > > I just setup so I can build with MinGW and I've run into some things I > > think are strange. I hope you guys don't mind me asking here if it > > turns out they aren't so strange :-) > > > > It seems that the lib/mingw/pthread directory only contains a lib > > directory but not an include directory. The preprocessor keeps > > warning me that lib/mingw/pthread/include does not exist. However it > > seems to be finding a pthread.h somewhere and I assume it is in > > c:/mingw/include. > > > > It seems to me that either it should use the lib and header from mingw > > or the one that comes with Blender but not both. > > > > I modified CMakeLists.txt to make sure it uses the library and header > > distributed with mingw and it seems to build fine (I couldn't do it > > the other way since there is no header to be found in the mingw > > library directory). > > > > I have other questions, but I'll just start off with that one. > ___ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] MinGW Build Questions
Everything runs fine after building, but I just realized that the dll installed by 'make install' is the one from Blender's lib directory, not the one in mingw's. So it still isn't quite consistent. On Sat, Nov 24, 2012 at 7:48 AM, Jason Wilkins wrote: > I just setup so I can build with MinGW and I've run into some things I > think are strange. I hope you guys don't mind me asking here if it > turns out they aren't so strange :-) > > It seems that the lib/mingw/pthread directory only contains a lib > directory but not an include directory. The preprocessor keeps > warning me that lib/mingw/pthread/include does not exist. However it > seems to be finding a pthread.h somewhere and I assume it is in > c:/mingw/include. > > It seems to me that either it should use the lib and header from mingw > or the one that comes with Blender but not both. > > I modified CMakeLists.txt to make sure it uses the library and header > distributed with mingw and it seems to build fine (I couldn't do it > the other way since there is no header to be found in the mingw > library directory). > > I have other questions, but I'll just start off with that one. ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
[Bf-committers] MinGW Build Questions
I just setup so I can build with MinGW and I've run into some things I think are strange. I hope you guys don't mind me asking here if it turns out they aren't so strange :-) It seems that the lib/mingw/pthread directory only contains a lib directory but not an include directory. The preprocessor keeps warning me that lib/mingw/pthread/include does not exist. However it seems to be finding a pthread.h somewhere and I assume it is in c:/mingw/include. It seems to me that either it should use the lib and header from mingw or the one that comes with Blender but not both. I modified CMakeLists.txt to make sure it uses the library and header distributed with mingw and it seems to build fine (I couldn't do it the other way since there is no header to be found in the mingw library directory). I have other questions, but I'll just start off with that one. ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Windows SDL Library
In order to use WITH_GHOST_SDL on Windows you'll need to grab SDL 2.0 libs, the pre-built ones for Blender are 1.2. --Mitchell Stokes On Sat, Nov 24, 2012 at 12:35 AM, Ummi Nom wrote: > Hi! > > Don't know about WITH_GHOST_SDL, but afaik sdl's stable version is 1.2 and > the 2.0 is still under construction. > > On Sat, Nov 24, 2012 at 8:26 AM, Jason Wilkins >wrote: > > > I tried to compile with the WITH_GHOST_SDL option on MSVC 2008 and got > > a #error telling me the library needs to be at least version 2.0. I > > have a fully up to date library directory (lib/windows). > > > > Is this option supported? > > ___ > > Bf-committers mailing list > > Bf-committers@blender.org > > http://lists.blender.org/mailman/listinfo/bf-committers > > > ___ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers > ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Windows SDL Library
Hi! Don't know about WITH_GHOST_SDL, but afaik sdl's stable version is 1.2 and the 2.0 is still under construction. On Sat, Nov 24, 2012 at 8:26 AM, Jason Wilkins wrote: > I tried to compile with the WITH_GHOST_SDL option on MSVC 2008 and got > a #error telling me the library needs to be at least version 2.0. I > have a fully up to date library directory (lib/windows). > > Is this option supported? > ___ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers > ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Windows SDL Library
Same error with MinGW32 On Sat, Nov 24, 2012 at 12:26 AM, Jason Wilkins wrote: > I tried to compile with the WITH_GHOST_SDL option on MSVC 2008 and got > a #error telling me the library needs to be at least version 2.0. I > have a fully up to date library directory (lib/windows). > > Is this option supported? ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers