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

Error when configuring Basilisk 2.4.26 on Windows. #822

Open
LuoXubo opened this issue Sep 26, 2024 · 1 comment
Open

Error when configuring Basilisk 2.4.26 on Windows. #822

LuoXubo opened this issue Sep 26, 2024 · 1 comment

Comments

@LuoXubo
Copy link

LuoXubo commented Sep 26, 2024

When I run python conanfile.py --generator "Visual Studio 17 2022" as your instruction, there's an error like:

-- Configuring incomplete, errors occurred!
ERROR: conanfile.py (Basilisk/2.4.26): Error in build() method, line 278
cmake.configure()
ConanException: Error 1 while executing cd D:\thirdparty\basilisk\dist3 && cmake -G "Visual Studio 17 2022" -A "x64" -DCONAN_LINK_RUNTIME="False" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="Visual Studio" -DCONAN_COMPILER_VERSION="17" -DCONAN_CXX_FLAGS="/MP16" -DCONAN_C_FLAGS="/MP16" -DCMAKE_INSTALL_PREFIX="D:\thirdparty\basilisk\package" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_PREFIX_PATH="D:/thirdparty/basilisk/dist3/conan" -DCMAKE_MODULE_PATH="D:/thirdparty/basilisk/dist3/conan" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DCONAN_LINK_RUNTIME_MULTI="/MD" -DBUILD_OPNAV="False" -DBUILD_VIZINTERFACE="True" -DEXTERNAL_MODULES_PATH="" -DPYTHON_VERSION="3.8" -DCMAKE_BUILD_RPATH_USE_ORIGIN="True" -Wno-dev D:\thirdparty\basilisk\src
Traceback (most recent call last):
File "conanfile.py", line 412, in
completedProcess = subprocess.run(cmakeCmdString, shell=True, check=True)
File "D:\soft\Anaconda\lib\subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'D:\thirdparty\basilisk.venv\Scripts\python.exe -m conans.conan build . -if dist3/conan' returned non-zero exit status 1.

Can you help me solve this problem?

@schaubh
Copy link
Contributor

schaubh commented Sep 27, 2024

I don't have experience with anaconda, no sure if there are issues with that. We have found issues if someone had VS 16 installed at some point and switched to VS 17. I would take a look at the complete terminal log to see what VS version it found. Also, sometimes clearing out the conan file .conan in your user directory will force this to be rebuilt from scratch.

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

No branches or pull requests

2 participants