[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27127] branches/render25/source/blender/ render/intern/source/cache.c: Render Branch: remove some test code left in accidentially, should fix

jmsoler at free.fr jmsoler at free.fr
Thu Feb 25 14:43:03 CET 2010


hi,

pthread is used in a lot of other files than in the trunk version and a lot of
scons's files need to be improved for that but you can find a build at :

http://www.zoo-logique.org/3D.Blender/index.php3?zoo=com

jms

Selon "lusque at email.it" <lusque at email.it>:

> I'm not a programmer so I'm not good enough to mess with the scons
> files. I've limited my experiments to the compile options.
> Try extending CCFLAGS and CXXFLAGS with *absolute* paths, I've tried
> relative paths but it wasn't working here either. Don't know why...
> Again, I'm compiling with gcc so look for the relevant flags of your
> compiler, maybe they're different.
>
> I think you've written wrongly the flags. Sorry, but I've not explained
> well. You've written '-IF:..\lib\windows\pthreads' but instead you could
> try '-I..\lib\windows\pthreads'
>
> To clear my example better, I've used absolute lib paths. That is:
> F:\PROJ\BLENDER_RENDER25\lib\windows\pthreads
>
> the gcc include lib path flag is:
> -I
>
> so the entire flag is written as follows:
> '-IF:\PROJ\BLENDER_RENDER25\lib\windows\pthreads'
>
> pay attention to spaces, the following doesn't work (at least for me
> with gcc):
> '-I F:\PROJ\BLENDER_RENDER25\lib\windows\pthreads'
>
> Good luck :)
>
> On 25/02/2010 13.01, Thomas Dinges wrote:
> > Hey,
> > I dont know if I make it worng but I added:
> >
> > CCFLAGS.extend([ '-IF:..\lib\windows\pthreads',
> > '-IF:..\lib\windows\pthreads\include'
> > ,'-IF:..\lib\windows\pthreads\lib' ])
> > CXXFLAGS.extend([ '-IF:..\lib\windows\pthreads'
> > ,'-IF:..\lib\windows\pthreads\include'
> > ,'-IF:..\lib\windows\\pthreads\lib' ])
> >
> > and it doesnt work yet. Therefore I added some pthread includes in
> > various scons files.
> > if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross',
> > 'win64-vc'):
> >      incs += ' ' + env['BF_PTHREADS_INC']
> >
> > in space_image, space_vied3d and source/creator. With that it compiels
> > until the end, but gives me 1 Linker error:
> >
> > LINK : error LNK2001: Nicht aufgelöstes externes Symbol "_mainCRTStartup".
> > L:\blender_dev\code\build\render25\bin\blender.exe : fatal error
> > LNK1120: 1 nich
> > t aufgelöste externe Verweise.
> > scons: *** [L:\blender_dev\code\build\render25\bin\blender.exe] Error 1120
> > scons: building terminated because of errors.
> >
> > Thomas
> >
> > Am 25.02.2010 12:32, schrieb lusque at email.it:
> >> Same problem here with scons/minGW.
> >> I resolved addig compiler flags in the userconfig.py file.
> >> Seems scons doesn't feed the compiler with the pthread library path.
> >>
> >> CCFLAGS.extend([ '-IF:\PROJ\BLENDER_RENDER25\lib\windows\pthreads',
> >> '-IF:\PROJ\BLENDER_RENDER25\lib\windows\pthreads\include'
> >> ,'-IF:\PROJ\BLENDER_RENDER25\lib\windows\pthreads\lib' ])
> >> CXXFLAGS.extend([ '-IF:\PROJ\BLENDER_RENDER25\lib\windows\pthreads'
> >> ,'-IF:\PROJ\BLENDER_RENDER25\lib\windows\pthreads\include'
> >> ,'-IF:\PROJ\BLENDER_RENDER25\lib\windows\pthreads\lib' ])
> >>
> >> Hope it helps
> >>
> >> On 25/02/2010 12.21, Thomas Dinges wrote:
> >>
> >>> Hi Brecht,
> >>> i still have the pthread error with scons/msvc on Windows Vista x32
> >>>
> >>> source\blender\blenlib\BLI_threads.h(34) : fatal error C1083: Datei
> >>> (Include) ka
> >>> nn nicht geöffnet werden: "pthread.h": No such file or directory
> >>> scons: ***
> >>> [L:\blender_dev\code\build\render25\source\blender\editors\space_imag
> >>> e\image_buttons.obj] Error 2
> >>>
> >>> Any idea? :)
> >>>
> >>> Thomas
> >>>
> >>> Am 24.02.2010 19:57, schrieb Brecht Van Lommel:
> >>>
> >>>> Revision: 27127
> >>>>
>
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27127
> >>>> Author:   blendix
> >>>> Date:     2010-02-24 19:57:21 +0100 (Wed, 24 Feb 2010)
> >>>>
> >>>> Log Message:
> >>>> -----------
> >>>> Render Branch: remove some test code left in accidentially, should fix
> >>>> compile on windows.
> >>>>
> >>>> Modified Paths:
> >>>> --------------
> >>>>       branches/render25/source/blender/render/intern/source/cache.c
> >>>>
> >>>> Modified: branches/render25/source/blender/render/intern/source/cache.c
> >>>> ===================================================================
> >>>> ---
> branches/render25/source/blender/render/intern/source/cache.c	2010-02-24
> 18:06:51 UTC (rev 27126)
> >>>> +++
> branches/render25/source/blender/render/intern/source/cache.c	2010-02-24
> 18:57:21 UTC (rev 27127)
> >>>> @@ -689,8 +689,6 @@
> >>>>
> >>>>    /* Lookup */
> >>>>
> >>>> -#include<fenv.h>
> >>>> -
> >>>>    int irr_cache_lookup(Render *re, ShadeInput *shi, IrrCache *cache,
> float *ao, float env[3], float indirect[3], float cP[3], float dPdu[3], float
> dPdv[3], float cN[3], int preprocess)
> >>>>    {
> >>>>    	IrrCacheSample *sample;
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Bf-blender-cvs mailing list
> >>>> Bf-blender-cvs at blender.org
> >>>> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
> >>>>
> >>>>
> >>>>
> >>> _______________________________________________
> >>> Bf-committers mailing list
> >>> Bf-committers at blender.org
> >>> http://lists.blender.org/mailman/listinfo/bf-committers
> >>>
> >>>
> >>
> >>
> >>   --
> >>   Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e
> SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
> >>
> >>   Sponsor:
> >>   Usa Mastercard per i tuoi acquisti, puoi vincere i biglietti per la
> finale UEFA Champions League. Gioca subito!
> >>   Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=10191&d=25-2
> >> _______________________________________________
> >> Bf-committers mailing list
> >> Bf-committers at blender.org
> >> http://lists.blender.org/mailman/listinfo/bf-committers
> >>
> >>
> >
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-committers
> >
>
>
>  --
>  Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
> autenticato? GRATIS solo con Email.it http://www.email.it/f
>
>  Sponsor:
>  Nokia Ovi Store: costantemente aggiornato con idee e contenuti sempre nuovi
> per il tuo cellulare. Registrati ora, è gratuito!
>  Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=10208&d=25-2
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>




More information about the Bf-committers mailing list