You should edit the file paths of the include directories and the linker directories. If you want to build a 32-bit leveldb project, change the configuration to win32 release. This guide is based on the 圆4 release configuration. Next, open the levedb_ext.sln file in Visual Studio. The readme on this repo contains some basic instructions on how to compile leveldb. First, download the source code from GitHub (either clone the repository or download the source code as zip). Python -c "import leveldb" # this should work without any error In the directory where the libtorrent source code is located, navigate to bindings\\python and build libtorrent by executing the following command (this takes a while so make sure to grab a coffee while waiting): Open the Developer Command Prompt shipped with Visual Studio (not the regular command prompt) and navigate to the location where you extracted the libtorrent source. msi installer so you do not have to compile libtorrent yourself. Note that you if you have a 32-bit system, you can download the. Now, download the libtorrent source code from GitHub and extract it. After modifying your PATH, you should reopen your command prompt. In order to invoke b2 from anywhere in your command line, you should add the Boost directory to your user PATH environment variable. Navigate to tools\\build and execute bootstrap.bat. You can do this by opening the Visual Studio command prompt and navigating to your Boost libraries. The default installation location for the Boost libraries is C:\\local\\boost_ where indicates the installed Boost version. Now add a variable named BOOST_ROOT and with the value of your Boost location. You can do this by going to Control Panel > System > Advanced > Environment Variables (more information about setting environment variables can be found here). Make sure to select the latest version and choose the version is compatible with your version of Visual C tools (probably msvc-14).Īfter installation, you should set an environment variable to let libtorrent know where Boost can be found. First, install Boost which can be downloaded from SourceForge. To install libtorrent, you can simply copy the libtorrent.pyd file from the Github repository here and place it inside your python site-packages directory.Īlternatively, if above does not work then you can try to compile from source. You can do that by following article here. It may be required to enable Visual C Toolset on the Command Line if Native Command Line tool is not available. One other DLL that was missing was MSVCR110.DLL, which belongs to the Visual C Redistributable for Visual Studio 2012 Update 4.Īfter installing these two packages, there should be no more import errors. This package can be downloaded from the Microsoft website. In our case, we were missing MSVCR100.DLL which belongs to the Microsoft Visual C 2010 SP1 Redistributable Package (圆4). In case importing one of the modules fail due to a DLL error, you can inspect if there are files missing by opening it with Dependency Walker. Visual Studio then gives an option to install the Visual C developer tools. This can be done from within Visual Studio by creating a new Visual C project. After installation of Visual Studio, you should install the Visual C tools. Moreover, it provides a nice IDE which can be used to work on Python projects. Visual Studio ships with a command line interface that can be used for building some of the Python packages. In order to compile some of the dependencies of Tribler, you will need Visual Studio 2015 which can be downloaded from here or here. Information about how to set path variable can be found here. If you forgot to add Python to your PATH during the setup, you need to add the C:\\Python27\\ and C:\\Python27\\Scripts directories to your PATH variable. The third-party libraries are located in C:\\Python27\\Lib\\site-packages. If you did not change the default installation location, Python should be located at C:\\Python27\\. If they are not working, check whether the PATH variables are correctly set. Also check whether pip is working by typing pip in the command line. The option to add Python to the PATH variable is unchecked by default! You can verify whether Python is installed correctly by typing python in the command line. During the setup, remember to install pip/setuptools and to add Python to the PATH variable to access Python from the command line. You should download the Windows x86-64 MSI Installer which is an executable. Python can be downloaded from the official Python website. This outputs whether your current installation is 32 or 64 bit. Python -c "import struct print( 8 * struct.calcsize('P'))"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |