AVSLab / basilisk

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

Installation issue on MacOS #450

Open gilaniamer opened 1 year ago

gilaniamer commented 1 year ago

Describe the bug I have installed basilisk in my MacBook Air. However, unable to build via Conan.py, here is the screenshot of issue: The following build commands failed: PhaseScriptExecution Generate\ Basilisk/architecture/messaging/init.py /opt/homebrew/Cellar/git-lfs/basilisk/dist3/build/basilisk.build/Release/swigtrick.build/Script-CBDEB7F681B95067550E53A9.sh (in target 'swigtrick' from project 'basilisk') (1 failure) ERROR: conanfile.py (Basilisk/2.2.1b0): Error in build() method, line 279 cmake.build(['--', '-jobs', str(tools.cpu_count()), '-parallelizeTargets']) ConanException: Error 65 while executing cmake --build '/opt/homebrew/Cellar/git-lfs/basilisk/dist3' --config Release '--' '-jobs' '8' '-parallelizeTargets'

schaubh commented 1 year ago

Mm, not sure what is happening here. I'm building on macOS regularly. Are you running recent macOS Sonoma or earlier version? What version of Conan are you running. It can't be version 2.x, but the latest 1.x release for Sonoma. I'm about to push a change that will allow the latest version of Conan 1.xx to be installed that support Sonoma.

If running earlier macOS, be sure to have Conan 1.59.0 installed.

Other possible issues include making sure you have swig installed, make sure a single version of python is visible in your python virtual environment. Many users have multiple versions of python installed without realizing it.

patkenneally commented 12 months ago

@gilaniamer Can you help me understand how this path /opt/homebrew/Cellar/git-lfs/basilisk/dist3/build is involved in your compile/build setup? It's not a path combination I would expect. The failing in the swigtrick command is likely due to a path error.

MiruOb commented 12 months ago

@schaubh Hi, im having the same problem when trying to run the command python3 conanfile.py to create new messages. I have already installed basilisk a few months ago and I had no problems with the build, but now I wanted to create new C messages following https://hanspeterschaub.info/basilisk/Learn/makingModules/makingModules-2.html so I had to do the build again and I got the error:

The following build commands failed: PhaseScriptExecution Generate\ Basilisk/architecture/messaging/__init__.py /Users/mirandaobstdemaestri/Desktop/Tesis/Control/basilisk/dist3/build/basilisk.build/Release/swigtrick.build/Script-31E11925AB516B2EB0367EF2.sh (in target 'swigtrick' from project 'basilisk') (1 failure) ERROR: conanfile.py (Basilisk/2.2.0b0): Error in build() method, line 279 cmake.build(['--', '-jobs', str(tools.cpu_count()), '-parallelizeTargets']) ConanException: Error 65 while executing cmake --build '/Users/mirandaobstdemaestri/Desktop/Tesis/Control/basilisk/dist3' --config Release '--' '-jobs' '10' '-parallelizeTargets' After getting that error I tried deleting the .h files that I created inside src/architecture/msgPayloadDefC and doing the build again but I got the same error.

Im running macOS ventura 13.4, conan version: 1.59.0, python 3.11.2, swig version: 4.1.1

Any idea will be appreciate.

schaubh commented 10 months ago

Doesn't sound like this error is related to the new message if you continue to get this error message. I would recommend doing a fully clean build. You can

Generally speaking we are compiling BSK on macOS daily, and we are routinely adding new message types, etc. I'm pretty certain there is no structural issue with the macOS build at this point.