Following the instructions on this page:
http://www.accelereyes.com/arrayfire/py ... tarted.htm
"python setup.py install" fails, as follows below (problem line in bold).
I have a 64-bit installation of Python 2.6
C:\Program Files\AccelerEyes\ArrayFire\1.2\python>python setup.py install
running install
running build
running build_py
package init file 'module\__init__.py' not found (or not a regular file)
package init file 'module\__init__.py' not found (or not a regular file)
running build_ext
building 'arrayfire' extension
creating build
creating build\temp.win-amd64-2.6
creating build\temp.win-amd64-2.6\Release
creating build\temp.win-amd64-2.6\Release\module
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG "-IC:\Program Files\AccelerEyes\ArrayFire\1.2\includ
e" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\\include" -IC:\Pyt
hon26\Lib\site-packages\numpy\core\include -Ic:\Python26\include -Ic:\Python26\P
C /Tpmodule\arrayfire.cpp /Fobuild\temp.win-amd64-2.6\Release\module\arrayfire.o
bj
arrayfire.cpp
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : war
ning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp
ecify /EHsc
module\arrayfire.cpp(10414) : warning C4244: '=' : conversion from 'double' to '
float', possible loss of data
module\arrayfire.cpp(10441) : warning C4244: '=' : conversion from 'double' to '
float', possible loss of data
module\arrayfire.cpp(14436) : warning C4800: 'int' : forcing value to bool 'true
' or 'false' (performance warning)
module\arrayfire.cpp(14666) : warning C4800: 'int' : forcing value to bool 'true
' or 'false' (performance warning)
module\arrayfire.cpp(16848) : warning C4244: '=' : conversion from 'double' to '
float', possible loss of data
module\arrayfire.cpp(16999) : warning C4244: '=' : conversion from 'double' to '
float', possible loss of data
module\arrayfire.cpp(17086) : warning C4244: '=' : conversion from 'double' to '
float', possible loss of data
module\arrayfire.cpp(19239) : warning C4800: 'PyObject *' : forcing value to boo
l 'true' or 'false' (performance warning)
module\arrayfire.cpp(21247) : warning C4244: '=' : conversion from 'double' to '
float', possible loss of data
module\arrayfire.cpp(21257) : warning C4244: '=' : conversion from 'double' to '
float', possible loss of data
module\arrayfire.cpp(23576) : warning C4244: 'argument' : conversion from '__int
64' to 'long', possible loss of data
creating build\lib.win-amd64-2.6
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe /DLL /n
ologo /INCREMENTAL:NO "/LIBPATH:C:\Program Files\AccelerEyes\ArrayFire\1.2\lib"
/LIBPATH:c:\Python26\libs /LIBPATH:c:\Python26\PCbuild\amd64 libaf.lib libafGFX.
lib /EXPORT:initarrayfire build\temp.win-amd64-2.6\Release\module\arrayfire.obj
/OUT:build\lib.win-amd64-2.6\arrayfire.pyd /IMPLIB:build\temp.win-amd64-2.6\Rele
ase\module\arrayfire.lib /MANIFESTFILE:build\temp.win-amd64-2.6\Release\module\a
rrayfire.pyd.manifest
libaf.lib(libaf.dll) : fatal error LNK1112: module machine type 'X86' conflicts
with target machine type 'x64'
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64
\link.exe"' failed with exit status 1112