3 problems (or more) [solved]

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: 3 problems (or more)

Post by laprjns »

Oracle911 wrote:Or can you give step by step instructions,.....
Since FreeCAD is available on Slackbuids and your going to need to install a number of dependencies that are also only available on Slackbuids, I suggest using slapt-src (or sourcery). Here's a step by step for slapt-src:

Edit #1 - ftgl is a dependancy for OpenCASCAD so I added it to the slapt-get command in step 2
Edit #2 - need to update both slapt-get in Step 2 and slapt-src in Sept 3
Editt #3 Need to add dependancies boost and gcc-gfortran to step # 2 (as pointed out by mimosa


1) First open a terminal and become root, your prompt should like something like this:

Code: Select all

root[sjobs]#
Mine looks something like this

Code: Select all

root[Woz]#
(sorry I couldn't resist :mrgreen: )

2) First check with slapt-get for available of Salix packages for any of the dependance. In this case there are two available, xerces-c and swig, so do this:

Code: Select all

root[rich]#slapt-get --update
root[rich]#slapt-get -i xerces-c swig ftgl boost gcc-gfortran
3) Next use slapt-src to build and install all the other needed dependancies;

Code: Select all

root[rich]#slapt-src --update
root[rich]#slapt-src -i Coin SoQt Pivy OpenCASCADE gl2ps
Note that gl2ps is optional

4) Now finally build and install FreeCAD with slapt-src:

Code: Select all

root[rich]# slapt-src -i FreeCAD
Depending on your machine this is going to take some time to build; especially OpenCASCADE. I'm going through this now and haven't made it through OpenCASADE yet, so if run into any problems, I'll update the post.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: 3 problems (or more)

Post by Oracle911 »

after step 3, it failed it says:

Code: Select all

root[rich]# slapt-src -i Coin SoQt Pivy OpenCASCADE gl2ps
Failed to open slackbuilds_data for reading
Unable to find all specified slackbuilds.
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: 3 problems (or more)

Post by laprjns »

You need to update slapt-src first. Do this

Code: Select all

root[rich]#slapt-src --update
I've update my earlier post with this. Also see Edit #1, I found another dependency for OpenCASCADE
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: 3 problems (or more)

Post by mimosa »

I've been having a go at this too, and found I needed libboost and gcc-fortran as well. Also, an error message suggests eigen2 is needed for some of freecad's functionality, so it might be an idea to install this before building it.

This may all seem like -well - sourcery :) But it's generally quite straightforward to work out what's missing from the eror messages, then see if you can find it first in the repos then as a slackbuild. Sometimes it's slightly different: for instance libboost appears not to be in the repos, until you search for just "boost".

So it's just a certain amount of brute trial and error, laborious but generally trivial. I was curious to try this because my daughter's training to be an architect, and that seems to be one area where everyone is tied in to a certain closed-source commercial application. I'll ask her to put FreeCAD through its paces!

Another thing is that it installs to /opt/FreeCAD/bin, which of course isn't in my $PATH. Or at least, it did when I cheated and downloaded the precompiled binaries from the packager's website! I'm just building the SlackBuild now, and if it does the same, the following applies.

Here are some instructions about how to add a directory to the $PATH (where Linux expects apps to be):

http://everyjoe.com/technology/howto-ad ... tvariable/

but you can just call it with the whole path:

/opt/FreeCAD/bin/FreeCAD

which is what you'd need any launcher to point to, too.
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: 3 problems (or more)

Post by Oracle911 »

What is meaning of this:

Code: Select all

pivy/coin_wrap.cpp:244719:23: warning: the address of ‘time_t time(time_t*)’ will never be NULL
and this:

Code: Select all

configure: error: Fortran could not compile .f files
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: 3 problems (or more)

Post by mimosa »

Not sure about the first one, but the second is because you need to install gcc-fortran, see my previous post :)
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: 3 problems (or more)

Post by Oracle911 »

I installed gcc-gfortran (i hope this is what you meant) and it wrote this:

Code: Select all

././src/Driver/Driver_Document.cpp:22:29: fatal error: Driver_Document.h: Adresár alebo súbor neexistuje
compilation terminated.
make[4]: *** [Driver_Document.lo] Error 1
make[4]: Leaving directory `/usr/src/slapt-src/graphics/FreeCAD/FreeCAD-0.11.3729/src/3rdParty/salomesmesh'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/slapt-src/graphics/FreeCAD/FreeCAD-0.11.3729/src/3rdParty'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/slapt-src/graphics/FreeCAD/FreeCAD-0.11.3729/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/slapt-src/graphics/FreeCAD/FreeCAD-0.11.3729'
make: *** [all] Error 2
fakeroot -- sh FreeCAD.SlackBuild Failed
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: 3 problems (or more)

Post by mimosa »

There's also the first message in your previous post, which I'm not sure how to interpret. Did that occur while you were trying to build freecad, or was it one of its dependencies?

Have you installed everything Rich and I suggested, as well as all freecad's dependencies - for instance, boost?

EDIT

And yes, you're quite right, it's gcc-gfortran
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: 3 problems (or more)

Post by Oracle911 »

First error message was for dependencies (in my previous post).
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: 3 problems (or more)

Post by mimosa »

First error message was for dependencies (in my previous post).
Do you mean you got that message when you were trying to build one of the dependencies? Did the build fail? If so, then so will building freecad.

I repeat my question: have you successfully installed everthing else?
Post Reply