Compile of git fails on Slackware64-current

Having trouble installing or compiling FreeCAD? Get help here.
saxa
Posts: 6
Joined: Mon Dec 28, 2015 2:45 am

Compile of git fails on Slackware64-current

Postby saxa » Mon Dec 28, 2015 3:46 am

Hi I'm new in here, but want to say thanks for the nice work you are doing.

I'm trying to build freecad on a slackware 64bit current system. So far I have been able to configure it and when i start make I het immediately a build error
when linker tries to link the object. Please try to enlighten me what could be the cause to that error ?

Code: Select all

bash-4.3$ mkdir freecad-build
bash-4.3$ cd freecad-build/
bash-4.3$ cmake -DFREECAD_USE_EXTERNAL_PIVY=1 -DCMAKE_BUILD_TYPE=Release ../FreeCAD/
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for GL/gl.h
-- Looking for GL/gl.h - found
-- Looking for C++ include istream
-- Looking for C++ include istream - found
-- Looking for C++ include ostream
-- Looking for C++ include ostream - found
-- Looking for C++ include fstream
-- Looking for C++ include fstream - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for C++ include ios
-- Looking for C++ include ios - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Looking for C++ include iomanip
-- Looking for C++ include iomanip - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Check for STD namespace
-- Check for STD namespace - found
-- prefix: /usr/local
-- datadir: data
-- docdir: doc
-- includedir: include
-- libdir: /usr/local/lib
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.11") 
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable exact version "2.7.11") 
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   filesystem
--   program_options
--   regex
--   signals
--   system
--   thread
-- Found Xerces-C: /usr/lib64/libxerces-c.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
-- PyCXX found:
--   Headers:  /home/sasa/dev/FreeCAD/src
--   Sources:  /home/sasa/dev/FreeCAD/src/CXX
-- Found OCC: /usr/include/opencascade (found version "6.9.1") 
-- -- Found OCE/OpenCASCADE version: 6.9.1
-- -- OCE/OpenCASCADE include directory: /usr/include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: /usr/lib64
-- Found SWIG: /usr/bin/swig (found version "3.0.7") 
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") 
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.7", minimum required is "4.5.0") 
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.6.2") 
-- Found OpenGL: /usr/lib64/libGL.so  
-- Found OpenGLU: /usr/lib64/libGLU.so
-- Could NOT find Spnav (missing:  SPNAV_LIBRARY SPNAV_INCLUDE_DIR) 
-- libshiboken built for Release
-- Found PySide Tools: /usr/bin/pyside-uic, /usr/bin/pyside-rcc
-- matplotlib not found, Plot module won't be available!
-- Platform is 64-bit, set -D_OCC64
-- Build type: Release
git
/home/sasa/dev/freecad-build/src/Build/Version.h written
-- /home/sasa/dev/freecad-build/src/Base/BaseClassPy.cpp
-- /home/sasa/dev/freecad-build/src/Base/BoundBoxPy.cpp
-- /home/sasa/dev/freecad-build/src/Base/PersistencePy.cpp
-- /home/sasa/dev/freecad-build/src/Base/VectorPy.cpp
-- /home/sasa/dev/freecad-build/src/Base/MatrixPy.cpp
-- /home/sasa/dev/freecad-build/src/Base/RotationPy.cpp
-- /home/sasa/dev/freecad-build/src/Base/PlacementPy.cpp
-- /home/sasa/dev/freecad-build/src/Base/AxisPy.cpp
-- /home/sasa/dev/freecad-build/src/Base/UnitPy.cpp
-- /home/sasa/dev/freecad-build/src/Base/QuantityPy.cpp
-- /home/sasa/dev/freecad-build/src/App/DocumentPy.cpp
-- /home/sasa/dev/freecad-build/src/App/DocumentObjectPy.cpp
-- /home/sasa/dev/freecad-build/src/App/DocumentObjectGroupPy.cpp
-- /home/sasa/dev/freecad-build/src/App/ComplexGeoDataPy.cpp
-- /home/sasa/dev/freecad-build/src/App/PropertyContainerPy.cpp
-- /home/sasa/dev/freecad-build/src/App/MaterialPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Points/App/PointsPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Mesh/App/FacetPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Mesh/App/MeshFeaturePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Mesh/App/MeshPointPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Mesh/App/MeshPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/ArcPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/ArcOfCirclePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/ArcOfParabolaPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/CirclePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/ArcOfEllipsePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/EllipsePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/HyperbolaPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/ArcOfHyperbolaPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/ParabolaPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/OffsetCurvePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/GeometryPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/GeometryCurvePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/GeometrySurfacePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/LinePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/PointPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/BezierCurvePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/BSplineCurvePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/PlanePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/ConePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/CylinderPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/SpherePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/ToroidPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/BezierSurfacePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/BSplineSurfacePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/OffsetSurfacePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/PlateSurfacePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/RectangularTrimmedSurfacePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/SurfaceOfExtrusionPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/SurfaceOfRevolutionPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/PartFeaturePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/Part2DObjectPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapeCompoundPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapeCompSolidPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapeEdgePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapeFacePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapeShellPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapeSolidPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapeVertexPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/TopoShapeWirePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Sketcher/App/SketchObjectSFPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Sketcher/App/SketchObjectPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Sketcher/App/ConstraintPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Sketcher/App/SketchPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Robot/App/Robot6AxisPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Robot/App/TrajectoryPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Robot/App/WaypointPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Robot/App/RobotObjectPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Import/App/StepShapePy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Fem/App/FemMeshPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Fem/Gui/ViewProviderFemMeshPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Spreadsheet/App/SheetPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Spreadsheet/App/PropertySheetPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Path/App/CommandPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Path/App/PathPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Path/App/ToolPy.cpp
-- /home/sasa/dev/freecad-build/src/Mod/Path/App/TooltablePy.cpp
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   python
-- found Boost: 1_59
-- boost-incude dirs are: /usr/include
-- boost-python lib is: /usr/lib64/libboost_python.so
-- boost_LIBRARY_DIRS is: /usr/lib64
-- Boost_LIBRARIES is: /usr/lib64/libboost_python.so
-- area module (for Path Workbench) will be installed to: /usr/local/lib
-- /home/sasa/dev/freecad-build/src/Gui/DocumentPy.cpp
-- /home/sasa/dev/freecad-build/src/Gui/PythonWorkbenchPy.cpp
-- /home/sasa/dev/freecad-build/src/Gui/ViewProviderPy.cpp
-- /home/sasa/dev/freecad-build/src/Gui/ViewProviderDocumentObjectPy.cpp
-- /home/sasa/dev/freecad-build/src/Gui/ViewProviderPythonFeaturePy.cpp
-- /home/sasa/dev/freecad-build/src/Gui/WorkbenchPy.cpp
-- /home/sasa/dev/freecad-build/src/Gui/SelectionObjectPy.cpp
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.9.1") 
-- Note: Doxygen docs will look better with graphviz's dot installed.
-- Coin3D doc is installed
=======================================
Now run 'make' to build FreeCAD
=======================================

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    FREECAD_USE_EXTERNAL_PIVY


-- Build files have been written to: /home/sasa/dev/freecad-build
bash-4.3$ make
Scanning dependencies of target Driver
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_Document.cpp.o
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_Mesh.cpp.o
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_SMDS_Mesh.cpp.o
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/src/Driver/Driver_SMESHDS_Mesh.cpp.o
[  0%] Linking CXX shared library ../../../lib/libDriver.so
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKIGES
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKSTL
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKXSBase
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKBin
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKSTEP
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKSTEPBase
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKSTEPAttr
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKCAF
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKXCAF
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKLCAF
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKXDESTEP
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKXDEIGES
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: cannot find -lTKMeshVS
collect2: error: ld returned 1 exit status
src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/build.make:172: recipe for target 'lib/libDriver.so' failed
make[2]: *** [lib/libDriver.so] Error 1
CMakeFiles/Makefile2:304: recipe for target 'src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/all' failed
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/Driver.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
bash-4.3$ 
Rgds
Saxa
Rgds
Saxa ;)
wmayer
Site Admin
Posts: 14287
Joined: Thu Feb 19, 2009 10:32 am

Re: Compile of git fails on Slackware64-current

Postby wmayer » Mon Dec 28, 2015 8:50 am

Do you have installed the dev package for OpenCascade? Or in case you have installed it then its .so files might be installed into a directory where the linker can't find them.
saxa
Posts: 6
Joined: Mon Dec 28, 2015 2:45 am

Re: Compile of git fails on Slackware64-current

Postby saxa » Mon Dec 28, 2015 2:15 pm

Exactly, I found that out by myself yesterday. The main problem is the OCC_LIBRARY_DIR path. I have installed opencascade in /usr/lib64 bit there is no way I could set this path correctly. See the following:

Code: Select all

-- -- Found OCE/OpenCASCADE version: 6.9.1
-- -- OCE/OpenCASCADE include directory: /usr/include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: /usr
I always get this OCE/OpenCASCADE shared libraries directory: as /usr instead of /usr/lib64 no matter how do I set the cmake options.

Code: Select all

cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64 -DOCC_INCLUDE_DIR=/usr/include/opencascade -DOCC_LIBRARY_DIR=/usr/lib64 ../FreeCAD/
Rgds
Saxa ;)
wmayer
Site Admin
Posts: 14287
Joined: Thu Feb 19, 2009 10:32 am

Re: Compile of git fails on Slackware64-current

Postby wmayer » Mon Dec 28, 2015 3:52 pm

Maybe it works to adjust the file FindOpenCascade.cmake. After line 63 you can insert the path /usr/lib64 and then try again. Alternatively, you can use the cmake-gui and try if this way the custom path is kept.
saxa
Posts: 6
Joined: Mon Dec 28, 2015 2:45 am

Re: Compile of git fails on Slackware64-current

Postby saxa » Mon Dec 28, 2015 6:43 pm

Ok, for some reason, my opencascade build have not those libraries built. Or at least they are not in the /usr/lib64.
Now I have to figure out why those libs are not in place.

I have tried to replace PATH in that line with /usr/lib64 but there was no luck obviously as the libs are not there.

Will investigate why there were not built/installed.
Rgds
Saxa ;)
saxa
Posts: 6
Joined: Mon Dec 28, 2015 2:45 am

Re: Compile of git fails on Slackware64-current

Postby saxa » Mon Dec 28, 2015 6:48 pm

In fact those libs are not built for some reason. this is what is on my system:

Code: Select all

bash-4.3$ cat /var/log/packages/opencascade-6.9.1-x86_64-2saxa_SBo | grep lib64
usr/lib64/
usr/lib64/libTKBO.la
usr/lib64/libTKBO.so.0.0.0
usr/lib64/libTKBRep.la
usr/lib64/libTKBRep.so.0.0.0
usr/lib64/libTKBool.la
usr/lib64/libTKBool.so.0.0.0
usr/lib64/libTKFeat.la
usr/lib64/libTKFeat.so.0.0.0
usr/lib64/libTKFillet.la
usr/lib64/libTKFillet.so.0.0.0
usr/lib64/libTKG2d.la
usr/lib64/libTKG2d.so.0.0.0
usr/lib64/libTKG3d.la
usr/lib64/libTKG3d.so.0.0.0
usr/lib64/libTKGeomAlgo.la
usr/lib64/libTKGeomAlgo.so.0.0.0
usr/lib64/libTKGeomBase.la
usr/lib64/libTKGeomBase.so.0.0.0
usr/lib64/libTKHLR.la
usr/lib64/libTKHLR.so.0.0.0
usr/lib64/libTKMath.la
usr/lib64/libTKMath.so.0.0.0
usr/lib64/libTKMesh.la
usr/lib64/libTKMesh.so.0.0.0
usr/lib64/libTKOffset.la
usr/lib64/libTKOffset.so.0.0.0
usr/lib64/libTKPrim.la
usr/lib64/libTKPrim.so.0.0.0
usr/lib64/libTKShHealing.la
usr/lib64/libTKShHealing.so.0.0.0
usr/lib64/libTKTopAlgo.la
usr/lib64/libTKTopAlgo.so.0.0.0
usr/lib64/libTKXMesh.la
usr/lib64/libTKXMesh.so.0.0.0
usr/lib64/libTKernel.la
usr/lib64/libTKernel.so.0.0.0
bash-4.3$ 

Rgds
Saxa ;)
saxa
Posts: 6
Joined: Mon Dec 28, 2015 2:45 am

Re: Compile of git fails on Slackware64-current

Postby saxa » Thu Dec 31, 2015 12:34 am

Ok got it sorted out. The problem was as my first Opencascade build was built without the VTK toolkit. This was the cause for not building the various Opencascade modules like Visualization, Draw and others. Installed VTK 6.3.0 and then built up Opencascade. After that i got the needed libs for FreeCAD.

FreeCAD itself built without any troubles. Right now I have the 0.16-pre installed. Will try the one from git repo directly those days.

Thanks for a nice CAD software. I have to get used to it, but will play a bit with it.
Rgds
Saxa ;)