AVSLab / basilisk

Astrodynamics simulation framework
https://hanspeterschaub.info/basilisk
ISC License
149 stars 61 forks source link

Conanfile Error Upgrading from BSK 2.1.5 to 2.2.1 #594

Open cftenonespace opened 10 months ago

cftenonespace commented 10 months ago

Describe the bug Greetings, I'm in the process of upgrading my BSK environment (v.2.1.5) to the latest and greatest BSK v2.2.1. However when building BSK I'm obtaining the following error when cmake.configure() gets called:

Creating Directory Symbolic Link symbolic link created for C:\repos\of_grip_trigger_sim\basilisk\dist3\Basilisk\supportData\MagneticField <<===>> C:\repos\of_grip_trigger_sim\basilisk\src..\supportData\MagneticField -- Configuring incomplete, errors occurred! ERROR: conanfile.py (Basilisk/2.1.7): Error in build() method, line 281 cmake.configure() ConanException: Error 1 while executing cd C:\repos\of_grip_trigger_sim\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="C:\repos\of_grip_trigger_sim\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="C:/repos/of_grip_trigger_sim/basilisk/dist3/conan" -DCMAKE_MODULE_PATH="C:/repos/of_grip_trigger_sim/basilisk/dist3/conan" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DCONAN_LINK_RUNTIME_MULTI="/MD" -DBUILD_OPNAV="False" -DBUILD_VIZINTERFACE="False" -DEXTERNAL_MODULES_PATH="C:\repos\of_grip_trigger_sim\External" -DPYTHON_VERSION="3.12" -Wno-dev C:\repos\of_grip_trigger_sim\basilisk\src

To reproduce Steps to reproduce the behavior:

  1. Since I obtained this error after checking out v2.2.1 I decided to try incremental builds starting from 2.1.5 all the way to my desired v.2.2.1.
  2. The error starts occurring in BSK v.2.1.7, so 'git checkout 2.1.7'

Expected behavior I expected BSK to build without problems.

Screenshots image

Desktop (please complete the following information):

Additional context

Thank you for the support.

patkenneally commented 10 months ago

I believe this has been addressed in PR https://github.com/AVSLab/basilisk/pull/585 . Can you try pulling and building the develop branch?

cftenonespace commented 10 months ago

Thank you for such a swift response. Unfortunately with the latest in develop checked out and Basilisk/2.2.2 the same error is occurring. Error still occurring upon invocation of cmake.configure(). Any ideas? Is anyone able to re-plicate this?

image

patkenneally commented 10 months ago

Did you delete the dist3 directory before trying to build the latest? I ask because I see in the error message the string -DPYTHON_VERSION="4.1" which is a symptom of the error that was fixed.

cftenonespace commented 10 months ago

Did you delete the dist3 directory before trying to build the latest? I ask because I see in the error message the string -DPYTHON_VERSION="4.1" which is a symptom of the error that was fixed.

Yes i deleted the dist3 directory before building again. I'm not seeing much of a description on the source of the error, other than it occurred while invoking cmake.configure().

image

schaubh commented 9 months ago

If it is a conan related error, I recommend deleting the hidden .conan in your root user folder. This will enforce all conan dependencies to be built with the latest conan solutions.

schaubh commented 9 months ago

@cftenonespace , did deleting the .conan folder fix your issues? Also, conan will fail when you upgrade to newer OS versions. If in doubt, you can upgrade to the latest conan version that is less than 2.0 using

pip install --upgrade 'conan<2.0'