Utility to inspect OpenCascade models
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: Utility to inspect OpenCascade models
Hi @tanderson69
I will give it another try at the end of the following week. Will try on Ubuntu 20.04 and by installing as much dependencies from the default repositories as possible.
As for Meson vs. CMake. I have seen some projects migrating to Meson, but the main problem, for Meson, likely is CMake has in general been accepted as a good solution and this puts Meson in a difficult position.
I will give it another try at the end of the following week. Will try on Ubuntu 20.04 and by installing as much dependencies from the default repositories as possible.
As for Meson vs. CMake. I have seen some projects migrating to Meson, but the main problem, for Meson, likely is CMake has in general been accepted as a good solution and this puts Meson in a difficult position.
- tanderson69
- Veteran
- Posts: 1626
- Joined: Thu Feb 18, 2010 1:07 am
Re: Utility to inspect OpenCascade models
This is pretty subjective, so I will list what I can come up with right now but you should just try it on something. I have used meson on linux and mac, but can't speak to the windows experience. This is my priority:
meson syntax is better, it is python like. I find it easier to understand, and I have little experience with python.
meson doc is better. It is more like a tutorial instead of a reference manual.
I can debug meson a lot faster. You can alter meson.py with debug statements and find out what is really happening. When cmake fails, I struggle.
default eco-system is smooth. I like the separate responsibility of pkg-config. ninja is faster than make and defaults to using ccache.
combining git submodules with meson subprojects is a nice/clean way to add 'non-standard' dependencies.
It is not all roses. meson is not as mature as cmake and has some rough edges. I am concerned what meson on windows will be like.
If this subject is to continue, maybe we should fork it as not to hi-jack this thread?
Re: Utility to inspect OpenCascade models
Thanks! I recently read in a German tech forum too that meson has some advantages over cmake (basically the same points you mentioned) and since I have no experience with it I just wanted to know what they are.tanderson69 wrote: ↑Sun Feb 02, 2020 3:02 pm This is pretty subjective, so I will list what I can come up with right now but you should just try it on something. I have used meson on linux and mac, but can't speak to the windows experience. This is my priority:
meson syntax is better, it is python like. I find it easier to understand, and I have little experience with python.
meson doc is better. It is more like a tutorial instead of a reference manual.
I can debug meson a lot faster. You can alter meson.py with debug statements and find out what is really happening. When cmake fails, I struggle.
default eco-system is smooth. I like the separate responsibility of pkg-config. ninja is faster than make and defaults to using ccache.
combining git submodules with meson subprojects is a nice/clean way to add 'non-standard' dependencies.
It is not all roses. meson is not as mature as cmake and has some rough edges. I am concerned what meson on windows will be like.
If this subject is to continue, maybe we should fork it as not to hi-jack this thread?
Re: Utility to inspect OpenCascade models
thx, I'm going further now... I'll keep updatedtanderson69 wrote: ↑Sun Feb 02, 2020 2:14 pm This has nothing to do with Qt. It has to do with meson and occt. You need Meson >= 0.51. Meson should have failed or at least warned you before that. The good news is, meson is a python script so you can just clone the github repo and run it from there.
Re: Utility to inspect OpenCascade models
Right, with Ubuntu 20.04 and when working only with default set of packages from the repositories, i get to the step of detecting OCCT, where it fails to find the OCCT as a run-time dependency. Now i guess if people will use this procedure in the future, such things should get sorted out? In addition is there a problem with using lower version of OCCT (7.4) and VTK (8.2)? As if this are minimum requirements, people likely won't try for now anyway.tanderson69 wrote: ↑Sat Feb 01, 2020 11:55 pmdebian bullseye:
occt7.4 from source to default location /usr/local
vtk8.2 from source to default location /usr/local
all other dependencies installed with 'apt install'
Code: Select all
git clone --recursive https://gitlab.com/blobfish/AnalysisSitus.git cd AnalysisSitus mkdir -p build/release cd build/release meson --buildtype=release ../.. ninja sudo ninja install //run program export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu asiExe //uninstall sudo ninja uninstall
Re: Utility to inspect OpenCascade models
I'm on Mint 19.3 which is based on Ubuntu 18.04 LTS...triplus wrote: ↑Mon Feb 10, 2020 8:41 am Right, with Ubuntu 20.04 and when working only with default set of packages from the repositories, i get to the step of detecting OCCT, where it fails to find the OCCT as a run-time dependency. Now i guess if people will use this procedure in the future, such things should get sorted out? In addition is there a problem with using lower version of OCCT (7.4) and VTK (8.2)? As if this are minimum requirements, people likely won't try for now anyway.
ATM I'm stacked on detecting OCCT:
It would be great to have some more tips...meson.build:11:0: ERROR: Dependency "OpenCASCADE" not found, tried cmake
Thanks in advance
Re: Utility to inspect OpenCascade models
Hi @easyw-fc
If i look at:
https://gitlab.com/ssv/AnalysisSitus
I see that about a week back some Linux CMake additions were added. That is a step in the right direction, but likely we are just not there yet.
If i look at:
https://gitlab.com/ssv/AnalysisSitus
I see that about a week back some Linux CMake additions were added. That is a step in the right direction, but likely we are just not there yet.
Re: Utility to inspect OpenCascade models
Guys, if you can kindly propose any cmake improvements to ease the process, I will follow. Personally, I just built OpenCascade from scratch, which is probably not something most of people want to do. Also, the current finder of OpenCascade simply looks for libs/includes, and it is not very conventional either. I did not look at Meson build system, all my experiments were limited with cmake so far.
FOSS CAD model inspection utility and prototyping framework: http://analysissitus.org
Re: Utility to inspect OpenCascade models
On Debian/Ubuntu likely adding this should do:
Code: Select all
/usr/lib/x86_64-linux-gnu
- tanderson69
- Veteran
- Posts: 1626
- Joined: Thu Feb 18, 2010 1:07 am
Re: Utility to inspect OpenCascade models
What version of occt? Where is it installed? What are your results of these 3 commands?
Code: Select all
cmake --find-package -DNAME=OpenCASCADE -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=EXIST
cmake --find-package -DNAME=OpenCASCADE -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=COMPILE
cmake --find-package -DNAME=OpenCASCADE -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=LINK
I didn't mean to cause you any pain/frustration. We can split the meson experiment conversion to another thread, if you want.Quaoar wrote: ↑Tue Feb 11, 2020 10:33 am Guys, if you can kindly propose any cmake improvements to ease the process, I will follow. Personally, I just built OpenCascade from scratch, which is probably not something most of people want to do. Also, the current finder of OpenCascade simply looks for libs/includes, and it is not very conventional either. I did not look at Meson build system, all my experiments were limited with cmake so far.