Utility to inspect OpenCascade models

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!
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Utility to inspect OpenCascade models

Post by tanderson69 »

Quaoar wrote: Sat Jan 25, 2020 8:04 am ... As for Tcl/Tk, Tk is not required but Tcl is needed because there's an embedded Tcl console which makes much sense for rapid prototyping.
My question/comment was more: "I was surprised you are manually building and installing tcl instead of just installing from the repo with 'apt', because I have used every version of opencascade for the last 10 years and have always used the repo for tcl/tk installation."
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Utility to inspect OpenCascade models

Post by tanderson69 »

Finally some results on debian bullseye. I compiled and installed occt and vtk. Everything else was from 'apt'. I had to swear a lot at vtk. No version seem to 'just work' with 'make & make install'. I won't tell how much time I put into this ;)
asi.png
asi.png (95.29 KiB) Viewed 3645 times
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Utility to inspect OpenCascade models

Post by triplus »

Congratulations.

P.S. But now you will likely have to share build instructions. ;)
User avatar
Quaoar
Posts: 106
Joined: Thu Jul 27, 2017 11:56 am
Location: Nizhny Novgorod
Contact:

Re: Utility to inspect OpenCascade models

Post by Quaoar »

easyw-fc wrote: Wed Jan 22, 2020 10:31 pm ...
would you please help me to go further?
Maurice
Maurice, I have tried to configure in a command line as you did. Given that all 3-parties are compiled, I ended up with the following scenario:

Code: Select all

git clone https://gitlab.com/ssv/AnalysisSitus.git asitus-src
cd asitus-src
mkdir build
cd ./build
cmake -D3RDPARTY_DIR=/usr/lib/ ../
cmake -D3RDPARTY_active_data_DIR=/home/ssv/work/active-data-install/ ../
cmake -D3RDPARTY_active_data_LIBRARY_DIR=/home/ssv/work/active-data-install/lib/ ../
cmake -D3RDPARTY_EIGEN_DIR=/home/ssv/work/eigen-3.3.7/ ../
cmake -D3RDPARTY_vtk_DIR=/home/ssv/work/vtk-install/ ../
cmake -D3RDPARTY_vtk_LIBRARY_DIR=/home/ssv/work/vtk-install/lib/ ../
cmake -D3RDPARTY_OCCT_DIR=/home/ssv/work/occt-install/ ../
cmake -D3RDPARTY_OCCT_INCLUDE_DIR=/home/ssv/work/occt-install/include/opencascade/ ../
cmake -D3RDPARTY_OCCT_LIBRARY_DIR=/home/ssv/work/occt-install/lib/ ../
cmake -D3RDPARTY_tcl_DIR=/home/ssv/work/tcl-8.6-install/ ../
cmake -D3RDPARTY_tcl_LIBRARY_DIR=/home/ssv/work/tcl-8.6-install/lib/ ../
cmake -DCMAKE_BUILD_TYPE=Release ../
cmake -DINSTALL_DIR=/home/ssv/work/asitus-install/ ../
make
make install
I have VTK, Eigen, Tcl, OpenCascade and ActiveData all installed in my custom directory /home/ssv/work. You will also need to compile Active Data which is the OCAF-based framework for Data Model design. I will try making it compile automatically in the future (as a git submodule).

To run application, use asiExe.sh script in the installation directory.
FOSS CAD model inspection utility and prototyping framework: http://analysissitus.org
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Utility to inspect OpenCascade models

Post by tanderson69 »

triplus wrote: Wed Jan 29, 2020 1:29 am Congratulations.

P.S. But now you will likely have to share build instructions. ;)
debian 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
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Utility to inspect OpenCascade models

Post by triplus »

Thanks, will try it out.

P.S. For the very first quick attempt, meson was to old, fixed with PIP install, Qt was to old ... i guess for starters i need a newer Linux distro. ;)
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Utility to inspect OpenCascade models

Post by tanderson69 »

triplus wrote: Sun Feb 02, 2020 1:14 am Thanks, will try it out.

P.S. For the very first quick attempt, meson was to old, fixed with PIP install, Qt was to old ... i guess for starters i need a newer Linux distro. ;)
The meson version is important, but the others are probably not. edit the meson.build file and change to match your installed version and give it a shot.
wmayer
Founder
Posts: 20309
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Utility to inspect OpenCascade models

Post by wmayer »

tanderson69 wrote: Wed Jan 22, 2020 4:04 pm IMHO: Have you tried meson build? In any situation that I can, I have replaced cmake with meson and been a lot happier!
Out of curiosity what are the issues you have with cmake and what's better with meson?
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Utility to inspect OpenCascade models

Post by easyw-fc »

tanderson69 wrote: Sun Feb 02, 2020 1:40 am The meson version is important, but the others are probably not. edit the meson.build file and change to match your installed version and give it a shot.
It doesn't work with Qt5.9.5

Code: Select all

The Meson build system
Version: 0.45.1
Source dir: /home/mau/Downloads/AnalysisSitus
Build dir: /home/mau/Downloads/AnalysisSitus/build/release
Build type: native build
Project name: AnalysisSitus
Native C++ compiler: c++ (gcc 7.4.0 "c++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
WARNING: rcc dependencies will not work reliably until this upstream issue is fixed: https://bugreports.qt.io/browse/QTBUG-45460
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency Qt5Core found: YES 5.9.5
Native dependency Qt5Widgets found: YES 5.9.5
Qt5 native `pkg-config` dependency (modules: Core, Widgets) found: YES

meson.build:11:0: ERROR: method 'cmake' is invalid
I'm on Linux Mint 19.3 and Qt5.9.5
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Utility to inspect OpenCascade models

Post by tanderson69 »

easyw-fc wrote: Sun Feb 02, 2020 11:19 am
tanderson69 wrote: Sun Feb 02, 2020 1:40 am The meson version is important, but the others are probably not. edit the meson.build file and change to match your installed version and give it a shot.
It doesn't work with Qt5.9.5

Code: Select all

The Meson build system
Version: 0.45.1
...
meson.build:11:0: ERROR: method 'cmake' is invalid
I'm on Linux Mint 19.3 and Qt5.9.5
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.
Post Reply