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.
jeno
Posts: 329
Joined: Sun Jun 29, 2014 10:41 am

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

Postby jeno » Fri Jan 13, 2017 6:10 am

Jee-Bee wrote:

Code: Select all

Ubuntu@UserName:~$ sh Downloads/Xenial--FreeCAD_all.sh

Just a shot in the dark. Could you replace sh with bash. Afaik under Ubuntu sh points to dash and not to bash. Maybe that solves the issue
cheers
jeno
Jee-Bee
Posts: 615
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

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

Postby Jee-Bee » Fri Jan 13, 2017 8:45 pm

jeno wrote:Just a shot in the dark. Could you replace sh with bash. Afaik under Ubuntu sh points to dash and not to bash. Maybe that solves the issue
cheers
jeno

Don know what the difference is but building is now at 45% a lot better...
User avatar
bernd
Posts: 3869
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

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

Postby bernd » Sat Jan 21, 2017 7:33 am

@Jee-Bee
did the build finishes?
Jee-Bee
Posts: 615
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

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

Postby Jee-Bee » Sat Jan 21, 2017 7:55 am

bernd wrote:@Jee-Bee
did the build finishes?

Sorry forgot to tell... freecad compiles and is mostly working... :D
jeepsterjc
Posts: 1
Joined: Wed Jan 25, 2017 5:59 pm

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

Postby jeepsterjc » Wed Jan 25, 2017 11:30 pm

Thank you for the script. I'm now able to try out 0.17 on Jessie!
User avatar
bernd
Posts: 3869
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

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

Postby bernd » Thu Jan 26, 2017 9:43 am

jeepsterjc wrote:Thank you for the script. I'm now able to try out 0.17 on Jessie!
cool, I'm glad it worked for you!
User avatar
kkremitzki
Posts: 321
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

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

Postby kkremitzki » Thu Jan 26, 2017 9:58 am

What happens when you do this?

Code: Select all

wget https://gist.githubusercontent.com/berndhahnebach/38d5bfe73134928c0a1ad001a94df05f/raw/b6efa1423a38ba16ba0d7ae0757e4c4d236b5dfc/Xenial--FreeCAD_all.sh
chmod +x ./Xenial--FreeCAD_all.sh
./Xenial--FreeCAD_all.sh
sodelo
Posts: 71
Joined: Tue Jan 24, 2017 9:20 am

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

Postby sodelo » Sun Jan 29, 2017 3:03 pm

Hi,

I tried the script on a Linux Mint 18 system and got the following error message:

[ 13%] Built target FreeCADApp
[ 13%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/Application.cpp.o
/home/dominique/Documents/build_FreeCAD/freecad/FreeCAD/src/Gui/Application.cpp:41:22: fatal error: QGLFormat: Aucun fichier ou dossier de ce type
compilation terminated.
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:1135 : la recette pour la cible « src/Gui/CMakeFiles/FreeCADGui.dir/Application.cpp.o » a échouée
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/Application.cpp.o] Erreur 1
CMakeFiles/Makefile2:4903 : la recette pour la cible « src/Gui/CMakeFiles/FreeCADGui.dir/all » a échouée
make[1]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/all] Erreur 2
Makefile:127 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

Any idea?

Thanks
HoWil
Posts: 377
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

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

Postby HoWil » Sun Jan 29, 2017 8:33 pm

Hi,

Is it possible to pin this topic? I think bernd's scripts are used a lot.
I myself always have to search for it :lol: why I would appreciate pinning it to the beginning of page 1.

BR,
HoWil
User avatar
NormandC
Posts: 12069
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

Postby NormandC » Mon Jan 30, 2017 12:01 am

Hi!

OCC 7.1.0 was published November 25th 2016. Is there a reason why your script uses 7.0.0 rather than the latest release?

OCC 7.1.0 brings fixes to the hidden line removal algo that could prove very useful to TechDraw (and maybe Draft Shape2DView) and fix some long standing bugs in FreeCAD.

I'll try to test on Ubuntu 14.04...