Compiling CalculiX ccx on fedora, ubuntu and debian

About the development of the FEM module/workbench.

Moderator: bernd

tkeskita
Posts: 3
Joined: Wed Aug 07, 2019 6:54 am

Re: Compiling CalculiX ccx on fedora, ubuntu and debian

Postby tkeskita » Wed Aug 07, 2019 6:58 am

PrzemoF wrote:
Fri Feb 08, 2019 12:57 pm
The script doesn't work on ubuntu 16.04.5 LTS due to some linking problems. If someone needs it please post here - there is a manual workaround.
Ubuntu 16.04 compilation information would be appreciated, thanks.
User avatar
PrzemoF
Posts: 2660
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Compiling CalculiX ccx on fedora, ubuntu and debian

Postby PrzemoF » Wed Aug 07, 2019 9:26 am

Can you try to run the script? 5 months passed since I tested it on ubuntu, so maybe something has changed,
tkeskita
Posts: 3
Joined: Wed Aug 07, 2019 6:54 am

Re: Compiling CalculiX ccx on fedora, ubuntu and debian

Postby tkeskita » Fri Aug 09, 2019 5:01 am

PrzemoF wrote:
Wed Aug 07, 2019 9:26 am
Can you try to run the script? 5 months passed since I tested it on ubuntu, so maybe something has changed,
Hello,

the error I get when running ubuntu.sh on Ubuntu 16.04 is

make: *** No rule to make target '-larpack', needed by 'ccx_2.15'. Stop.

I found out that this is due to LIBS specification in Makefile in build/CalculiX/ccx_2.15/src/Makefile. After running ubuntu.sh until I get the error, compilation goes OK if I change the Makefile line

ccx_2.15: $(OCCXMAIN) ccx_2.15.a $(LIBS)

into

ccx_2.15: $(OCCXMAIN) ccx_2.15.a ../../../spooles.2.2/spooles.a

and run make in the src directory (it produces the ccx_2.15 executable there)

BR,
Tuomo
User avatar
PrzemoF
Posts: 2660
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Compiling CalculiX ccx on fedora, ubuntu and debian

Postby PrzemoF » Fri Aug 09, 2019 7:07 am

Great! The binary works OK? Did you verify the libraries used by the binary with "ldd ./ccx_2.15"?
tkeskita
Posts: 3
Joined: Wed Aug 07, 2019 6:54 am

Re: Compiling CalculiX ccx on fedora, ubuntu and debian

Postby tkeskita » Fri Aug 09, 2019 8:49 am

PrzemoF wrote:
Fri Aug 09, 2019 7:07 am
Great! The binary works OK? Did you verify the libraries used by the binary with "ldd ./ccx_2.15"?
Hi, yes it seems to be working fine. ldd shows all libraries are found, thanks!