compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
compile FreeCAD 0.17 with occt 7.1.0 and netgen, script for Xenial and Jessie
Script which compiles FreeCAD with OCCT 7.0.0 and VTK 7.0.0 and Netgen 5.3.1 and libMED. All necessary packages and libraries will be installed or compiled.
Ubuntu Xenial:
https://gist.github.com/berndhahnebach/ ... 01a94df05f
Debian Jessie:
https://gist.github.com/berndhahnebach/ ... 967e6cdd36
EDIT: udated to occt 7.1
Ubuntu Xenial:
https://gist.github.com/berndhahnebach/ ... 01a94df05f
Debian Jessie:
https://gist.github.com/berndhahnebach/ ... 967e6cdd36
EDIT: udated to occt 7.1
Last edited by bernd on Tue Jan 31, 2017 5:45 am, edited 4 times in total.
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
very handy! thx
it could be a nice idea to put this on the wiki... it can save a lot of time
M
it could be a nice idea to put this on the wiki... it can save a lot of time
M
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
According to https://www.freedesktop.org/wiki/Softwa ... user-dirs/ you get the Documents directory with:
Code: Select all
cd ${XDG_DOCUMENTS_DIR}
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
Hi,
tried it on debian jessie and got this output:
tried it on debian jessie and got this output:
Code: Select all
Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/AppPart.cpp.o
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cpp.o: In function `NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh&, TopoDS_Shape const&)':
NETGENPlugin_NETGEN_3D.cpp:(.text+0xdf2): undefined reference to `nglib::Ng_AddPoint(void**, double*)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0xe75): undefined reference to `nglib::Ng_AddSurfaceElement(void**, nglib::Ng_Surface_Element_Type, int*)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0xeec): undefined reference to `nglib::Ng_AddSurfaceElement(void**, nglib::Ng_Surface_Element_Type, int*)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cpp.o: In function `NETGENPlugin_NETGEN_3D::compute(SMESH_Mesh&, SMESH_MesherHelper&, std::vector<SMDS_MeshNode const*, std::allocator<SMDS_MeshNode const*> >&, void**)':
NETGENPlugin_NETGEN_3D.cpp:(.text+0x1390): undefined reference to `nglib::Ng_GetNP(void**)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x173b): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x17e6): undefined reference to `nglib::Ng_GetNP(void**)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x17f8): undefined reference to `nglib::Ng_GetNE(void**)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x190e): undefined reference to `nglib::Ng_GetPoint(void**, int, double*)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x19c1): undefined reference to `nglib::Ng_GetVolumeElement(void**, int, int*)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cpp.o: In function `NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh&, SMESH_MesherHelper*)':
NETGENPlugin_NETGEN_3D.cpp:(.text+0x2307): undefined reference to `nglib::Ng_AddPoint(void**, double*)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x233f): undefined reference to `nglib::Ng_AddSurfaceElement(void**, nglib::Ng_Surface_Element_Type, int*)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_Mesher::Compute()':
NETGENPlugin_Mesher.cpp:(.text+0xbb40): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xc346): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xc3be): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xc4cd): undefined reference to `nglib::Ng_DeleteMesh(void**)'
NETGENPlugin_Mesher.cpp:(.text+0xc71f): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xcbbb): undefined reference to `netgen::Mesh::SetLocalH(netgen::Point3d const&, netgen::Point3d const&, double)'
NETGENPlugin_Mesher.cpp:(.text+0xd1a3): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xdaa3): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xdc62): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_Mesher::Evaluate(std::map<SMESH_subMesh*, std::vector<int, std::allocator<int> >, std::less<SMESH_subMesh*>, std::allocator<std::pair<SMESH_subMesh* const, std::vector<int, std::allocator<int> > > > >&)':
NETGENPlugin_Mesher.cpp:(.text+0xf80d): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_NetgenLibWrapper::NETGENPlugin_NetgenLibWrapper()':
NETGENPlugin_Mesher.cpp:(.text+0x1482e): undefined reference to `nglib::Ng_Init()'
NETGENPlugin_Mesher.cpp:(.text+0x1494b): undefined reference to `nglib::Ng_NewMesh()'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_NetgenLibWrapper::~NETGENPlugin_NetgenLibWrapper()':
NETGENPlugin_Mesher.cpp:(.text+0x149be): undefined reference to `nglib::Ng_DeleteMesh(void**)'
NETGENPlugin_Mesher.cpp:(.text+0x149c3): undefined reference to `nglib::Ng_Exit()'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_NetgenLibWrapper::setMesh(void**)':
NETGENPlugin_Mesher.cpp:(.text+0x14a3b): undefined reference to `nglib::Ng_DeleteMesh(void**)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cpp.o: In function `NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh&, TopoDS_Shape const&)':
NETGENPlugin_NETGEN_2D_ONLY.cpp:(.text+0x1a01): undefined reference to `netgen::Mesh::SetLocalH(netgen::Point3d const&, netgen::Point3d const&, double)'
NETGENPlugin_NETGEN_2D_ONLY.cpp:(.text+0x1ba5): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
collect2: error: ld returned 1 exit status
src/3rdParty/salomesmesh/CMakeFiles/NETGENPlugin.dir/build.make:401: recipe for target 'lib/libNETGENPlugin.so' failed
make[2]: *** [lib/libNETGENPlugin.so] Error 1
CMakeFiles/Makefile2:470: recipe for target 'src/3rdParty/salomesmesh/CMakeFiles/NETGENPlugin.dir/all' failed
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/NETGENPlugin.dir/all] Error 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
Linking CXX shared library ../../../lib/libNETGENPlugin.so
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cpp.o: In function `NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh&, TopoDS_Shape const&)':
NETGENPlugin_NETGEN_3D.cpp:(.text+0xdf2): undefined reference to `nglib::Ng_AddPoint(void**, double*)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0xe75): undefined reference to `nglib::Ng_AddSurfaceElement(void**, nglib::Ng_Surface_Element_Type, int*)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0xeec): undefined reference to `nglib::Ng_AddSurfaceElement(void**, nglib::Ng_Surface_Element_Type, int*)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cpp.o: In function `NETGENPlugin_NETGEN_3D::compute(SMESH_Mesh&, SMESH_MesherHelper&, std::vector<SMDS_MeshNode const*, std::allocator<SMDS_MeshNode const*> >&, void**)':
NETGENPlugin_NETGEN_3D.cpp:(.text+0x1390): undefined reference to `nglib::Ng_GetNP(void**)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x173b): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x17e6): undefined reference to `nglib::Ng_GetNP(void**)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x17f8): undefined reference to `nglib::Ng_GetNE(void**)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x190e): undefined reference to `nglib::Ng_GetPoint(void**, int, double*)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x19c1): undefined reference to `nglib::Ng_GetVolumeElement(void**, int, int*)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cpp.o: In function `NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh&, SMESH_MesherHelper*)':
NETGENPlugin_NETGEN_3D.cpp:(.text+0x2307): undefined reference to `nglib::Ng_AddPoint(void**, double*)'
NETGENPlugin_NETGEN_3D.cpp:(.text+0x233f): undefined reference to `nglib::Ng_AddSurfaceElement(void**, nglib::Ng_Surface_Element_Type, int*)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_Mesher::Compute()':
NETGENPlugin_Mesher.cpp:(.text+0xbb40): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xc346): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xc3be): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xc4cd): undefined reference to `nglib::Ng_DeleteMesh(void**)'
NETGENPlugin_Mesher.cpp:(.text+0xc71f): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xcbbb): undefined reference to `netgen::Mesh::SetLocalH(netgen::Point3d const&, netgen::Point3d const&, double)'
NETGENPlugin_Mesher.cpp:(.text+0xd1a3): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xdaa3): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
NETGENPlugin_Mesher.cpp:(.text+0xdc62): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_Mesher::Evaluate(std::map<SMESH_subMesh*, std::vector<int, std::allocator<int> >, std::less<SMESH_subMesh*>, std::allocator<std::pair<SMESH_subMesh* const, std::vector<int, std::allocator<int> > > > >&)':
NETGENPlugin_Mesher.cpp:(.text+0xf80d): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_NetgenLibWrapper::NETGENPlugin_NetgenLibWrapper()':
NETGENPlugin_Mesher.cpp:(.text+0x1482e): undefined reference to `nglib::Ng_Init()'
NETGENPlugin_Mesher.cpp:(.text+0x1494b): undefined reference to `nglib::Ng_NewMesh()'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_NetgenLibWrapper::~NETGENPlugin_NetgenLibWrapper()':
NETGENPlugin_Mesher.cpp:(.text+0x149be): undefined reference to `nglib::Ng_DeleteMesh(void**)'
NETGENPlugin_Mesher.cpp:(.text+0x149c3): undefined reference to `nglib::Ng_Exit()'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_Mesher.cpp.o: In function `NETGENPlugin_NetgenLibWrapper::setMesh(void**)':
NETGENPlugin_Mesher.cpp:(.text+0x14a3b): undefined reference to `nglib::Ng_DeleteMesh(void**)'
CMakeFiles/NETGENPlugin.dir/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cpp.o: In function `NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh&, TopoDS_Shape const&)':
NETGENPlugin_NETGEN_2D_ONLY.cpp:(.text+0x1a01): undefined reference to `netgen::Mesh::SetLocalH(netgen::Point3d const&, netgen::Point3d const&, double)'
NETGENPlugin_NETGEN_2D_ONLY.cpp:(.text+0x1ba5): undefined reference to `netgen::OCCGenerateMesh(netgen::OCCGeometry&, netgen::Mesh*&, netgen::MeshingParameters&, int, int)'
collect2: error: ld returned 1 exit status
src/3rdParty/salomesmesh/CMakeFiles/NETGENPlugin.dir/build.make:401: recipe for target 'lib/libNETGENPlugin.so' failed
make[2]: *** [lib/libNETGENPlugin.so] Error 1
CMakeFiles/Makefile2:470: recipe for target 'src/3rdParty/salomesmesh/CMakeFiles/NETGENPlugin.dir/all' failed
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/NETGENPlugin.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
Cool I did not know about this. But much more simpler is cd ~ Just played a bit and could not see any difference betweenwmayer wrote:According to https://www.freedesktop.org/wiki/Softwa ... user-dirs/ you get the Documents directory with:Code: Select all
cd ${XDG_DOCUMENTS_DIR}
Code: Select all
$ cd ${XDG_DOCUMENTS_DIR}
$ pwd
/home/hugo
$
$ cd ~
$ pwd
/home/hugo
$
https://gist.github.com/berndhahnebach/ ... all-sh-L10 and
https://gist.github.com/berndhahnebach/ ... all-sh-L10
I will edit the first post and delete the lines in the regard of changing user since it is not needed anymore.
bernd
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
That's strange. It should actually cd into the directory "Documents" and not the home directory. So, obviously the xdg stuff doesn't work on your system.$ cd ${XDG_DOCUMENTS_DIR}
$ pwd
/home/hugo
If you wanto cd into the home directory you can do:
Code: Select all
cd $HOME
Code: Select all
cd ~
Code: Select all
cd
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
Yeah it is what I assumed too but it did not do the trick. I don't mind.wmayer wrote:That's strange. It should actually cd into the directory "Documents" and not the home directory.$ cd ${XDG_DOCUMENTS_DIR}
$ pwd
/home/hugo
15 years linux. I have been used cd command thousands of times but I never tried this !wmayer wrote:Code: Select all
cd
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
I want to use your script on ubuntu VM. but i got an error
What is see when search for the error if have something to do with >& but if 97 is the line number there are no such symbols...
Code: Select all
Xenial--FreeCAD_all.sh: 97: Xenial--FreeCAD_all.sh: Syntax error: bad fd number
Code: Select all
96 grep -v vtkRenderingFreeTypeOpenGL src/TKIVtk/EXTERNLIB >& /tmp/EXTERNLIB
97 \cp /tmp/EXTERNLIB src/TKIVtk/EXTERNLIB
98 grep -v vtkRenderingFreeTypeOpenGL src/TKIVtkDraw/EXTERNLIB >& /tmp/EXTERNLIB
99 \cp /tmp/EXTERNLIB src/TKIVtkDraw/EXTERNLIB
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
Code: Select all
Ubuntu@UserName:~$ sh Downloads/Xenial--FreeCAD_all.sh
[sudo] password for Ubuntu:
Hit:1 http://nl.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://nl.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://nl.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:5 http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu xenial InRelease
Fetched 102 kB in 5s (19,7 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
dictionaries-common is already the newest version (1.26.3).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
doxygen is already the newest version (1.8.11-1).
libqtcore4 is already the newest version (4:4.8.7+dfsg-5ubuntu2).
libxmu-dev is already the newest version (2:1.1.2-2).
libxmu-headers is already the newest version (2:1.1.2-2).
libxmu6 is already the newest version (2:1.1.2-2).
libxmuu-dev is already the newest version (2:1.1.2-2).
libxmuu1 is already the newest version (2:1.1.2-2).
python-dev is already the newest version (2.7.11-1).
qt4-dev-tools is already the newest version (4:4.8.7+dfsg-5ubuntu2).
qt4-qmake is already the newest version (4:4.8.7+dfsg-5ubuntu2).
calculix-ccx is already the newest version (2.9-1).
libcoin80-dev is already the newest version (3.1.4~abc9f50+dfsg1-1).
libcoin80v5 is already the newest version (3.1.4~abc9f50+dfsg1-1).
libeigen3-dev is already the newest version (3.3~beta1-2).
libpyside-dev is already the newest version (1.2.2-2build2).
libqtwebkit-dev is already the newest version (2.3.2-0ubuntu11).
libshiboken-dev is already the newest version (1.2.2-2build2).
libxerces-c-dev is already the newest version (3.1.3+debian-1).
pyside-tools is already the newest version (0.2.15-1).
python-matplotlib is already the newest version (1.5.1-1ubuntu1).
python-pyside is already the newest version (1.2.2-2build2).
shiboken is already the newest version (1.2.2-2build2).
swig is already the newest version (3.0.8-0ubuntu3).
libboost-program-options1.58-dev is already the newest version (1.58.0+dfsg-5ubuntu3.1).
libboost1.58-dev is already the newest version (1.58.0+dfsg-5ubuntu3.1).
libboost-filesystem1.58-dev is already the newest version (1.58.0+dfsg-5ubuntu3.1).
libboost-python1.58-dev is already the newest version (1.58.0+dfsg-5ubuntu3.1).
libboost-regex1.58-dev is already the newest version (1.58.0+dfsg-5ubuntu3.1).
libboost-signals1.58-dev is already the newest version (1.58.0+dfsg-5ubuntu3.1).
libboost-system1.58-dev is already the newest version (1.58.0+dfsg-5ubuntu3.1).
libboost-thread1.58-dev is already the newest version (1.58.0+dfsg-5ubuntu3.1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pivy is already the newest version (0.5.0~v609hg-3.1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version (3.5.1-1ubuntu3).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:5.3.1-1ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libfreetype6-dev is already the newest version (2.6.1-0.1ubuntu2).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
tcl8.5-dev is already the newest version (8.5.19-1).
tk8.5-dev is already the newest version (8.5.19-1ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
automake is already the newest version (1:1.15-4ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libtogl-dev is already the newest version (1.7-12ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libhdf5-dev is already the newest version (1.8.16+docs-4ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Cloning into 'libMED'...
remote: Counting objects: 7758, done.
remote: Compressing objects: 100% (2440/2440), done.
remote: Total 7758 (delta 5290), reused 7758 (delta 5290), pack-reused 0
Receiving objects: 100% (7758/7758), 41.83 MiB | 3.52 MiB/s, done.
Resolving deltas: 100% (5290/5290), done.
Checking connectivity... done.
Checking out files: 100% (8422/8422), done.
--2017-01-11 21:59:45-- http://www.vtk.org/files/release/7.0/VTK-7.0.0.tar.gz
Resolving www.vtk.org (www.vtk.org)... 66.194.253.19
Connecting to www.vtk.org (www.vtk.org)|66.194.253.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30659751 (29M) [application/x-gzip]
Saving to: ‘VTK-7.0.0.tar.gz’
VTK-7.0.0.tar.gz 100%[===========================================================>] 29,24M 435KB/s in 3m 3s
2017-01-11 22:04:41 (164 KB/s) - ‘VTK-7.0.0.tar.gz’ saved [30659751/30659751]
--2017-01-11 22:04:50-- http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=b00770133187b83761e651df50051b2fa3433858;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=b00770133187b83761e651df50051b2fa3433858;sf=tgz’
index.html?p=occt.git;a=snapshot; [ <=> ] 48,45M 5,25MB/s in 10s
2017-01-11 22:05:06 (4,70 MB/s) - ‘index.html?p=occt.git;a=snapshot;h=b00770133187b83761e651df50051b2fa3433858;sf=tgz’ saved [50804065]
Downloads/Xenial--FreeCAD_all.sh: 97: Downloads/Xenial--FreeCAD_all.sh: Syntax error: Bad fd number
Ubuntu@UserName:~$
Re: compile FreeCAD 0.17 with occt 7.0.0 and netgen, script for Xenial and Jessie
Mhh what you could try is use the raw version: https://gist.githubusercontent.com/bern ... CAD_all.sh and copy part for part into a shell until you reach the line with the culprit. You may get a better error than.