compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie

Post by NormandC »

bernd wrote:I made the script for my own. I use vagrant to test FreeCAD in a fresh installed Xenial or Jessie with fresh compiled FreeCAD. For setting up the environment I use this script. I fully understand your opinion.
I'm sorry if I sounded like I was criticizing your script, Bernd, that was not my intention. More like expressing my frustration. As shown above the problem was caused by myself. :roll:

I see that it's pretty easy to delete everything since it's all located in only 2 places, or to run the script again. But I want to try and salvage what I got first.
bernd wrote:I have'nt had the time trying to compile ooct 7.1. :)
Well for anyone interested, I modified your script to download OCCT 7.1.0. I believe triplus has compiled it, and maybe a few others, and it seems to work fine.

Relevant lines to replace:
Lines 86 to 95:

Code: Select all

# get OCCT
cd $base_dir
mkdir occt
cd occt
wget "http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=89aebdea8d6f4d15cfc50e9458cd8e2e25022326;sf=tgz"
mv "index.html?p=occt.git;a=snapshot;h=89aebdea8d6f4d15cfc50e9458cd8e2e25022326;sf=tgz" occt.tgz
gunzip occt.tgz
tar xf occt.tar
rm occt.tar
cd occt-89aebde
Lines 137 to 144:

Code: Select all

# building OCCT
cd $base_dir
cd occt
mkdir build
cd build
cmake ../occt-89aebde  -DCMAKE_INSTALL_PREFIX:PATH=/opt/local/FreeCAD-0.17 -DUSE_VTK:BOOL=OFF
make -j 4
sudo make install
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie

Post by bernd »

OCCT 7.1 wow I did not know it is that easy ... :D I'm gone updates the script these days ...
screen.jpg
screen.jpg (153.39 KiB) Viewed 4405 times
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie

Post by NormandC »

bernd wrote:OCCT 7.1 wow I did not know it is that easy ...
I think minor version number changes (7.0.0 --> 7.1.0) can be compatible to the previous release or not, this time it was compatible without modification. :)
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie

Post by bernd »

updated the scripts to occt 7.1 thanks to Norman. See links in first topic post

@kkremitzki: I still need to have a look at py3 and the other changes
sodelo
Posts: 73
Joined: Tue Jan 24, 2017 9:20 am

Re: compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie

Post by sodelo »

Hi,

For your information, I solved my problem about the QGLFormat error.
I compared the official list of prerequesites to the ones installed by the script and found out libsoqt4-dev was missing.
After correction the compilation and installation have been successful.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie

Post by NormandC »

sodelo wrote:I compared the official list of prerequesites to the ones installed by the script and found out libsoqt4-dev was missing.
That's really odd because libsoqt4-dev is not even necessary anymore. Where is this official list of prerequisites you speak of? It's outdated.
CharlieMAC
Posts: 228
Joined: Fri Apr 25, 2014 1:59 am

Re: compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie

Post by CharlieMAC »

After the download of VTK the script gives an error.

Code: Select all

VTK-7.0.0.tar.gz                                100%[=======================================================================================================>]  29.24M   337KB/s    in 62s     

2017-02-05 22:18:34 (479 KB/s) - 'VTK-7.0.0.tar.gz' saved [30659751/30659751]

--2017-02-05 22:18:36--  http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=89aebdea8d6f4d15cfc50e9458cd8e2e25022326;sf=tgz
Resolving git.dev.opencascade.org (git.dev.opencascade.org)... 188.165.114.136
Connecting to git.dev.opencascade.org (git.dev.opencascade.org)|188.165.114.136|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'index.html?p=occt.git;a=snapshot;h=89aebdea8d6f4d15cfc50e9458cd8e2e25022326;sf=tgz'

index.html?p=occt.git;a=snapshot;h=89aebdea8d6f     [                                                                  <=>                                   ]  48.63M   967KB/s    in 57s     

2017-02-05 22:19:40 (880 KB/s) - 'index.html?p=occt.git;a=snapshot;h=89aebdea8d6f4d15cfc50e9458cd8e2e25022326;sf=tgz' saved [50988830]

Jessie--FreeCAD_all.sh: 93: Jessie--FreeCAD_all.sh: Syntax error: [b]Bad fd number[/b]
Ideas?

Charlie
CharlieMAC
Posts: 228
Joined: Fri Apr 25, 2014 1:59 am

Re: compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie

Post by CharlieMAC »

Apparently, a chmod +x solved the issue. :) :mrgreen:
sodelo
Posts: 73
Joined: Tue Jan 24, 2017 9:20 am

Re: compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie

Post by sodelo »

NormandC wrote:
sodelo wrote:I compared the official list of prerequesites to the ones installed by the script and found out libsoqt4-dev was missing.
That's really odd because libsoqt4-dev is not even necessary anymore. Where is this official list of prerequisites you speak of? It's outdated.
This is what I am refering to:
http://www.freecadweb.org/wiki/index.ph ... pileOnUnix

Code: Select all

Debian and Ubuntu


On Debian-based systems (Debian, Ubuntu, Mint, etc...) it is quite easy to get all needed dependencies installed. Most of the libraries are available via apt-get or synaptic package manager. 
•build-essential
•cmake
•python
•python-matplotlib
•libtool

either: 
•libcoin60-dev (Debian Wheezy, Wheezy-backports, Ubuntu 13.04 and before)

or: 
•libcoin80-dev (Debian unstable(Jesse), testing, Ubuntu 13.10 and forward)
•libsoqt4-dev
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie

Post by Jee-Bee »

sodelo wrote:This is what I am refering to:
http://www.freecadweb.org/wiki/index.ph ... pileOnUnix

Code: Select all

Debian and Ubuntu


On Debian-based systems (Debian, Ubuntu, Mint, etc...) it is quite easy to get all needed dependencies installed. Most of the libraries are available via apt-get or synaptic package manager. 
•build-essential
•cmake
•python
•python-matplotlib
•libtool

either: 
•libcoin60-dev (Debian Wheezy, Wheezy-backports, Ubuntu 13.04 and before)

or: 
•libcoin80-dev (Debian unstable(Jesse), testing, Ubuntu 13.10 and forward)
•libsoqt4-dev
That is the 0.16 release information. the 0.17 have different dependencies, at least part of it.
Post Reply