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

GDML install gmsh python library for FC 1.0.0 #154

Open
KeithSloan opened this issue Nov 27, 2024 · 1 comment
Open

GDML install gmsh python library for FC 1.0.0 #154

KeithSloan opened this issue Nov 27, 2024 · 1 comment

Comments

@KeithSloan
Copy link
Owner

For some reason the FC tool manager prompts that gmsh is required but does not successfully install.

Suggest you select the ignore option and manually install.

i.e in FreeCAD console.

import sys
print(sys.path)
""" Choose an appropriate path on Mac I selected 
""" /Applications/FreeCAD 1.0.0.app/Contents/Resources/lib/python3.11/site-packages'

so 

pip install gmsh -t '/Applications/FreeCAD 1.0.0.app/Contents/Resources/lib/python3.11/site-packages'

You also need to copy the gmsh shared library to an appropriate place for FreeCAD

Note: You can use all the workbench facilities that don't use gmsh without the gmsh python library ijnstalled

@porosev
Copy link

porosev commented Nov 30, 2024

Just few comments for Windows...

I installed FC1.0.0 to "D:\Program Files\FreeCAD_1.0", and replaced any space characters in PATH with "_", to prevent any wrong string parsing. After that I installed "gmsh" with command:

D:\Program Files\FreeCAD_1.0\bin\python.exe -m pip install --upgrade gmsh -t "D:/Program Files/FreeCAD_1.0/bin/Lib/site-packages"

install_gmsh

after that unpack content of "gmsh-4.13.1-Windows64-sdk.zip":

..\lib to "D:\Program Files\FreeCAD_1.0\bin\Lib\site-packages"

..\bin to "D:\Program Files\FreeCAD_1.0\bin\Lib\site-packages\bin"
..\include to "D:\Program Files\FreeCAD_1.0\bin\Lib\site-packages\include"
..share to "D:\Program Files\FreeCAD_1.0\bin\Lib\site-packages\share"

gmsh_sdk

After that, everything work...

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