-
Notifications
You must be signed in to change notification settings - Fork 119
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 a development version on Windows 11, and use it on Visual Studio 2022 by C++ #997
Comments
I want use cctbx on VS by C++, I'm not comfortable with python code habits, I'm not comfortable with python code habits, is there a cctbx version that can be used with just #include |
It looks like you're switching from Python 2 to Python 3. You can try completely deleting your
We set up the Visual Studio compiler (either 2019 or 2022) with If you are writing a separate program, you can write a regular C/C++ program with our includes and linking against our libraries. |
Thank you very much for your answer, the installation of C++ package is too complicated for me, I hope you can provide a detailed manual for installing C++ package under windows and using VS, the manual may be as detailed as possible and explain the role of each step, so as to facilitate the installation of users. |
(cctbx_env) PS C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build> D:\Software\anaconda3\python.exe .\bootstrap.py --use-conda C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty dist /MIR /COPYALL 1>nul ) & rmdir /S /Q dist\ & ) C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty tests /MIR /COPYALL 1>nul ) & rmdir /S /Q tests\ & ) C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty tmp /MIR /COPYALL 1>nul ) & rmdir /S /Q tmp\ & )
removing .pyc files in C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules, walk? True I still want to use the C++ version of cctbx, python does not have a clear data structure, the installation according to your method still failed, it seems that some files about SCons reported errors, please give me some guidance. Also, I was wondering if there is a community with cctbx that can discuss issues? Or where is there enough code related to the cctbx library that I can understand the data structure and how each function is used? |
I would appreciate it if you could help me! I follow the instructions in https://github.com/cctbx/cctbx_project to build a development version. But there are some errors that occur when I run the command python bootstrap.py --use-conda. I try it on Windows 11 and use it on Visual Studio 2022. here are some error during installation. also, I want to know how to use cctbx onVisual Studio 2022.
PS C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build> D:\Software\anaconda3\python.exe .\bootstrap.py --use-conda
Performing actions: hot update base build
Installing base packages using:
D:\Software\anaconda3\python.exe modules\cctbx_project\libtbx\auto_build\install_conda.py --builder=cctbx --install_conda --python=37
===== Running in .: deleting dist, tests, tmp
C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty dist /MIR /COPYALL 1>nul ) & rmdir /S /Q dist\ & )
系统找不到指定的文件。
C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty tests /MIR /COPYALL 1>nul ) & rmdir /S /Q tests\ & )
系统找不到指定的文件。
C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty tmp /MIR /COPYALL 1>nul ) & rmdir /S /Q tmp\ & )
系统找不到指定的文件。
===== Running in modules\ccp4io_adaptbx: git pull --rebase
Already up to date.
===== Running in modules\dxtbx: git pull --rebase
Already up to date.
===== Running in modules\dxtbx: git remote set-url origin https://github.com/dials/dxtbx.git
===== Running in modules\dxtbx: git fetch origin
===== Running in modules\dxtbx: git checkout dials-3.5
Already on 'dials-3.5'
Your branch is up to date with 'origin/dials-3.5'.
===== Running in modules\dxtbx: git branch --set-upstream-to=origin/dials-3.5 dials-3.5
branch 'dials-3.5' set up to track 'origin/dials-3.5'.
WARNING: Can not update existing git repository! You are not on a branch.
This may be legitimate when run eg. via Jenkins, but be aware that you cannot commit any changes
===== Running in modules\cbflib: git pull --rebase
Already up to date.
===== Running in modules\boost: git pull --rebase
Already up to date.
===== Running in modules\annlib_adaptbx: git pull --rebase
Already up to date.
===== Running in modules\clipper: git pull --rebase
Already up to date.
===== Running in modules\annlib: git pull --rebase
Already up to date.
===== Running in modules\reduce: git pull --rebase
Already up to date.
===== Running in modules\cctbx_project: git pull --rebase
Already up to date.
===== Running in modules\cctbx_project: D:\Software\anaconda3\python.exe libtbx\version.py
Writing files containing version information for cctbx_project
Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\cctbx_version.txt
Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\cctbx_version.h
Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\setup.py
===== Running in modules\tntbx: git pull --rebase
Already up to date.
===== Running in modules\gui_resources: git pull --rebase
Already up to date.
===== Running in modules\ccp4io: git pull --rebase
Already up to date.
removing .pyc files in C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules, walk? True
removed 17 files
===== Running in .: base
Base conda installation:
D:\Software\anaconda3
The environment is newer than the environment file. Skipping update.
===== Running in build: run configure.py
Traceback (most recent call last):
File "..\modules\cctbx_project\libtbx\configure.py", line 34, in
if not run():
File "..\modules\cctbx_project\libtbx\configure.py", line 29, in run
libtbx.env_config.cold_start(sys.argv)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\env_config.py", line 3071, in cold_start
env = environment(build_path=build_path)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\env_config.py", line 455, in init
self.manage_python_version_major_minor()
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\env_config.py", line 508, in manage_python_version_major_minor
self.raise_python_version_incompatible(prev_pvmm=prev_pvmm)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\env_config.py", line 484, in raise_python_version_incompatible
+ " Python version in use now: %d.%d" % sys.version_info[:2])
RuntimeError: Python version incompatible with this build:
Build directory: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build"
Python version used initially: 2.7
Python version in use now: 3.7
Process failed with return code 1
The text was updated successfully, but these errors were encountered: