Debian Buster Compilation Fails

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

@user1234 I dont have a buildlog.txt file. but maybe this one is of help. I did not know of cmake-gui either but just checked the FREECAD_BUILD_DEBIAN box as the link you provided suggests and I am trying again.

Thanks so much. I hope I can get it done.
Attachments
CMakeOutput.log
(431.91 KiB) Downloaded 49 times
user1234
Veteran
Posts: 3475
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

I copied the log from the terminal in a file after building. You have a cmake error. But the this log is useless without colors, i am blind till tomorrow.

I would:

- install the cmake gui. The output there is much better and structured (or better to say, it is better to find)
- delete all except the sourcecode folder
- go to your build folder (no idea where you built it, i always make it local in my home directory)
- make the command in the terminal cmake path_to_the_sourcecodefolder
- after cmake runs go to the file in the build folder and open the CMakeCache.txt with the cmake gui
- edit it like the link i provided before
- click on configure (look if the is no error or missing dependencies, if one is missing, install it)
- make the command in the terminal in the build folder make

Sometimes while building, some missing dependencies occur. Install them and redo the make.

I hope it helps.

Greetings
user1234

edit: typo
drmacro
Veteran
Posts: 8977
Joined: Sun Mar 02, 2014 4:35 pm

Re: Debian Buster Compilation Fails

Post by drmacro »

cmake gui is in the "sudoku one liner" as given in the FreeCAD wiki.

As I said I found nothing about FreeCAD when I launched the cmake gui.

When I specified the FreeCAD source, simply listed a great long list of packages that were installed on the machine, still nothing about FreeCAD.

I gave quick search on the web and found tutorials...not had time to follow the rabbit yet. :lol:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
user1234
Veteran
Posts: 3475
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

This was more to hhassey. But if you read the docs of cmake, you will be more confused as before. I prefer "just trying and look what it do and try to understand what it do". So i learned i need to know about cmake, i will never understand it near a half of it or the syntax of the cmake files.

Greetings
user1234
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

user1234 wrote: Wed Jun 09, 2021 11:31 pm I copied the log from the terminal in a file after building. You have a cmake error. But the this log is useless without colors, i am blind till tomorrow.

I would:

- install the cmake gui. The output there is much better and structured (or better to say, it is better to find)
- delete all except the sourcecode folder
- go to your build folder (no idea where you built it, i always make it local in my home directory)
- make the command in the terminal cmake path_to_the_sourcecodefolder
- after cmake runs go to the file in the build folder and open the CMakeCache.txt with the cmake gui
- edit it like the link i provided before
- click on configure (look if the is no error or missing dependencies, if one is missing, install it)
- make the command in the terminal in the build folder make

Sometimes while building, some missing dependencies occur. Install them and redo the make.

I hope it helps.

Greetings
user1234

edit: typo
I did exactly as instructed. The compilation still crashes @ 62%

This is very annoying, I have another system with the exact same OS and compiles perfectly.

Please help!
Attachments
CMakeError.log
(2.54 KiB) Downloaded 38 times
CMakeOutput.log
(84.87 KiB) Downloaded 54 times
user1234
Veteran
Posts: 3475
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

And the make output?
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

Code: Select all


==============
Summary report
==============

Build type:          
Compiler:            /usr/bin/c++ (8.3.0)
Flags:               -Wall -Wextra -Wno-write-strings 
Standard:            Requires C++17
Python:              3.7.3 [/usr/bin/python3.7] [.cpython-37m-x86_64-linux-gnu]
PCL:                 not enabled
pybind11:            not enabled
Boost:               1.67.0 (106700)
XercesC:             3.2.2 [/usr/lib/x86_64-linux-gnu/libxerces-c.so] [/usr/include]
ZLIB:                1.2.11
PyCXX:               6.2.8 [/opt/freecad-source/src]
OCC:                 6.9.1 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [] [/usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce]
SMESH:               build internal
 MEDFile:            4.0.0 [/usr/lib/x86_64-linux-gnu/libmedC.so] [/usr/include]
 HDF5:               1.10.4
 VTK:                7.1.1
NETGEN:              not enabled
SWIG:                3.0.12
Eigen3               3.3.7
Qt5Core:             5.11.3
Qt5Network:          5.11.3
Qt5Xml:              5.11.3
Qt5XmlPatterns:      5.11.3
Qt5Widgets:          5.11.3
Qt5PrintSupport:     5.11.3
Qt5OpenGL:           5.11.3
Qt5Svg:              5.11.3
Qt5UiTools:          5.11.3
Qt5Concurrent:       5.11.3
Qt5WebKitWidgets:    5.212.0
Shiboken2:           5.11.2 [/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.11.2] [/usr/include/shiboken2]
PySide2:             5.11.2 [/usr/include/PySide2]
PySide2Tools:        [/usr/bin/pyside2-uic] [/usr/bin/pyside2-rcc]
Freetype:            2.9.1
OpenGL:              /usr/lib/x86_64-linux-gnu/libGL.so
OpenGLU:             [/usr/lib/x86_64-linux-gnu/libGLU.so][/usr/include]
Coin3D:              4.0.0 [/usr/lib/x86_64-linux-gnu/libCoin.so] [/usr/include]
Pivy:                0.6.5a0
SPNAV:               [/usr/lib/libspnav.so] [/usr/include]
Matplotlib:          3.0.2
Rift:                not enabled (BUILD_VR)
Doxygen:             not found
=================================================
Now run 'cmake --build /opt/freecad-source/freecad-build' to build FreeCAD
=================================================

Configuring done
Configuring and Generate, run without complains
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

user1234 wrote: Thu Jun 10, 2021 4:42 pm And the make output?
Where do I find the make output?
user1234
Veteran
Posts: 3475
Joined: Mon Jul 11, 2016 5:08 pm

Re: Debian Buster Compilation Fails

Post by user1234 »

Not the cmake output. The make output, where the procents runs.
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Debian Buster Compilation Fails

Post by hhassey »

Should I run

Code: Select all

make -j 9 > Output.txt 
To show the output you are looking for?
Post Reply