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."
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!
- tanderson69
- Veteran
- Posts: 1626
- Joined: Thu Feb 18, 2010 1:07 am
Re: Utility to inspect OpenCascade models
- tanderson69
- Veteran
- Posts: 1626
- Joined: Thu Feb 18, 2010 1:07 am
Re: Utility to inspect OpenCascade models
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
Re: Utility to inspect OpenCascade models
Congratulations.
P.S. But now you will likely have to share build instructions.
P.S. But now you will likely have to share build instructions.
Re: Utility to inspect OpenCascade models
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
To run application, use asiExe.sh script in the installation directory.
FOSS CAD model inspection utility and prototyping framework: http://analysissitus.org
- tanderson69
- Veteran
- Posts: 1626
- Joined: Thu Feb 18, 2010 1:07 am
Re: Utility to inspect OpenCascade models
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
Re: Utility to inspect OpenCascade models
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.
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.
- tanderson69
- Veteran
- Posts: 1626
- Joined: Thu Feb 18, 2010 1:07 am
Re: Utility to inspect OpenCascade models
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.
Re: Utility to inspect OpenCascade models
Out of curiosity what are the issues you have with cmake and what's better with meson?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!
Re: Utility to inspect OpenCascade models
It doesn't work with Qt5.9.5tanderson69 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.
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
- tanderson69
- Veteran
- Posts: 1626
- Joined: Thu Feb 18, 2010 1:07 am
Re: Utility to inspect OpenCascade models
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.easyw-fc wrote: ↑Sun Feb 02, 2020 11:19 amIt doesn't work with Qt5.9.5tanderson69 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.
I'm on Linux Mint 19.3 and Qt5.9.5Code: Select all
The Meson build system Version: 0.45.1 ... meson.build:11:0: ERROR: method 'cmake' is invalid