Search found 2 matches

by rcarreno
Thu Jan 12, 2023 11:43 pm
Forum: Framework
Topic: Compiling in MacBook with M1 processor
Replies: 4
Views: 8424

Re: Compiling in MacBook with M1 processor

Thank you so much for your help.
I was able to generate a dylib file and test it.
I'm now having trouble starting with the command: mv ./lib/OpenSeesPy.dylib ./lib/opensees.so
as the "lib" directory does not exist (I do get a dylib file with that name directly in the "build" folder, so I was just testing renaming that file into opensees.so)

After that, I don't quite understand what you mean by: To run the program I have linked the resulting OpenSees executable on /opt/homebrew/bin and the python module opensees.so on /opt/homebrew/lib/python3.11/site-packages. Do I need to move any file from the opensees build folder to /opt/homebrew/bin? how do I link the executable?

Thank again :)
by rcarreno
Mon Jan 02, 2023 5:56 pm
Forum: Framework
Topic: Compiling in MacBook with M1 processor
Replies: 4
Views: 8424

Compiling in MacBook with M1 processor

Hello everyone
I have a MacBook Pro with an M1 Pro processor and was wondering if it is possible to compile OpeSees natively for the arm processor. I followed the compiling steps for macOS described in the GitHub documentation (https://opensees.github.io/OpenSeesDocu ... build.html) but without success. My only experience compiling OpenSees so far has been using Visual Studio in Windows 10 and 11.

I can follow all the compiling steps in the documentation without issue up to the following terminal command:
>> conan install .. --build missing

at which point I get the following error:

ERROR: The recipe conanfile.py (OpenSeesDependencies/1.0.0) is constraining settings. Invalid setting 'armv8' is not a valid 'settings.arch' value.
Possible values are ['x86_64']
Read "http://docs.conan.io/en/latest/faq/trou ... id-setting"


I was able to "fix" the issue by adding the "armv8" to the settings option in conanfile.py, but keep getting compilation errors in the following steps, and I'm unable to generate the final executable OpenSees file (I managed to get an "OpenSees.a" file at the end of the process, but didn't know what to do with it).

My computer is a MacBook Pro 14" with M1 Pro processor running MacOS Ventura (v13.1).

Thank you