[SOLVED] Building 0.14 on Slackware 14.1 (32b)

A forum dedicated to the Draft, Arch and BIM workbenches development.
however
Posts: 31
Joined: Sat Apr 05, 2014 12:12 pm

Re: Another window issue

Postby however » Fri Apr 11, 2014 7:35 pm

Correction!
Is OCE a short for OpenCascade?
Thanks
Slackware 14.1 32b and FreeCAD 0.14
ulrich1a
Posts: 1872
Joined: Sun Jul 07, 2013 12:08 pm

Re: Another window issue

Postby ulrich1a » Fri Apr 11, 2014 7:41 pm

however wrote:How/where did you get it from?
I am using Debian and cmake found it for me.

May this old thread have some hints for you? viewtopic.php?f=4&t=965&start=10#p7555

OCE is another fork of OpenCascade. It is the Opencascade Community Edition.

Ulrich
however
Posts: 31
Joined: Sat Apr 05, 2014 12:12 pm

Re: Another window issue

Postby however » Fri Apr 11, 2014 7:55 pm

OK!
I think i'm getting somewhere.

the OCC directory in Slackware may be found on "/usr/share/OpenCASCADE/data" and manually set in 'cmake-gui'.

Now, when I run 'cmake-gui' I get this:
prefix: /usr/local
datadir: data
docdir: doc
includedir: include
Boost version: 1.54.0
Found the following Boost libraries:
filesystem
program_options
regex
signals
system
thread
Found Xerces-C: /usr/lib/libxerces-c.so
PyCXX found:
Headers: /home/professor/slackpckgs/FreeCAD/0.14/free-cad-code/src
Sources: /home/professor/slackpckgs/FreeCAD/0.14/free-cad-code/src/CXX
-- OpenCASCADE include directory: (still markerd in red as an error)
-- OpenCASCADE shared libraries directory: (still markerd in red as an error)
libshiboken built for Release
-- matplotlib-1.1.1 has been found. (still markerd in red as an error)
Platform is 32-bit
Build type:
Coin3D doc is not installed
Configuring done
Does this mean that the compile has finished successfully? If so, do I hit 'Generate' now? (not really comfortable with 'cmake-gui')

BTW, I believe I have installed OpenCascade-6.6.0 and not the OpenCascade Community edition.

Should I try to install the OCE rather than...?

Thanks
Slackware 14.1 32b and FreeCAD 0.14
ulrich1a
Posts: 1872
Joined: Sun Jul 07, 2013 12:08 pm

Re: Another window issue

Postby ulrich1a » Fri Apr 11, 2014 8:16 pm

Code: Select all


Re: Compiling for Slackware 13.1 64-bit

Postby mpyusko » Tue May 10, 2011 12:43 pm
So I'm going to go out on a limb here and try

Code: Select all
    ./configure CXXFLAGS="-D_OCC64" --with-occ-include="/usr/include/OpenCASCADE" --with-occ-lib="/usr/share/OpenCASCADE"



it's running now.... we'll see what happens.

Edit: er, "compiling"
I think you should omit "data" from your path. Have a look at the above example.

Just click "configure" in cmake-gui until it shows up no line in red and than click "generate"
If the red line stays after the next click on configure, then something is wrong.

Ulrich
triplus
Posts: 8278
Joined: Mon Dec 12, 2011 4:45 pm

Re: Another window issue

Postby triplus » Fri Apr 11, 2014 8:53 pm

Yes as ulrich1a said remove the "data" in the GUI or slightly modified CLI version:

Code: Select all

-D OCC_INCLUDE_DIR=/usr/include/OpenCASCADE
That would need do be added to cmake line. I guess OCE is not found automatically because /usr/include/opencascade will not work on Slackware and /usr/include/OpenCASCADE would be need to added here too:

https://github.com/FreeCAD/FreeCAD_sf_m ... Cade.cmake
however
Posts: 31
Joined: Sat Apr 05, 2014 12:12 pm

Re: Another window issue

Postby however » Fri Apr 11, 2014 9:50 pm

Well, tried all your suggestions,

and lastly, i tried both
freecad_snapshot3.jpg
freecad_snapshot3.jpg (10.41 KiB) Viewed 2320 times
and
freecad_snapshot4.jpg
freecad_snapshot4.jpg (10.53 KiB) Viewed 2320 times
Outcome: same error msg and it changes back to this:
freecad_snapshot5.jpg
freecad_snapshot5.jpg (9.12 KiB) Viewed 2320 times
the OCC_INCLUDE_DIR seems to be OK, but the OCE_DIR doesn't! so I have decided to build and install the OCE (despite I already have the OpenCascade-6.6.0). OCE is still building; the 'make' is taking 1hr so far, and it's only at 32%, so I guess that I will have more news tmrw, as it is already midnight.

one more thing that I don't seem to understand is the error line:
-- matplotlib-1.1.1 has been found
p.s.: I didnt create a build directory for the OCE package, so it's been configured and now building on the same source directory. When the make is finished, where would I find the install file? (i'm really not good with make, as usually I use ./config && make && make install)
Slackware 14.1 32b and FreeCAD 0.14
triplus
Posts: 8278
Joined: Mon Dec 12, 2011 4:45 pm

Re: Another window issue

Postby triplus » Fri Apr 11, 2014 10:25 pm

one more thing that I don't seem to understand is the error line:
This is not error.

Before you install latest OCE I checked what is the content of OCE_DIR on my system and i guess file like this should be found on your system too:

Code: Select all

locate OCEConfig.cmake
Does this command find OCEConfig.cmake file somewhere on your system? If yes do not install latest OCE for now you can still do that latter but we should not mess too much with installed packages until we get something working first.
however
Posts: 31
Joined: Sat Apr 05, 2014 12:12 pm

Re: Another window issue

Postby however » Fri Apr 11, 2014 11:06 pm

Hi triplus,
triplus wrote: locate OCEConfig.cmake

Does this command find OCEConfig.cmake file somewhere on your system?
Nope!

or better, it does find the OCEConfig.cmake from the OCE directory that I created just a cpl of hrs ago (btw, OCE is still building :( )

So. would this be the final indication that I need to install OCE?
This is not error.
Cmake-gui reports it as an error, hence marked in red. Can i ignore it?


Thank you.
Slackware 14.1 32b and FreeCAD 0.14
triplus
Posts: 8278
Joined: Mon Dec 12, 2011 4:45 pm

Re: Another window issue

Postby triplus » Fri Apr 11, 2014 11:42 pm

Cmake-gui reports it as an error, hence marked in red. Can i ignore it?
This is not error it is just (cmake-gui) telling you new configuration variables where found/added.
So. would this be the final indication that I need to install OCE?
I guess whatever you are getting from repositories is OLD and yes it will make sense to use latest OCE. I am guessing you are getting OCC from repositories and that is why the file is not there. Anyway yes why not after you compile OCE install it! I am just not sure what would be the best option. I would suggest for you to use checkinstall but on home page last news if from 2011 and there is special note for Slackware users:

http://asic-linux.com.mx/~izto/checkinstall/

Some Slackware users suggest:

http://www.linuxquestions.org/questions ... 175495795/

This should be used instead:

http://www.src2pkg.net/

And checkinstall is as i understand it not available in Slackware repositories instead something called slacktrack is? This is basically to be able to easily uninstall installed manually compiled OCE if needed. I would say go with checkinstall if available if not i guess slacktrack could be used instead and see how it goes. After that it just might happen FreeCAD will automatically detect OCE but if not the command locate OCEConfig.cmake will help you find it! Do that and report.
triplus
Posts: 8278
Joined: Mon Dec 12, 2011 4:45 pm

Re: Another window issue

Postby triplus » Fri Apr 11, 2014 11:53 pm

Or yes if you are lost in all this just use make install (as root) in the end to install OCE and hopefully that will be it for now. After that try to compile FreeCAD Development Release code again to see how it goes. I guess OCE shouldn't be problem anymore for now and hopefully it will work fine.