MacPorts users: CalculiX port test request

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

MacPorts users: CalculiX port test request

Postby ian.rees » Wed Mar 02, 2016 10:43 am

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-
User avatar
nemesis
Posts: 342
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: MacPorts users: CalculiX port test request

Postby nemesis » Fri Mar 04, 2016 8:11 pm

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?
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: MacPorts users: CalculiX port test request

Postby ian.rees » Fri Mar 04, 2016 10:48 pm

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-
User avatar
nemesis
Posts: 342
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: MacPorts users: CalculiX port test request

Postby nemesis » Sat Mar 05, 2016 10:00 am

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.

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
I guess my first problem is to be sure that the local repo is well taken in account.
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: MacPorts users: CalculiX port test request

Postby ian.rees » Sat Mar 05, 2016 10:09 am

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-
User avatar
nemesis
Posts: 342
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: MacPorts users: CalculiX port test request

Postby nemesis » Sat Mar 05, 2016 10:59 am

so
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 guess it's ok, but the install still found nothing
so I did this command line

Code: Select all

sudo port install /math/calculix
and it's installing right now.........
User avatar
nemesis
Posts: 342
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: MacPorts users: CalculiX port test request

Postby nemesis » Sat Mar 05, 2016 1:29 pm

Cool!
it looks like ccx works!!!
no warning message during the installation

but now I need to make the Gmsh macro work too.....
User avatar
nemesis
Posts: 342
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: MacPorts users: CalculiX port test request

Postby nemesis » Sat Mar 05, 2016 1:46 pm

It Works Like a Charm !!
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
FEM_ccx.png (410.58 KiB) Viewed 6896 times
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: MacPorts users: CalculiX port test request

Postby ian.rees » Sat Mar 05, 2016 7:45 pm

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-
blacey
Posts: 367
Joined: Tue Dec 08, 2015 11:28 pm

Re: MacPorts users: CalculiX port test request

Postby blacey » Tue Mar 29, 2016 5:22 pm

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-
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!