Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Windows with Python 3.6 #36

Closed
supermihi opened this issue Oct 15, 2017 · 2 comments
Closed

Build fails on Windows with Python 3.6 #36

supermihi opened this issue Oct 15, 2017 · 2 comments

Comments

@supermihi
Copy link
Owner

The procedure described in the Readme for compiling on Windows leads to Unresolved reference errors when linking the pytaglib module.

Tried with both the VS 2017 and VS 2015 compiler. I am not a Windows user, any help on this is appreciated!!

@marian-vignau
Copy link

marian-vignau commented Dec 15, 2017

  1. First, you'll need:
    a) Install Microsoft Visual Studio 2015 Community Edition. In the installation process, be sure to enable C/C++ support. https://www.visualstudio.com/downloads/download-visual-studio-vs
    b) Install cmake software https://cmake.org/download/ Choose installer for windows.

  2. Download
    a) https://pypi.python.org/pypi/pytaglib
    b) http://taglib.org/ . Select http://taglib.org/releases/taglib-1.11.1.tar.gz
    Create a folder for pytaglib and uncompress pytaglib on it.
    Do the same with taglib, choose somo other subdir

  3. On Start Menu, go to All Applications, Visual Studio C++ Build Tools, choose
    "Visual C++ 2015 x64 Native Build Tools Command Prompt"

  4. Change dir to taglib dir, put

cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=".\taglib-install"
msbuild INSTALL.vcxproj /p:Configuration=Release
set TAGLIB_HOME=C:\Path\To\taglib-install
TAGLIB_HOME must be set to an absolute path

  1. Change dir to pytaglib dir, and put

python.exe setup.py build
python.exe setup.py install

@supermihi
Copy link
Owner Author

Thanks a lot, it worked for me and I've uploaded a new wheel for windows/CPython3.6/amd64. Will try to make another one for x32.

No clue why this did not work last time I tried, because your steps appear to be exactly the same as in the README file of this repository ... anyway, thanks again for your help! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants