Building for windows

Suggestions and discussion of future versions
pjlbyrne
Member
Member
Posts: 14
Joined: Thu May 22, 2014 9:28 am
OS or Distro: debian

Building for windows

Postby pjlbyrne » Mon May 26, 2014 5:05 pm

Hi,

I am trying to compile deluge for windows. I have a problem compiling pyOpenSSL:

    _Cryptography_cffi_444d7397xa22f8491.c
    cryptography\hazmat\bindings\__pycache__\_Cryptography_cffi_444d7397xa22f8491.c(165) : fatal error C1083: Cannot open include file:
    'openssl/aes.h': No such file or directory
    error: c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\cffi-0.8.2-py2.7-win32.egg\_cffi_backend.pyd: Access is
    denied

Can someone suggest how I might make the openssl header files available to the build?

Here is the full log if that is any help:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\pat>cd Downloads

    C:\Users\pat\Downloads>cd pyOpenSSL-0.14

    C:\Users\pat\Downloads\pyOpenSSL-0.14>dir
    Volume in drive C is OS
    Volume Serial Number is C4F4-1F67

    Directory of C:\Users\pat\Downloads\pyOpenSSL-0.14

    26/05/2014 16:00 <DIR> .
    26/05/2014 16:00 <DIR> ..
    26/05/2014 16:00 <DIR> build
    09/01/2014 21:16 26,720 ChangeLog
    26/05/2014 16:00 <DIR> dist
    26/05/2014 15:59 <DIR> doc
    26/05/2014 15:59 <DIR> examples
    09/01/2014 21:16 607 INSTALL
    09/01/2014 21:16 11,358 LICENSE
    09/01/2014 21:16 235 MANIFEST.in
    26/05/2014 15:59 <DIR> OpenSSL
    23/02/2014 14:30 1,374 PKG-INFO
    26/05/2014 15:59 <DIR> pyOpenSSL.egg-info
    22/02/2014 13:53 339 README
    26/05/2014 15:59 <DIR> rpm
    23/02/2014 14:30 265 setup.cfg
    23/02/2014 13:58 2,363 setup.py
    09/01/2014 21:16 252 TODO
    9 File(s) 43,513 bytes
    9 Dir(s) 34,781,167,616 bytes free

    C:\Users\pat\Downloads\pyOpenSSL-0.14>python setup.py install
    running install
    running bdist_egg
    running egg_info
    writing requirements to pyOpenSSL.egg-info\requires.txt
    writing pyOpenSSL.egg-info\PKG-INFO
    writing top-level names to pyOpenSSL.egg-info\top_level.txt
    writing dependency_links to pyOpenSSL.egg-info\dependency_links.txt
    reading manifest file 'pyOpenSSL.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    no previously-included directories found matching 'doc\_build'
    writing manifest file 'pyOpenSSL.egg-info\SOURCES.txt'
    installing library code to build\bdist.win32\egg
    running install_lib
    running build_py
    creating build\bdist.win32\egg
    creating build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\crypto.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\rand.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\SSL.py -> build\bdist.win32\egg\OpenSSL
    creating build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_crypto.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_rand.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_ssl.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\util.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\__init__.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\tsafe.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\version.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\_util.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\__init__.py -> build\bdist.win32\egg\OpenSSL
    byte-compiling build\bdist.win32\egg\OpenSSL\crypto.py to crypto.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\rand.py to rand.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\SSL.py to SSL.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_crypto.py to test_crypto.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_rand.py to test_rand.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_ssl.py to test_ssl.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\util.py to util.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\__init__.py to __init__.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\tsafe.py to tsafe.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\version.py to version.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\_util.py to _util.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\__init__.py to __init__.pyc
    creating build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
    zip_safe flag not set; analyzing archive contents...
    creating 'dist\pyOpenSSL-0.14-py2.7.egg' and adding 'build\bdist.win32\egg' to it
    removing 'build\bdist.win32\egg' (and everything under it)
    Processing pyOpenSSL-0.14-py2.7.egg
    Removing c:\python27\lib\site-packages\pyOpenSSL-0.14-py2.7.egg
    Copying pyOpenSSL-0.14-py2.7.egg to c:\python27\lib\site-packages
    pyOpenSSL 0.14 is already the active version in easy-install.pth

    Installed c:\python27\lib\site-packages\pyopenssl-0.14-py2.7.egg
    Processing dependencies for pyOpenSSL==0.14
    Searching for cryptography>=0.2.1
    Reading https://pypi.python.org/simple/cryptography/
    Best match: cryptography 0.4
    Downloading https://pypi.python.org/packages/source ... ba113d2e84
    Processing cryptography-0.4.tar.gz
    Writing c:\users\pat\appdata\local\temp\easy_install-3b_mqm\cryptography-0.4\setup.cfg
    Running cryptography-0.4\setup.py -q bdist_egg --dist-dir c:\users\pat\appdata\local\temp\easy_install-3b_mqm\cryptography-0.4\egg-d
    ist-tmp-kwribt
    Searching for cffi>=0.8
    Reading https://pypi.python.org/simple/cffi/
    Best match: cffi 0.8.2
    Downloading https://pypi.python.org/packages/source ... 2433f951ec
    Processing cffi-0.8.2.tar.gz
    Writing c:\users\pat\appdata\local\temp\easy_install-3b_mqm\cryptography-0.4\temp\easy_install-vttxhb\cffi-0.8.2\setup.cfg
    Running cffi-0.8.2\setup.py -q bdist_egg --dist-dir c:\users\pat\appdata\local\temp\easy_install-3b_mqm\cryptography-0.4\temp\easy_i
    nstall-vttxhb\cffi-0.8.2\egg-dist-tmp-bt8rxz
    error: Setup script exited with error: Unable to find vcvarsall.bat

    C:\Users\pat\Downloads\pyOpenSSL-0.14>SET VS90COMNTOOLS=%VS100COMNTOOLS%

    C:\Users\pat\Downloads\pyOpenSSL-0.14>python setup.py install
    running install
    running bdist_egg
    running egg_info
    writing requirements to pyOpenSSL.egg-info\requires.txt
    writing pyOpenSSL.egg-info\PKG-INFO
    writing top-level names to pyOpenSSL.egg-info\top_level.txt
    writing dependency_links to pyOpenSSL.egg-info\dependency_links.txt
    reading manifest file 'pyOpenSSL.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    no previously-included directories found matching 'doc\_build'
    writing manifest file 'pyOpenSSL.egg-info\SOURCES.txt'
    installing library code to build\bdist.win32\egg
    running install_lib
    running build_py
    creating build\bdist.win32\egg
    creating build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\crypto.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\rand.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\SSL.py -> build\bdist.win32\egg\OpenSSL
    creating build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_crypto.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_rand.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_ssl.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\util.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\__init__.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\tsafe.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\version.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\_util.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\__init__.py -> build\bdist.win32\egg\OpenSSL
    byte-compiling build\bdist.win32\egg\OpenSSL\crypto.py to crypto.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\rand.py to rand.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\SSL.py to SSL.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_crypto.py to test_crypto.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_rand.py to test_rand.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_ssl.py to test_ssl.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\util.py to util.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\__init__.py to __init__.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\tsafe.py to tsafe.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\version.py to version.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\_util.py to _util.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\__init__.py to __init__.pyc
    creating build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
    zip_safe flag not set; analyzing archive contents...
    creating 'dist\pyOpenSSL-0.14-py2.7.egg' and adding 'build\bdist.win32\egg' to it
    removing 'build\bdist.win32\egg' (and everything under it)
    Processing pyOpenSSL-0.14-py2.7.egg
    Removing c:\python27\lib\site-packages\pyOpenSSL-0.14-py2.7.egg
    Copying pyOpenSSL-0.14-py2.7.egg to c:\python27\lib\site-packages
    pyOpenSSL 0.14 is already the active version in easy-install.pth

    Installed c:\python27\lib\site-packages\pyopenssl-0.14-py2.7.egg
    Processing dependencies for pyOpenSSL==0.14
    Searching for cryptography>=0.2.1
    Reading https://pypi.python.org/simple/cryptography/
    Best match: cryptography 0.4
    Downloading https://pypi.python.org/packages/source ... ba113d2e84
    Processing cryptography-0.4.tar.gz
    Writing c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\setup.cfg
    Running cryptography-0.4\setup.py -q bdist_egg --dist-dir c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\egg-d
    ist-tmp-hswvsd
    Searching for cffi>=0.8
    Reading https://pypi.python.org/simple/cffi/
    Best match: cffi 0.8.2
    Downloading https://pypi.python.org/packages/source ... 2433f951ec
    Processing cffi-0.8.2.tar.gz
    Writing c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\temp\easy_install-qs8lew\cffi-0.8.2\setup.cfg
    Running cffi-0.8.2\setup.py -q bdist_egg --dist-dir c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\temp\easy_i
    nstall-qs8lew\cffi-0.8.2\egg-dist-tmp-5r2868
    _cffi_backend.c
    c/_cffi_backend.c(5295) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    c/_cffi_backend.c(5296) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    c/_cffi_backend.c(5297) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    c/_cffi_backend.c(5298) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    ffi.c
    c/libffi_msvc\ffi.c(122) : warning C4018: '>' : signed/unsigned mismatch
    prep_cif.c
    types.c
    win32.c
    Creating library build\temp.win32-2.7\Release\c\_cffi_backend.lib and object build\temp.win32-2.7\Release\c\_cffi_backend.exp

    Installed c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\cffi-0.8.2-py2.7-win32.egg
    Searching for pycparser
    Reading https://pypi.python.org/simple/pycparser/
    Best match: pycparser 2.10
    Downloading https://pypi.python.org/packages/source ... 65fe4d515f
    Processing pycparser-2.10.tar.gz
    Writing c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\temp\easy_install-nyqrgc\pycparser-2.10\setup.cfg
    Running pycparser-2.10\setup.py -q bdist_egg --dist-dir c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\temp\ea
    sy_install-nyqrgc\pycparser-2.10\egg-dist-tmp-36dccq
    zip_safe flag not set; analyzing archive contents...

    Installed c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\pycparser-2.10-py2.7.egg
    _Cryptography_cffi_684bb40axf342507b.c
    Creating library c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\cryptography\hazmat\primitives\__pycache__\
    Release\cryptography\hazmat\primitives\__pycache__\_Cryptography_cffi_684bb40axf342507b.lib and object c:\users\pat\appdata\local\te
    mp\easy_install-bd4q_d\cryptography-0.4\cryptography\hazmat\primitives\__pycache__\Release\cryptography\hazmat\primitives\__pycache_
    _\_Cryptography_cffi_684bb40axf342507b.exp
    _Cryptography_cffi_8f86901cxc1767c5a.c
    cryptography\hazmat\primitives\__pycache__\_Cryptography_cffi_8f86901cxc1767c5a.c(218) : warning C4244: '=' : conversion from 'unsig
    ned __int64' to 'uint8_t', possible loss of data
    Creating library c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\cryptography\hazmat\primitives\__pycache__\
    Release\cryptography\hazmat\primitives\__pycache__\_Cryptography_cffi_8f86901cxc1767c5a.lib and object c:\users\pat\appdata\local\te
    mp\easy_install-bd4q_d\cryptography-0.4\cryptography\hazmat\primitives\__pycache__\Release\cryptography\hazmat\primitives\__pycache_
    _\_Cryptography_cffi_8f86901cxc1767c5a.exp
    _Cryptography_cffi_444d7397xa22f8491.c
    cryptography\hazmat\bindings\__pycache__\_Cryptography_cffi_444d7397xa22f8491.c(165) : fatal error C1083: Cannot open include file:
    'openssl/aes.h': No such file or directory
    error: c:\users\pat\appdata\local\temp\easy_install-bd4q_d\cryptography-0.4\cffi-0.8.2-py2.7-win32.egg\_cffi_backend.pyd: Access is
    denied

    C:\Users\pat\Downloads\pyOpenSSL-0.14>v setup.cfg
    'v' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\pat\Downloads\pyOpenSSL-0.14>qedit setup.cfg
    'qedit' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\pat\Downloads\pyOpenSSL-0.14>python setup.py install --user
    running install
    running bdist_egg
    running egg_info
    writing requirements to pyOpenSSL.egg-info\requires.txt
    writing pyOpenSSL.egg-info\PKG-INFO
    writing top-level names to pyOpenSSL.egg-info\top_level.txt
    writing dependency_links to pyOpenSSL.egg-info\dependency_links.txt
    reading manifest file 'pyOpenSSL.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    no previously-included directories found matching 'doc\_build'
    writing manifest file 'pyOpenSSL.egg-info\SOURCES.txt'
    installing library code to build\bdist.win32\egg
    running install_lib
    running build_py
    creating build\bdist.win32\egg
    creating build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\crypto.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\rand.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\SSL.py -> build\bdist.win32\egg\OpenSSL
    creating build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_crypto.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_rand.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\test_ssl.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\util.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\test\__init__.py -> build\bdist.win32\egg\OpenSSL\test
    copying build\lib\OpenSSL\tsafe.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\version.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\_util.py -> build\bdist.win32\egg\OpenSSL
    copying build\lib\OpenSSL\__init__.py -> build\bdist.win32\egg\OpenSSL
    byte-compiling build\bdist.win32\egg\OpenSSL\crypto.py to crypto.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\rand.py to rand.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\SSL.py to SSL.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_crypto.py to test_crypto.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_rand.py to test_rand.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\test_ssl.py to test_ssl.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\util.py to util.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\test\__init__.py to __init__.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\tsafe.py to tsafe.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\version.py to version.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\_util.py to _util.pyc
    byte-compiling build\bdist.win32\egg\OpenSSL\__init__.py to __init__.pyc
    creating build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
    copying pyOpenSSL.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
    zip_safe flag not set; analyzing archive contents...
    creating 'dist\pyOpenSSL-0.14-py2.7.egg' and adding 'build\bdist.win32\egg' to it
    removing 'build\bdist.win32\egg' (and everything under it)
    Processing pyOpenSSL-0.14-py2.7.egg
    Copying pyOpenSSL-0.14-py2.7.egg to c:\users\pat\appdata\roaming\python\python27\site-packages
    Adding pyOpenSSL 0.14 to easy-install.pth file

    Installed c:\users\pat\appdata\roaming\python\python27\site-packages\pyopenssl-0.14-py2.7.egg
    Processing dependencies for pyOpenSSL==0.14
    Searching for cryptography>=0.2.1
    Reading https://pypi.python.org/simple/cryptography/
    Best match: cryptography 0.4
    Downloading https://pypi.python.org/packages/source ... ba113d2e84
    Processing cryptography-0.4.tar.gz
    Writing c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\setup.cfg
    Running cryptography-0.4\setup.py -q bdist_egg --dist-dir c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\egg-d
    ist-tmp-2rygng
    Searching for cffi>=0.8
    Reading https://pypi.python.org/simple/cffi/
    Best match: cffi 0.8.2
    Downloading https://pypi.python.org/packages/source ... 2433f951ec
    Processing cffi-0.8.2.tar.gz
    Writing c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\temp\easy_install-mvtmul\cffi-0.8.2\setup.cfg
    Running cffi-0.8.2\setup.py -q bdist_egg --dist-dir c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\temp\easy_i
    nstall-mvtmul\cffi-0.8.2\egg-dist-tmp-kjabxk
    _cffi_backend.c
    c/_cffi_backend.c(5295) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    c/_cffi_backend.c(5296) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    c/_cffi_backend.c(5297) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    c/_cffi_backend.c(5298) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    ffi.c
    c/libffi_msvc\ffi.c(122) : warning C4018: '>' : signed/unsigned mismatch
    prep_cif.c
    types.c
    win32.c
    Creating library build\temp.win32-2.7\Release\c\_cffi_backend.lib and object build\temp.win32-2.7\Release\c\_cffi_backend.exp

    Installed c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\cffi-0.8.2-py2.7-win32.egg
    Searching for pycparser
    Reading https://pypi.python.org/simple/pycparser/
    Best match: pycparser 2.10
    Downloading https://pypi.python.org/packages/source ... 65fe4d515f
    Processing pycparser-2.10.tar.gz
    Writing c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\temp\easy_install-cnfdku\pycparser-2.10\setup.cfg
    Running pycparser-2.10\setup.py -q bdist_egg --dist-dir c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\temp\ea
    sy_install-cnfdku\pycparser-2.10\egg-dist-tmp-aactju
    zip_safe flag not set; analyzing archive contents...

    Installed c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\pycparser-2.10-py2.7.egg
    _Cryptography_cffi_684bb40axf342507b.c
    Creating library c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\cryptography\hazmat\primitives\__pycache__\
    Release\cryptography\hazmat\primitives\__pycache__\_Cryptography_cffi_684bb40axf342507b.lib and object c:\users\pat\appdata\local\te
    mp\easy_install-zoa3fa\cryptography-0.4\cryptography\hazmat\primitives\__pycache__\Release\cryptography\hazmat\primitives\__pycache_
    _\_Cryptography_cffi_684bb40axf342507b.exp
    _Cryptography_cffi_8f86901cxc1767c5a.c
    cryptography\hazmat\primitives\__pycache__\_Cryptography_cffi_8f86901cxc1767c5a.c(218) : warning C4244: '=' : conversion from 'unsig
    ned __int64' to 'uint8_t', possible loss of data
    Creating library c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\cryptography\hazmat\primitives\__pycache__\
    Release\cryptography\hazmat\primitives\__pycache__\_Cryptography_cffi_8f86901cxc1767c5a.lib and object c:\users\pat\appdata\local\te
    mp\easy_install-zoa3fa\cryptography-0.4\cryptography\hazmat\primitives\__pycache__\Release\cryptography\hazmat\primitives\__pycache_
    _\_Cryptography_cffi_8f86901cxc1767c5a.exp
    _Cryptography_cffi_444d7397xa22f8491.c
    cryptography\hazmat\bindings\__pycache__\_Cryptography_cffi_444d7397xa22f8491.c(165) : fatal error C1083: Cannot open include file:
    'openssl/aes.h': No such file or directory
    error: c:\users\pat\appdata\local\temp\easy_install-zoa3fa\cryptography-0.4\cffi-0.8.2-py2.7-win32.egg\_cffi_backend.pyd: Access is
    denied

    C:\Users\pat\Downloads\pyOpenSSL-0.14>


Thanks
Patrick

pjlbyrne
Member
Member
Posts: 14
Joined: Thu May 22, 2014 9:28 am
OS or Distro: debian

Re: Building for windows

Postby pjlbyrne » Mon May 26, 2014 5:13 pm

By the way, if it helps any one else attempting this, I found that I needed this advice:

http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat

to fix a previous error. Since I had Visual Studio Express 2010 installed (and not 2008), the advice above was needed to point the build script at VS2010.

Perhaps I need openssl headers added to system include directories in my Visual Studio install? Help!

P

pjlbyrne
Member
Member
Posts: 14
Joined: Thu May 22, 2014 9:28 am
OS or Distro: debian

Re: Building for windows

Postby pjlbyrne » Mon May 26, 2014 5:18 pm

... the 'Win32 OpenSSL Light' link which the wiki documentation (about compiling for windows) supplies does not appear to install header files but just some dlls ...?

Cas
Top Bloke
Top Bloke
Posts: 3475
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Building for windows

Postby Cas » Mon May 26, 2014 10:07 pm

The openssl package is not required and there by accident iirc.

Did you try installing pyopenssl 0.14 through python pip?

Any issues with building pyopenssl should be directed to those developers but for now just use previous pyopenssl version installer... https://pypi.python.org/pypi/pyOpenSSL/0.13/

pjlbyrne
Member
Member
Posts: 14
Joined: Thu May 22, 2014 9:28 am
OS or Distro: debian

Re: Building for windows

Postby pjlbyrne » Sat Jun 21, 2014 1:52 pm

Yep got it installed using pip, thanks.

doadin
Leecher
Leecher
Posts: 67
Joined: Mon Jun 30, 2014 9:24 am
OS or Distro: Windows

Re: Building for windows

Postby doadin » Mon Jun 30, 2014 9:41 am

Hi, i seem to be haveing some issues. As noted you should install pyopenssl with pip other than that for the most part building is exactly like it says. And works when launching deluge from the /python27/scripts/ folder. However when building the deluge-bbfreeze.py it continues but lists a error about not finding gdiplus.dll. After googleing i saw the line about it here http://ftp.gnome.org/pub/GNOME/binaries ... one.README almost all the way down under Known issues. After following the directions and copying the dll the error goes away but still when i try to launch deluge after using built installer it just simply closes. In other words the exe opens and closes no error or anything and almost instantly.

I like deluge and the dev branch seems better than 1.3.6 but the lack of updates and/or working source to build from is kinda frustrating. :(

Also it doesnt specify version to install in the instructions so i installed all the latest versions of each dep. Which probably doesnt really matter cause it seems to build and run fine its just the installer/install building thats broken/not updated?.

Edit: Also in setup.py the "version=" was giving an error when trying to build but i just changed it to version="1.4.0" and it worked fine. I dont know if maybe that messed it up some how?

doadin
Leecher
Leecher
Posts: 67
Joined: Mon Jun 30, 2014 9:24 am
OS or Distro: Windows

Re: Building for windows

Postby doadin » Tue Jul 01, 2014 9:47 pm

Hello, i have found the issue. It appears the bbfreeze is including the .egg-info but not the .egg folder for the modules:
cffi
cryptography
pycparser
_cffi_.backend

After copying them to the install folder it runs fine. So the issue lies in the the deluge-bbfreeze.py.

Edit: i tried to run the deluge build and install again and i couldnt replicate the fix. It is now saying its missing hazmat.bindings.openssl.binding. Doing a google search it appears that on archlinux downgrading to pyopenssl 0.13 fixes this. Which i also see you stated above.

Also looking back when executing the deluge-bbfreeze.py it says:
The following eggs are being used:
cffi 0.8.2 (c:\python27\lib\site-packages)
chardet 2.2.1 (c:\python27\lib\site-packages\chardet-2.2.1-py2.7.egg)

Note how the cffi just shows site-packages but not the .egg folder like chardet this difference can be seen between all copied or not copied modules.

Edit2: It appears that after installing pyopenssl 0.13 it also fixes the above issues.

doadin
Leecher
Leecher
Posts: 67
Joined: Mon Jun 30, 2014 9:24 am
OS or Distro: Windows

Re: Building for windows

Postby doadin » Tue Jul 01, 2014 11:08 pm

Now that i have all the issues figured out id like to start helping make changes. Whats the best way to go about this? I can see there is a deluge-torrent github account and also cas has his own but do you guys accept pull requests? Because i also notice the ticket system here http://dev.deluge-torrent.org/roadmap but it seems nothing has been changed in a while.

Edit: Also what is your policy on users uploading builds?

Cas
Top Bloke
Top Bloke
Posts: 3475
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Building for windows

Postby Cas » Wed Jul 02, 2014 11:20 am

You can provide pull requests with the only caveat that they are merged to our git repo and then mirrored back to github. My github is just a mirror of deluge-torrent with backups of my branches.

doadin
Leecher
Leecher
Posts: 67
Joined: Mon Jun 30, 2014 9:24 am
OS or Distro: Windows

Re: Building for windows

Postby doadin » Thu Jul 10, 2014 9:01 am

Is there anything special needed when compiling to get the webui to work? It makes the scripts and exes but when loading the page in chrome or firefox its just a blank page. There some output when running the debug exe/script i can add here later but want to make sure im not missing anything first.


Return to “Development”

Who is online

Users browsing this forum: No registered users and 3 guests