Hello,
I have successfully compiled and tested my Privateer for ChimeraX bundle on MacOS and Linux but am having issues trying to compile on Windows. I apologise in advance if my questions are naive or silly; I feel like a complete beginner when it comes to developing in the Windows environment.
Following the guide here (
https://www.cgl.ucsf.edu/chimerax/docs/devel/environment.html) I ensured I have Visual Studio 2019. I tried compiling in Visual Studio directly using a make_win.bat file. I also tried installing MinGW and installing the necessary packages with pacman (as outlined in the guide) and compiling from there using a standard Makefile. In both cases I get the same issue, whereby all my C++ library dependencies compile, and my own C++ code compiles into .obj files, but when it comes to building the wheel, it fails due to linker errors (LNK2001: unresolved external symbol) which all seem linked to Python (e.g. error LINK2001: unresolved external symbol __imp__PyThread_tss_create and many more similar ones too) and relate to the .obj file for the C++ file which contains the python bindings with pybind11.
I tried explicitly adding a link argument to python311.lib in case that was the issue, but it didn't help. I do not have this issue on MacOS or on LInux. I was just wondering if this is something anyone else has come across or can point me in the right direction. Any help is much appreciated.
Best wishes,
Lou Holland
(Pronouns: they/them)
Research Associate
York Structural Biology Laboratory,
Department of Chemistry,
University of York,
Heslington, YO10 5DD,
York, UK