Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Nov 2017, 11:51
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
FreeCAD 0.17 on Fatdog64 710 final (native build)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
paulski

Joined: 06 Oct 2006
Posts: 133
Location: Cologne, Germany &/or Perth, Australia

PostPosted: Mon 14 Aug 2017, 06:21    Post subject:  FreeCAD 0.17 on Fatdog64 710 final (native build)
Subject description: Native Build from source of FreeCAD - first attempt
 

FreeCAD is a open source 3D (parametric style) modelling program.
Homepage https://www.freecadweb.org/

I really wanted a working install of FreeCAD 0.17 on my Fatdog 710 final system.
To avoid segfaults - taking a .deb or other installer from elsewhere was not an option. Native compile or nothing!
(note: Forum Member Revolverve has done some nice work for TahrPupCE - using ubuntu packages- he has it working packages too...
See:
http://murga-linux.com/puppy/viewtopic.php?t=95481
i never tried them in Fatdog)

It has so many dependencies - and they all need to harmonize so the only option was to build from source
including many of the dependencies.
What is more most of the dependencies use cmake and won't respond to the
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=/usr/lib64
type configure - nearly all ignore or reject the DLIBDIR option and put libraries and package config path info wherever they want (like (usr/lib usr/local/lib etc.)

I hope my notes here will help others to make this or other similar systems work on not only Fatdog but other Puppy derivatives - hey even slackware (that also uses /usr/lib64 directory!)

I also appreciate any "there is a better way" notes. I'm sure this build will be revisited.
I don't claim to know much at all!

What you need to install.. follow the links in this post.
There is more information than needed in between as notes for anyone wanting to follow up on this and do a better job.
None of the packages have the fat trimmed. Feel free to work on them. I don't have the time.

If you want to host packages - be my guest - my options are limited (split files etc. yuk!).

Foundation
Start with a new savefile - big - 2GB or more. (A savefile is far safer than braking your main system).

SFS files from Repo
http://distro.ibiblio.org/fatdog/sfs/710/

http://distro.ibiblio.org/fatdog/sfs/710/fd64-devx_710.sfs

Own build SFS
qt-everywhere-open-dev-build-4.8.4-x86_64.sfs 186MB
(Taken from a direct download and own build from QT)
Sorry - host can't handle too many big files -- I had to split them.
...
part1
https://app.box.com/s/ynggupoyfb2w56yv4hi8rmj4n8722l05
part2
https://app.box.com/s/a49xvxehd3d3rga40n89ukues8alve90
part3
https://app.box.com/s/sp01xrd1ycor17acmvf4lqt1ugaklzpi
part4
https://app.box.com/s/q8lpbyfby2tjnnf89horbj7q16i0g412
part5
https://app.box.com/s/awsy95j60yfo1xarlofm36ddywyzbcz5

combine with:
Code:

cat qt-part1 >>qt-everywhere-open-dev-build-4.8.4-x86_64.sfs
cat qt-part2 >>qt-everywhere-open-dev-build-4.8.4-x86_64.sfs
cat qt-part3 >>qt-everywhere-open-dev-build-4.8.4-x86_64.sfs
cat qt-part4 >>qt-everywhere-open-dev-build-4.8.4-x86_64.sfs
cat qt-part5 >>qt-everywhere-open-dev-build-4.8.4-x86_64.sfs
md5sum qt-everywhere-open-dev-build-4.8.4-x86_64.sfs


Check the MD5sum at the end it should be

MD5Sum de4d6b476890786407489b1c369a5289

Packages from Fatdog repo:
http://distro.ibiblio.org/fatdog/packages/710/

Swig
http://distro.ibiblio.org/fatdog/packages/710/swig-3.0.8-x86_64-1.txz

libboost & common from repo
http://distro.ibiblio.org/fatdog/packages/710/libboost-1.60.0-x86_64-1.txz
http://distro.ibiblio.org/fatdog/packages/710/libboost-common-1.60.0-x86_64-1.txz

Eigen3 3.2.1
http://distro.ibiblio.org/fatdog/packages/710/libeigen3-3.2.1-noarch-1.txz

Lib icu-52
http://distro.ibiblio.org/fatdog/packages/710/libicu-52.1-x86_64-1.txz

Python Dependencies from Repo (note using as a base the Python in the Devx SFS)
Sip
http://distro.ibiblio.org/fatdog/packages/710/python-sip-4.17-x86_64-1.txz


Setuptools no arch
http://distro.ibiblio.org/fatdog/packages/710/python-setuptools-12.0.4-noarch-1.txz

Pip
http://distro.ibiblio.org/fatdog/packages/710/python-pip-7.0.3-noarch-1.txz

Pyqt
http://distro.ibiblio.org/fatdog/packages/710/python-pyqt4-4.11.4-x86_64-1.txz


Numpy
http://distro.ibiblio.org/fatdog/packages/710/python-numpy-1.8.1-x86_64-1.txz

Cython
http://distro.ibiblio.org/fatdog/packages/710/python-cython-0.20.1-x86_64-1.txz

Mathplotlib
http://distro.ibiblio.org/fatdog/packages/710/python-matplotlib-2.0.0-x86_64-1.txz

Now we are on our own. From here on its what I compiled.
xerces c from source 3.1.1
OK - Package
xerces-c-3.1.1-x86_64-x86_64-PET.txz
https://app.box.com/s/60ut5kvjdm929jw6bxkrvoew0ap4vnyq

shiboken1.2.12-x86_64.txz
https://app.box.com/s/5r563pd1jm8qovdghhtk2i9cpdlyseq5

coin 3.1.2 from source OK
coin-3.1.2-x86_64.txz
https://app.box.com/s/jipenjinb1liy00viyy5yuqo2oc07ke0

vtk-7.1 from source
vtk-7.1.1-x86_64.txz
https://app.box.com/s/mgmzn3aeygsw4avzt13cebfey75qnkq2

libspnav from prev build
libspnav-0.2.3-x86_64-x86_64-PET.txz
https://app.box.com/s/ice1cu7h4hp6zk95pmx9xzyedflr4ozd

hd5 - note needed version 1.8.x - not the newer ones
hdf5-1.8.11-x86_64.txz
https://app.box.com/s/gx5bxgkp49aypdsdnduws1o079gsusha

Compile note: edited cmakelists.txt (not in build dir) put
HDF5_INSTALL_LIB_DIR lib64 used cmake to build
seemed to help

Med - many versions tried - first one to work was:
med 3.0.3
med-3.0.3-x86_64.txz
https://app.box.com/s/gp19sd541je3noho3g66r3xifi72g645

Open Cascade Community Edition 0.18.2
Pulled from git:
Code:

git clone git://github.com/tpaviot/oce.git


As things like this change often I packaged the source for archiving
(link not yet posted - it is HUGE)

Compile note - tried editing cmakelists.txt line 98
set( OCE_LIBRARY_PREFIX "lib" )
didn't change a thing - still went to usr/local/lib....oh stuff it... lets just move on

Package:
oce-0.18.2-x86_64.txz
https://app.box.com/s/bjn6y0l7s5ix4j6lhf0ed6zgvnkgooo5

Pyside
Note: so much of the info you find on the net for installing pyside just won't cut it for this build.
It is mostly ok for the "just let me run program x" setup in the python environment, but is garbage for making a clean build.

Tried:
pip pyside install (seemed to work at first but failed on cmake for FreeCAD compile
it did not -no cmake files for needed.)
Retry: Downloaded pyside 1.2.4 from the website unpacked in terminal
python setup.py install
took forever but was not enough - no cmake files - its a mess - also tried
python setup.py develop
python setup.py sdist
---also didn't work - cmake files not where you need them and practically unmovable

This is the way that worked... got the following sources..
https://wiki.qt.io/Building_PySide_on_Linux
https://wiki.qt.io/PySide_Downloads
Note: this is the better way - these sources and normal cmake install method
forget pip, setup.py etc.

Packages
pyside-qt4.8+1.2.2-x86_64.txz
https://app.box.com/s/du80f9veqk5i6slq7ao6zkuw7s01da01

pyside-tools0.2.15-x86_64.txz
https://app.box.com/s/3mfwziuod7sjmqyzsnuice7xp2xq8d4b

Shiboken
Package:
shiboken1.2.12-x86_64.txz
https://app.box.com/s/5r563pd1jm8qovdghhtk2i9cpdlyseq5
Compile Notes:
Didn't like -DLIBDIR option on cmake
tried
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib64
did nothing - just let it do its thing - we will put up with files in the wrong places

Freecad itself
Pulled from git
Code:
git clone git://github.com/FreeCAD/FreeCAD.git

made the folder build
cd into the folder
Code:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=/usr/lib64



The end product works.
The libraries are all over the place. (I guess I need to know more on how to force cmake to send things to the right places]
They have to stay where they are though. The FreeCAD binaries use hard coded locations for some dependencies.

There were some compile warnings around HD5 and libicu wasn't accepted - but it works.

Package as an SFS File - spit:
Part1
https://app.box.com/s/kw1afczk1ocnag63voxyx6kzqngitu3b
Part2
https://app.box.com/s/m01xc0cf4ujb5qbqp746787cjs2b20w8
Part3
https://app.box.com/s/t4alpl37js2zons8t5bpg6c2l7habzz2

To combine put all files in the same folder - open a terminal there - or make a script:
Code:

cat FreeCAD1 >>FreeCAD-0.17-x86_64.sfs
cat FreeCAD2 >>FreeCAD-0.17-x86_64.sfs
cat FreeCAD3 >>FreeCAD-0.17-x86_64.sfs

md5sum FreeCAD-0.17-x86_64.sfs


It should give
MD5SUM b15d527c34207d18007d9c49e19f3275 FreeCAD-0.17-x86_64.sfs


Dependency sources (my own mirror) as archive files (they were hard to find)-list incomplete:
Coin-3.1.3.tar.gz
https://app.box.com/s/c9uq0ppjrmsa9f7lvqlor952j0qfsjb3

hdf5-1.8.11.tar.gz
https://app.box.com/s/6rt46uh913mt9zj3brj1h9qwkxwy0jfq

libspnav-0.2.3.tar.gz
https://app.box.com/s/fbmsz5jzparqnrvke2jp9co1j6ge0ubx

med-fichier_3.0.3.orig.tar.gz
https://app.box.com/s/4ll9weei0k00clzndesff9c64gnu3uja

oce-0.18.2.tar.xz
pyside-qt4.8+1.2.2.tar.bz2
Tools-0.2.15.tar.gz

VTK-7.1.1.tar.gz
https://app.box.com/s/ewapdhdx4way1sya737gblyirrnd2x9l
xerces-c-3.1.1.tar.gz
https://app.box.com/s/qjsrt7brlgeui3vsuzaoedu51p18heys
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0748s ][ Queries: 12 (0.0100s) ][ GZIP on ]