liboce vs. libocct

Discussion about building and installing Elmer
Post Reply
uplatise
Posts: 15
Joined: 11 Oct 2022, 00:10
Antispam: Yes
Contact:

liboce vs. libocct

Post by uplatise »

Hi,

with the latest version of Kicad 7 is based on libocct and so packages are conflicting. Similar issue was between FreeCad and KiCad
https://gitlab.com/kicad/code/kicad/-/issues/8783

Kicad 7 requirements:

Code: Select all

Depends: libc6 (>= 2.29), libcairo2 (>= 1.14.0), libcurl4 (>= 7.16.2), libfontconfig1 (>= 2.12.6), libfreetype6 (>= 2.2.1), libgcc-s1 (>= 3.4), libgl1, libglew2.1 (>= 1.12.0), libglib2.0-0 (>= 2.49.3), libglu1-mesa | libglu1, libgtk-3-0 (>= 3.19.12), libharfbuzz0b (>= 0.9.38), libocct-data-exchange-7.5, libocct-foundation-7.5, libocct-modeling-algorithms-7.5, libocct-modeling-data-7.5, libocct-ocaf-7.5, libodbc1 (>= 2.3.1), libpixman-1-0 (>= 0.15.14), libpython3.8 (>= 3.8.2), libstdc++6 (>= 9), libwxbase3.2-1 (>= 3.2.1+dfsg), libwxgtk-gl3.2-1 (>= 3.2.1+dfsg), libwxgtk3.2-1 (>= 3.2.1+dfsg-2), zlib1g (>= 1:1.1.4), libngspice-kicad | libngspice0, python3-wxgtk4.0 (>= 4.2.0)
Recommends: kicad-libraries, kicad-doc-en, kicad-demos, unixodbc
Suggests: extra-xdg-menus
Conflicts: kicad-locale-bg, kicad-locale-ca, kicad-locale-cs, kicad-locale-de, kicad-locale-el, kicad-locale-es, kicad-locale-fi, kicad-locale-fr, kicad-locale-hu, kicad-locale-id, kicad-locale-it, kicad-locale-ja, kicad-locale-ko, kicad-locale-lt, kicad-locale-nl, kicad-locale-pl, kicad-locale-pt, kicad-locale-ru, kicad-locale-sk, kicad-locale-sl, kicad-locale-sv, kicad-locale-zh, libocct-data-exchange-7.3, libocct-foundation-7.3, libocct-ocaf-7.3, liboce-foundation11, liboce-modeling11, liboce-ocaf11, liboce-visualization11
and elmerfem:

Code: Select all

Depends: libmumps-5.2.1, libhypre, openmpi-bin, libblas3, liblapack3, libparmetis4.0, libmetis5, libgfortran5, libopenblas-base, liboce-modeling11, liboce-foundation11, libqt5widgets5, libqt5script5, libqt5core5a, libqt5gui5, libqt5help5, libqt5opengl5, libvtk7.1p, libvtk7.1p-qt, libqt5svg5, libqwt-qt5-6
In my specific case I am considering installing kicad 7 either in chroot env or similar, but on long term this could be a possible trigger to move on to newer libraries?

Kind regards,
Uros
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: liboce vs. libocct

Post by raback »

Hi Uros,

Are you referring to the packages at launchpad. They could be updated for sure. Not really my cup of tea.

The recipes and the instructions are here (for bionic, focal, groovy, jammy).
https://github.com/ElmerCSC/elmer-packaging-ubuntu

I'm happy to accept pull requests if somebody can improve those. It is somewhat tedious if you don't have the platform yourself.

-Peter
uplatise
Posts: 15
Joined: 11 Oct 2022, 00:10
Antispam: Yes
Contact:

Re: liboce vs. libocct

Post by uplatise »

Hi Peter,

thank you for prompt reply, will check ...

BR Uros
uplatise
Posts: 15
Joined: 11 Oct 2022, 00:10
Antispam: Yes
Contact:

Re: liboce vs. libocct

Post by uplatise »

Hi Peter,

I solved the libocct issue by simply cloning the elmer and compiling the code.

However ElmerGUI core dumps:

Code: Select all

$ ElmerGUI 
realloc(): invalid pointer
Aborted (core dumped)
On Ubuntu 20.04 I have installed the Qt4 libs from the ppa:rock-core/qt4 repository as suggested by https://ubuntuhandbook.org/index.php/20 ... ntu-20-04/

Any idea?

Kind regards,
Uros
Matrixrifle
Posts: 20
Joined: 27 Mar 2023, 13:58
Antispam: Yes

Re: liboce vs. libocct

Post by Matrixrifle »

Hi,
I have a similar question on this. It seems if we want to compile both Elmer and gmsh then there is a problem. Elmer can compile with liboce and gmsh can compile only with libocct. Any suggestion how one can build both without dependency problems...

I got around the problem by specifying -DWITH_OCC:BOOL=FALSE in the elmer compilation but not sure what implication it has on elmer performance.
Post Reply