[SOLVED] Building 0.14 on Slackware 14.1 (32b)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Another window issue
Correction!
Is OCE a short for OpenCascade?
Thanks
Is OCE a short for OpenCascade?
Thanks
Slackware 14.1 32b and FreeCAD 0.14
Re: Another window issue
I am using Debian and cmake found it for me.however wrote:How/where did you get it from?
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
Re: Another window issue
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:
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
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:
Does this mean that the compile has finished successfully? If so, do I hit 'Generate' now? (not really comfortable with 'cmake-gui')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
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
Re: Another window issue
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"
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
Re: Another window issue
Yes as ulrich1a said remove the "data" in the GUI or slightly modified CLI version:
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
Code: Select all
-D OCC_INCLUDE_DIR=/usr/include/OpenCASCADE
https://github.com/FreeCAD/FreeCAD_sf_m ... Cade.cmake
Re: Another window issue
Well, tried all your suggestions,
and lastly, i tried both and Outcome: same error msg and it changes back to this: 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:
and lastly, i tried both and Outcome: same error msg and it changes back to this: 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:
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)-- matplotlib-1.1.1 has been found
Slackware 14.1 32b and FreeCAD 0.14
Re: Another window issue
This is not error.one more thing that I don't seem to understand is the error line:
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
Re: Another window issue
Hi triplus,
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?
Thank you.
Nope!triplus wrote: locate OCEConfig.cmake
Does this command find OCEConfig.cmake file somewhere on your system?
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?
Cmake-gui reports it as an error, hence marked in red. Can i ignore it?This is not error.
Thank you.
Slackware 14.1 32b and FreeCAD 0.14
Re: Another window issue
This is not error it is just (cmake-gui) telling you new configuration variables where found/added.Cmake-gui reports it as an error, hence marked in red. Can i ignore it?
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:So. would this be the final indication that I need to install OCE?
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.
Re: Another window issue
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.