Re: [Bf-committers] trying to build with mingw32

2012-04-23 Thread Antony Riakiotakis
Hi, as of yesterday, MinGW requires that lib/mingw32 is checked out
instead of lib/windows. Maybe this is the cause?
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-23 Thread Yousef Hurfoush

> Hi, as of yesterday, MinGW requires that lib/mingw32 is checked out
> instead of lib/windows. Maybe this is the cause?
no, as i checked that before i compiled, and i specified the lib dir to it in 
my config here:

---

LCGDIR = '#../lib/mingw32'
LIBDIR = '${LCGDIR}'

CCFLAGS = ['-D_SSIZE_T_']
CXXFLAGS = ['-D_SSIZE_T_']

BF_INSTALLDIR = '..\\install\\win32-mingw32'
BF_BUILDDIR = '..\\build\\win32-mingw32'

---


Regards
Yousef Harfoush
ba...@msn.com



> Date: Mon, 23 Apr 2012 23:20:49 +0300
> From: kal...@gmail.com
> To: bf-committers@blender.org
> Subject: Re: [Bf-committers] trying to build with mingw32
> 

> ___
> 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] trying to build with mingw32

2012-04-23 Thread Antony Riakiotakis
Hi, the scons build runs correctly here...Do you have any user defined
configuration? If you do I would like to take a look. fftw3.h though
exists in the lib directory at the specified in the config file path.

Other than that, and a wrong directory structure, I can't think of any
particular reason why this would not work. I should mention though
that MinGW-w64 is not officially supported for 32-bit targets. You
should use the official MinGW for that.
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-23 Thread Yousef Hurfoush

> Do you have any user defined configuration?
no changed the build dir to only mingw32
and my folder structure is:

blender-temp\
lib\windows\
lib\win64\
lib\mingw32\..\compilers\mingw32\
..\compilers\python26\

the paths doesn't have spaces and are short

Regards
Yousef Harfoush
ba...@msn.com



> Date: Tue, 24 Apr 2012 02:12:15 +0300
> From: kal...@gmail.com
> To: bf-committers@blender.org
> Subject: Re: [Bf-committers] trying to build with mingw32
> 
> Hi, the scons build runs correctly here... If you do I would like to take a 
> look. fftw3.h though
> exists in the lib directory at the specified in the config file path.
> 
> Other than that, and a wrong directory structure, I can't think of any
> particular reason why this would not work. I should mention though
> that MinGW-w64 is not officially supported for 32-bit targets. You
> should use the official MinGW for that.
> ___
> 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] trying to build with mingw32

2012-04-23 Thread Campbell Barton
note that if the mingw lib directory is missing (lib dir on any OS
except linux/bsd) cmake wont run at all, complaining that
../lib/mingw32 is missing.

On Tue, Apr 24, 2012 at 9:30 AM, Yousef Hurfoush  wrote:
>
>> Do you have any user defined configuration?
> no changed the build dir to only mingw32
> and my folder structure is:
>
> blender-temp\
> lib\windows\
> lib\win64\
> lib\mingw32\..\compilers\mingw32\
> ..\compilers\python26\
>
> the paths doesn't have spaces and are short
>
> Regards
> Yousef Harfoush
> ba...@msn.com
>
>
>
>> Date: Tue, 24 Apr 2012 02:12:15 +0300
>> From: kal...@gmail.com
>> To: bf-committers@blender.org
>> Subject: Re: [Bf-committers] trying to build with mingw32
>>
>> Hi, the scons build runs correctly here... If you do I would like to take a 
>> look. fftw3.h though
>> exists in the lib directory at the specified in the config file path.
>>
>> Other than that, and a wrong directory structure, I can't think of any
>> particular reason why this would not work. I should mention though
>> that MinGW-w64 is not officially supported for 32-bit targets. You
>> should use the official MinGW for that.
>> ___
>> 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



-- 
- Campbell
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-23 Thread Yousef Hurfoush

ok, updated to svn 45899 and the error changed weird!

Linking library ==> 'libextern_lzma.a'
Compiling ==> 'libmv-capi.cpp'
In file included from extern\libmv\libmv-capi.cpp:37:0:
extern\libmv\third_party\ssba/Math/v3d_optimization.h: In member function 'void
V3D::SparseLevenbergOptimizer::fillAllJacobians(const V3D::Vector&, V3D:
:MatrixArray&, V3D::MatrixArray&, V3D::MatrixArray&)':
extern\libmv\third_party\ssba/Math/v3d_optimization.h:143:38: warning: compariso
n between signed and unsigned integer expressions [-Wsign-compare]
extern\libmv\third_party\ssba/Math/v3d_optimization.h:155:41: warning: compariso
n between signed and unsigned integer expressions [-Wsign-compare]
extern\libmv\third_party\ssba/Math/v3d_optimization.h:160:41: warning: compariso
n between signed and unsigned integer expressions [-Wsign-compare]
extern\libmv\third_party\ssba/Math/v3d_optimization.h:165:41: warning: compariso
n between signed and unsigned integer expressions [-Wsign-compare]
In file included from extern\libmv\libmv-capi.cpp:39:0:
extern\libmv\/libmv/numeric/numeric.h: In function 'void sincos(double, double*,
 double*)':
extern\libmv\/libmv/numeric/numeric.h:37:59: error: 'void sincos(double, double*
, double*)' was declared 'extern' and later 'static' [-fpermissive]
z:\development\compilers\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.6.4/../../../
../i686-w64-mingw32/include/math.h:141:16: error: previous declaration of 'void
sincos(double, double*, double*)' [-fpermissive]

scons: *** [Z:\Development\blender\build\win32-mingw32\extern\libmv\libmv-capi.o
] Error 1
scons: building terminated because of errors.

Regards
Yousef Harfoush
ba...@msn.com



> Date: Tue, 24 Apr 2012 02:12:15 +0300
> From: kal...@gmail.com
> To: bf-committers@blender.org
> Subject: Re: [Bf-committers] trying to build with mingw32
> 
> Hi, the scons build runs correctly here...Do you have any user defined
> configuration? If you do I would like to take a look. fftw3.h though
> exists in the lib directory at the specified in the config file path.
> 
> Other than that, and a wrong directory structure, I can't think of any
> particular reason why this would not work. I should mention though
> that MinGW-w64 is not officially supported for 32-bit targets. You
> should use the official MinGW for that.
> ___
> 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] trying to build with mingw32

2012-04-23 Thread Yousef Hurfoush

> note that if the mingw lib directory is missing (lib dir on any OS
> except linux/bsd) cmake wont run at all, complaining that
> ../lib/mingw32 is missing.
> 
no i don't use cmake. i use scons!


Regards
Yousef Harfoush
ba...@msn.com

  
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-23 Thread Antony Riakiotakis
Hi, as I have explained elsewhere MinGW-w64 builds do not have an
official build and it is simply impossible to make sure that all of
them work.

This weekend I worked extensively to get 64 bit MinGW-64 working and I
can tell you first hand that there are many differences between builds
and many bugs as well. Libraries or binaries that build with one
compiler will fail with another. Fixes and changes are committed often
in MinGW-w64 repository and we can't keep track of these for every
build available.

The last error you are posting may be resolved for the specific build
of MinGW-w64 64bit that I am using (I was hoping that maybe it chould
be hosted somewhere on b.o too?) but not for the 32 bit version. Other
than that we can't promise that arbitrary builds of MinGW-w64 will
work.

For 32-bit please use the official MinGW obtained through
mingw-get-inst, these are maintained, checked regularly and are known
to work. Or you can use the 64bit version when support is ready (I
estimate in about 2-3 days' time)
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-23 Thread Yousef Hurfoush

> Hi, as I have explained elsewhere MinGW-w64 builds do not have an
> official build and it is simply impossible to make sure that all of
> them work.

i'm trying to build the x32 NOT the x64,
i'll download the official one and try, thanks

Regards
Yousef Harfoush
ba...@msn.com



> Date: Tue, 24 Apr 2012 03:24:50 +0300
> From: kal...@gmail.com
> To: bf-committers@blender.org
> Subject: Re: [Bf-committers] trying to build with mingw32
> 
> Hi, as I have explained elsewhere MinGW-w64 builds do not have an
> official build and it is simply impossible to make sure that all of
> them work.
> 
> This weekend I worked extensively to get 64 bit MinGW-64 working and I
> can tell you first hand that there are many differences between builds
> and many bugs as well. Libraries or binaries that build with one
> compiler will fail with another. Fixes and changes are committed often
> in MinGW-w64 repository and we can't keep track of these for every
> build available.
> 
> The last error you are posting may be resolved for the specific build
> of MinGW-w64 64bit that I am using (I was hoping that maybe it chould
> be hosted somewhere on b.o too?) but not for the 32 bit version. Other
> than that we can't promise that arbitrary builds of MinGW-w64 will
> work.
> 
> For 32-bit please use the official MinGW obtained through
> mingw-get-inst, these are maintained, checked regularly and are known
> to work. Or you can use the 64bit version when support is ready (I
> estimate in about 2-3 days' time)
> ___
> 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] trying to build with mingw32

2012-04-24 Thread Yousef Hurfoush

hi, and sorry to bother you guys BUT.

i installed minGW from the official installer to c:\minGW, and added 
c\mingW\bin to my path
i updated blender to svn 45912 and the libs and tried to build with scons the 
32 bit version 
but the build didn't started i get this:
scons: done reading SConscript files.
scons: Building targets ...
Compiling ==> 'avi.c'
scons: *** [Z:\Development\blender\build\win32-mingw\source\blender\avi\intern\a
vi.o] The system cannot find the file specified
scons: building terminated because of errors.

as the official  MinGW i thought it would work!
what should i do, i searched the internet but no use, any help would be 
appreciated.

Regards
Yousef Harfoush
ba...@msn.com



> Date: Tue, 24 Apr 2012 03:24:50 +0300
> From: kal...@gmail.com
> To: bf-committers@blender.org
> Subject: Re: [Bf-committers] trying to build with mingw32
> 
> Hi, as I have explained elsewhere MinGW-w64 builds do not have an
> official build and it is simply impossible to make sure that all of
> them work.
> 
> This weekend I worked extensively to get 64 bit MinGW-64 working and I
> can tell you first hand that there are many differences between builds
> and many bugs as well. Libraries or binaries that build with one
> compiler will fail with another. Fixes and changes are committed often
> in MinGW-w64 repository and we can't keep track of these for every
> build available.
> 
> The last error you are posting may be resolved for the specific build
> of MinGW-w64 64bit that I am using (I was hoping that maybe it chould
> be hosted somewhere on b.o too?) but not for the 32 bit version. Other
> than that we can't promise that arbitrary builds of MinGW-w64 will
> work.
> 
> For 32-bit please use the official MinGW obtained through
> mingw-get-inst, these are maintained, checked regularly and are known
> to work. Or you can use the 64bit version when support is ready (I
> estimate in about 2-3 days' time)
> ___
> 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] trying to build with mingw32

2012-04-24 Thread Caleb Joseph
On 25/04/2012 2:36 PM, Yousef Hurfoush wrote:
> scons: done reading SConscript files.
> scons: Building targets ...
> Compiling ==>  'avi.c'
> scons: *** 
> [Z:\Development\blender\build\win32-mingw\source\blender\avi\intern\a
> vi.o] The system cannot find the file specified
> scons: building terminated because of errors.

Looks like MinGW isn't in your Path environment variable. Before running 
SCons, make sure to add it by running SET Path=C:\mingw\bin;%Path%

Obviously you need to replace C:\mingw\ with where you placed MinGW. 
Also are you passing BF_TOOLSET=mingw to SCons? You need to run 
"python.exe scons\scons.py BF_TOOLSET=mingw" from a 32-bit version of 
Python.

Good luck,
Caleb.
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-24 Thread Yousef Hurfoush



Regards
Yousef Harfoush
ba...@msn.com



> Date: Wed, 25 Apr 2012 15:21:24 +1000
> From: comcal...@gmail.com
> To: bf-committers@blender.org
> Subject: Re: [Bf-committers] trying to build with mingw32
> 
> On 25/04/2012 2:36 PM, Yousef Hurfoush wrote:
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > Compiling ==>  'avi.c'
> > scons: *** 
> > [Z:\Development\blender\build\win32-mingw\source\blender\avi\intern\a
> > vi.o] The system cannot find the file specified
> > scons: building terminated because of errors.
> 
> Looks like MinGW isn't in your Path environment variable. Before running 
> SCons, make sure to add it by running SET Path=C:\mingw\bin;%Path%
> 
> Obviously you need to replace C:\mingw\ with where you placed MinGW. 
> Also are you passing BF_TOOLSET=mingw to SCons? You need to run 
> "python.exe scons\scons.py BF_TOOLSET=mingw" from a 32-bit version of 
> Python.
> 

here is the patch i use:
cd Z:\Development\blender\blender-temp
set PATH=Z:\Development\compilers\Python26;%PATH%
set PATH=C:\MinGW\bin;C:\MinGW\lib;%PATH%
python scons\scons.py BF_TOOLSET=mingw

and my mingw32 folder is the default c:\mingw

anymore thoughts?
  
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-24 Thread Caleb Joseph
On 25/04/2012 3:26 PM, Yousef Hurfoush wrote:
> here is the patch i use:
> cd Z:\Development\blender\blender-temp
> set PATH=Z:\Development\compilers\Python26;%PATH%
> set PATH=C:\MinGW\bin;C:\MinGW\lib;%PATH%
> python scons\scons.py BF_TOOLSET=mingw
>
> and my mingw32 folder is the default c:\mingw
>
> anymore thoughts?
>   

Ok, after running "set PATH=C:\MinGW\bin;C:\MinGW\lib;%PATH%", can you 
run "gcc -v" without any issues? Might be better to discuss this over 
IRC to avoid spam here :P
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-24 Thread Yousef Hurfoush


> Ok, after running "set PATH=C:\MinGW\bin;C:\MinGW\lib;%PATH%", can you 
> run "gcc -v" without any issues? 

there are no gcc in the bin folder which is strange!
but i have download the official mingw from their site with their installer
and i selected all the lib (checkboxs), and it downloaded the libs
and installed them, i don't know if there something went wrong!

so when i run :
Z:\Development\blender\blender-temp>set 
PATH=Z:\Development\compilers\Python26;%PATH%
Z:\Development\blender\blender-temp>set PATH=C:\MinGW\bin;C:\MinGW\lib;%PATH%
Z:\Development\blender\blender-temp>gcc -v
'gcc' is not recognized as an internal or external command,
operable program or batch file.

i do this because i tried some other mingw32 builds, and i did start building 
but gave me errors

so psy-fi recommended that i install the official build.

> Might be better to discuss this over 
> IRC to avoid spam here :P

i do agree but i can't irc now, i'll try to clean and re-download the mingw 
again.
  
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-24 Thread Caleb Joseph
On 25/04/2012 3:46 PM, Yousef Hurfoush wrote:
> there are no gcc in the bin folder which is strange!
> but i have download the official mingw from their site with their installer
> and i selected all the lib (checkboxs), and it downloaded the libs
> and installed them, i don't know if there something went wrong!

Strange, if you checked the "C Compiler" and "C++ Compiler" options when 
installing MinGW you should have what you need. Maybe it didn't download 
properly?
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-25 Thread Antony Riakiotakis
I see there is an updated installer on MinGW site. I will test in case
something breaks.
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-25 Thread Antony Riakiotakis
Well I'll be darned! They did forget to include gcc...

Yousef, can you try this installer instead?

http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-2018/
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-25 Thread Yousef Hurfoush


> Well I'll be darned! They did forget to include gcc...
> 
> Yousef, can you try this installer instead?
> 
> http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-2018/

ok, i downloaded and it compiles ok but not all! it seems it doesn't build OIIO?
i get this error:
scons: *** [Z:\Development\blender\install\win32-mingw\OpenImageIO.dll] Source `
Z:\Development\blender\lib\mingw32\openimageio\bin\OpenImageIO.dll' not found, n
eeded by target `Z:\Development\blender\install\win32-mingw\OpenImageIO.dll'.

i used the default config file.
i checked the install folder and most thing are there and blender starts and 
doesn't crash and renders


Regards
Yousef Harfoush
ba...@msn.com

  
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-26 Thread Antony Riakiotakis
Hi, it has been corrected in svn, can you try again?
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-26 Thread Yousef Hurfoush

that fixed it, thanks.

now I'm trying to build the x64, i download the recommended mingw64,
and it compiles but the resulting blender crashes on start-up!
any ideas whats to do?

Regards
Yousef Harfoush
ba...@msn.com



> Date: Thu, 26 Apr 2012 13:05:40 +0300
> From: kal...@gmail.com
> To: bf-committers@blender.org
> Subject: Re: [Bf-committers] trying to build with mingw32
> 
> Hi, it has been corrected in svn, can you try again?
> ___
> 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] trying to build with mingw32

2012-04-26 Thread Antony Riakiotakis
Do you have WITH_BF_FFMPEG enabled? If you do you should turn it off for now.
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-26 Thread Yousef Hurfoush

ok made it work, here is a comparision of time between msvcsp1 and mingw

using mike's bmw car scene:
Time: 3 min 24 sec (CPU) x64 mingw r45981
Time: 5 min 43 sec (CPU) x64 msvcsp1 r45820
Time: 5 min 27 sec (CPU) x32 mingw r45965
Time: 6 min 00 sec (CPU) x32 msvcsp1 r45965
the x64 mingw is much faster
any chance to soon enable ffmpeg, collada, libsnd on the x64?

Regards
Yousef Harfoush
ba...@msn.com



> Date: Thu, 26 Apr 2012 18:20:47 +0300
> From: kal...@gmail.com
> To: bf-committers@blender.org
> Subject: Re: [Bf-committers] trying to build with mingw32
> 
> Do you have WITH_BF_FFMPEG enabled? If you do you should turn it off for now.
> ___
> 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] trying to build with mingw32

2012-04-26 Thread Antony Riakiotakis
Yes, I'll try ffmpeg tomorrow/in the weekend and OpenCollada ASAP.
What is libsnd for though? I am asking because I don't do sound here
so I don't know and more importantly because it is turned off for
default MinGW32 as well.
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] trying to build with mingw32

2012-04-26 Thread Yousef Hurfoush

> Yes, I'll try ffmpeg tomorrow/in the weekend and OpenCollada ASAP.
awesome, waiting for you.

> What is libsnd for though? I am asking because I don't do sound here
> so I don't know and more importantly because it is turned off for
> default MinGW32 as well.

it provides packed file support check here -> 
http://www.mega-nerd.com/libsndfile/

Regards
Yousef Harfoush
ba...@msn.com

  
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers