Good to know Qt4 also works for latest snapshot still!
How do i fix the VTK issue?
Debian install of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Debian install of FreeCAD
Code: Select all
sudo apt-get install libvtk6-dev
"fight the good fight"
Re: Debian install of FreeCAD
I tried to build 0.17 this last week-end on Jessie. I never manage to compile it cause of the VTK error even if I tried to build VTK 7.0.0 by myself.
Jessie is good, stable but not up to date so with a recent software like FreeCAD you will have lots of trouble installing on it.
I had to update to Testing, tweak a little the script for Jessie you find here and everything was fine.
I will upload my script later (I do not have it at work).
Jessie is good, stable but not up to date so with a recent software like FreeCAD you will have lots of trouble installing on it.
I had to update to Testing, tweak a little the script for Jessie you find here and everything was fine.
I will upload my script later (I do not have it at work).
Re: Debian install of FreeCAD
Oh la la, that script can never work here of course.
It uses commands like sudo - that's not gonna work here of course. Only 'su' is.
Yeah i can't just upgrade this box to testing easily. So to use FreeCAD 7.0 under linux i need basically ubuntu
on some even unsafer machine than this one... ...looks like the perfect job for my old macbookpro laptop...
...didn't know was so tough to get FreeCAD running in linux - too bad.
Maybe some months from now i will try at another machine!
Thanks for the help so far,
Vincent
It uses commands like sudo - that's not gonna work here of course. Only 'su' is.
Yeah i can't just upgrade this box to testing easily. So to use FreeCAD 7.0 under linux i need basically ubuntu
on some even unsafer machine than this one... ...looks like the perfect job for my old macbookpro laptop...
...didn't know was so tough to get FreeCAD running in linux - too bad.
Maybe some months from now i will try at another machine!
Thanks for the help so far,
Vincent
Re: Debian install of FreeCAD
This script works flawlessy on Jessie.
You just need to apt-get install sudo and edit /etc/sudoers.
It takes 2 minutes.
Many thanks to the author of the script.
You just need to apt-get install sudo and edit /etc/sudoers.
It takes 2 minutes.
Many thanks to the author of the script.
Last edited by jean.thil on Wed Jan 11, 2017 10:42 pm, edited 1 time in total.
Re: Debian install of FreeCAD
Here is my script for Testing (Jan 7, 2017):
Code: Select all
#!/bin/bash
# Released under GPL v2.0
# damien.gaignon@gmail.com
# based on bernd@bimstatik.org script, https://gist.github.com/berndhahnebach/f0121616332bfd8609c949967e6cdd36
# based on script for vagrant box from FreeCAD source, https://github.com/FreeCAD/FreeCAD/blob/master/vagrant/FreeCAD.sh
# tested on Testing
cd ~
cd Documents
sudo rm -rf build_FreeCAD
mkdir build_FreeCAD
base_dir=`pwd`
package_list=" doxygen \
libboost-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-python-dev \
libboost-regex-dev \
libboost-signals-dev \
libboost-system-dev \
libboost-thread-dev \
libcoin80v5 \
libcoin80-dev \
libeigen3-dev \
libpyside-dev \
libqtcore4 \
libshiboken-dev \
libxerces-c-dev \
libxmu-dev \
libxmu-headers \
libxmu6 \
libxmuu-dev \
libxmuu1 \
pyside-tools \
python-dev \
python-pyside \
python-matplotlib \
qt4-dev-tools \
qt4-qmake \
shiboken \
swig \
libtool \
libsoqt4-dev \
libqt4-dev \
libqt4-opengl-dev \
libode-dev \
libzipios++-dev \
libfreetype6 \
libqtwebkit-dev \
liboce*-dev \
oce-draw \
libvtk6-dev "
sudo apt-get update
sudo apt-get install -y dictionaries-common
sudo apt-get install -y $package_list
sudo apt-get install -y python-pivy
sudo apt-get install -y git
sudo apt-get install -y cmake
sudo apt-get install -y g++
sudo apt-get install -y libfreetype6-dev
# sudo apt-get install -y tcl8.5 # to run DRAWEXE of occt, but it does not run either
sudo apt-get install -y tcl8.5-dev tk8.5-dev
sudo apt-get install -y automake # netgen
sudo apt-get install -y libtogl-dev
sudo apt-get install -y libhdf5-dev
sudo apt-get install -y libmed1v5
sudo apt-get install -y libmedc1v5
sudo apt-get install -y libmed-dev
sudo apt-get install -y libmedc-dev
# Manualy remove references to vtkRenderingPythonTkWidgets by deleting or commenting with "#" at the start of the lines
sudo nano /usr/lib/cmake/vtk-6.3/VTKTargets-none.cmake
sudo nano /usr/lib/cmake/vtk-6.3/VTKTargets.cmake
# get FreeCAD
cd $base_dir
git clone https://github.com/FreeCAD/FreeCAD FreeCAD
# building FreeCAD
cd $base_dir
cd build_FreeCAD
cmake ../FreeCAD
# Append missing libraries in salomesmesh CMakeFiles (need to escape slash in paths)
ex -sc 's/$/ \/usr\/lib\/x86_64-linux-gnu\/openmpi\/lib\/libmpi_cxx.so \/usr\/lib\/x86_64-linux-gnu\/openmpi\/lib\/libmpi.so/|w|q' src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/link.txt
make -j 4
sudo make install
# start FreeCAD
# cd ~
# /opt/local/FreeCAD-0.17/bin/FreeCAD