MacPorts users: CalculiX port test request
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
MacPorts users: CalculiX port test request
I've been messing around over the last few evenings with making a port for CalculiX (the FEM program that FreeCAD uses) - would be great to get a bit of testing from people who have an interest in using FreeCAD on Macs! This just involves:
1 Cloning a small git repository https://github.com/ianrrees/macports
2 Pointing MacPorts at the git repository https://guide.macports.org/#development ... positories
3 Running "sudo port install calculix" and noting any issues
4 If it works you should be able to run ccx and see something like "Usage: CalculiX.exe -i jobname"
I haven't had a chance to verify the dependencies yet; I've got it set to use gcc5 currently, but can probably use older versions too. Thanks! -Ian-
1 Cloning a small git repository https://github.com/ianrrees/macports
2 Pointing MacPorts at the git repository https://guide.macports.org/#development ... positories
3 Running "sudo port install calculix" and noting any issues
4 If it works you should be able to run ccx and see something like "Usage: CalculiX.exe -i jobname"
I haven't had a chance to verify the dependencies yet; I've got it set to use gcc5 currently, but can probably use older versions too. Thanks! -Ian-
Re: MacPorts users: CalculiX port test request
Hi,
I'm Interested in Calculix on OSX also!
I'm Clearly not familiar with macport (tried once but not convince).
what do I need to install exactly to test it?
I'm Interested in Calculix on OSX also!
I'm Clearly not familiar with macport (tried once but not convince).
what do I need to install exactly to test it?
Re: MacPorts users: CalculiX port test request
Thanks for your interest! Do you have any of the usual 3rd party package managers (Homebrew/MacPorts/Fink) installed? If you do, I'd suggest not adding MacPorts to the mix.
If not, first install MacPorts (instructions at http://macports.org ), then follow the steps in my first post. Let me know what version of MacOS you're using, and where/if you run into problems. -Ian-
If not, first install MacPorts (instructions at http://macports.org ), then follow the steps in my first post. Let me know what version of MacOS you're using, and where/if you run into problems. -Ian-
Re: MacPorts users: CalculiX port test request
So, as I have 3rd package managers I put Macports.
so after some permission issue to add the local repo, I finally got the "self update" without error.
but it's not working :
I guess my first problem is to be sure that the local repo is well taken in account.
so after some permission issue to add the local repo, I finally got the "self update" without error.
Code: Select all
$ sudo port selfupdate
---> Updating MacPorts base sources using rsync
MacPorts base version 2.3.4 installed,
MacPorts base version 2.3.4 downloaded.
---> Updating the ports tree
---> MacPorts base is already the latest version
The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
but it's not working :
Code: Select all
$ sudo port install calculix
Error: Port calculix not found
Re: MacPorts users: CalculiX port test request
You'll need to clone my git repo above (git clone https://github.com/ianrrees/macports.git), cd into the directory created, run portindex in that directory, then add it in to your macports config file per instructions linked to above on the macports site (add to /opt/local/etc/macports/sources.conf as the second-to-last line "file:///Path/To/The/git/repo"). Should work OK now as I made some changes this morning, but always good to have another tester! Thanks. -Ian-
Re: MacPorts users: CalculiX port test request
so
Port index give me that :
so I guess it's ok, but the install still found nothing
so I did this command line
and it's installing right now.........
Port index give me that :
Code: Select all
Warning: xcodebuild exists but failed to execute
Adding port math/calculix
Total number of ports parsed: 1
Ports successfully parsed: 1
Ports failed: 0
Up-to-date ports skipped: 0
so I did this command line
Code: Select all
sudo port install /math/calculix
Re: MacPorts users: CalculiX port test request
Cool!
it looks like ccx works!!!
no warning message during the installation
but now I need to make the Gmsh macro work too.....
it looks like ccx works!!!
no warning message during the installation
but now I need to make the Gmsh macro work too.....
Re: MacPorts users: CalculiX port test request
It Works Like a Charm !!
thanks a lot!
by the way I just needed to put the correct binary path for Gmsh
thanks a lot!
by the way I just needed to put the correct binary path for Gmsh
Code: Select all
gmsh_bin = "/Applications/Gmsh.app/Contents/MacOS/gmsh"
- Attachments
-
- FEM_ccx.png (410.58 KiB) Viewed 14323 times
Re: MacPorts users: CalculiX port test request
Awesome, thanks!
I've got tickets/pull request in with MacPorts and FreeCAD so that we should be able to build netgen support in to FreeCAD on MacPorts soon. -Ian-
I've got tickets/pull request in with MacPorts and FreeCAD so that we should be able to build netgen support in to FreeCAD on MacPorts soon. -Ian-
Re: MacPorts users: CalculiX port test request
FYI, Ian's netgen/nglib contribution is now incorporated into the OS X builds as of build 6669 (i.e. FreeCAD_0.16-6669.7dbcbc0-OSX-x86_64.dmg). Thanks Ian!ian.rees wrote:Awesome, thanks!
I've got tickets/pull request in with MacPorts and FreeCAD so that we should be able to build netgen support in to FreeCAD on MacPorts soon. -Ian-