I put together a basic Debian source package for Calculix. It uses the standard packages for spooles and arpack which simplifies things a bit. Tips, suggestions, comments welome.
Packages for Wheezy are available in my repo here.
# Extract archive
tar -zxvf ccx_2.7_debian.tar.gz
# Install dependencies
sudo apt-get install libspooles-dev libarpack2-dev gfortran
# Build package
cd ccx-2.7
dpkg-buildpackage -us -uc
# Install package
sudo dpkg -i ../ccx_2.7-1_YOURARCH.deb
# Run Calculix with
ccx
# To use more than 1 thread, set OMP_NUM_THREADS to the desired number
OMP_NUM_THREADS=4 ccx
Edit: 3/2/14
* Run with ccx instead of ccx_2.7
* Added thread info
Last edited by cblt2l on Sun Mar 02, 2014 5:45 pm, edited 1 time in total.
Juergen, would we want it compiled with multi thread support or not? I think I read that it can be compile to support OpenMP?
Which also brings up the next question, can FreeCAD be more multi threaded? OCE can use either OpenMP or tbb. I suspect it only uses it for Meshing, I read somewhere on the OCE forum once that OCE already supports these two for Meshing, but I don't know if it only works for meshing or what exactly they meant by Meshing.
I tried an experiment a few days ago, I compiled OCE from their master in three forms,
1) default no multi threading
2) with OpenMP support
3) with tbb support
I could not detect any difference between the three, both in terms of speed and in terms of CPU usage in my system monitor.
jriegel wrote:Do we need a version number to start Calculix? Would be a symlink to ccx possible?
Added the symlink. Now it starts with "ccx" or "ccx_2.7"
jriegel wrote:For FreeCAD we need only the solver, don't bother with packaging the rest....
Its just the solver.
jmaustpc wrote:Juergen, would we want it compiled with multi thread support or not? I think I read that it can be compile to support OpenMP?
It is compiled for multi threading but you have to set OMP_NUM_THREADS to the max number of threads to use. According to the documentation, Calculix should automatically set the number of threads based on the workload but for every case I run without setting OMP_NUM_THREADS it only uses 1 thread. It probably needs more testing.
What is the result of running dpkg-buildpackage? Did it finish successfully? If all goes well the package name should be listed somewhere at the end of the console output. Also if your not on amd64 your package name will be different. It may be something like "ccx_2.7-1_i386.deb" if your on an i386 system.
Also, if the command line isn't your thing you can use gdebi to install it.
I found that I can't install the .deb package because it's not found.
The dpkg-buildpackage command ends up with these lines (too many lines to be reported completely)
MarcoP wrote:I'm have a basic ubuntu 12.04 with no other softwares except octave.
A basic Ubuntu installation does not have the required packages for compilation. For starters you need to install "build-essential" and possibly other packages.