Build on Debian 10.9

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
drmacro
Veteran
Posts: 8873
Joined: Sun Mar 02, 2014 4:35 pm

Build on Debian 10.9

Post by drmacro »

Every new attempt to build FreeCAD is an adventure. :mrgreen:

Attempting to build on newly installed Debian 10.9.

Can someone enlighten me on the following result?

Code: Select all

-- Found Python3: /usr/local/bin/python3.7 (found version "3.7.3") found components:  Interpreter Development 
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Failed to find XercesC (missing: XercesC_LIBRARY XercesC_INCLUDE_DIR
  XercesC_VERSION)
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.13/Modules/FindXercesC.cmake:98 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cMake/FreeCAD_Helpers/SetupXercesC.cmake:4 (find_package)
  CMakeLists.txt:48 (SetupXercesC)


-- Configuring incomplete, errors occurred!
See also "/home/mac/freecad-build/CMakeFiles/CMakeOutput.log".
See also "/home/mac/freecad-build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
and for good measure the CMake log:

Code: Select all

/home/mac/freecad-build/CMakeFiles/CMakeError.log
Determining if the include file GL/gl.h exists failed with the following output:
Change Dir: /home/mac/freecad-build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_fa0d0/fast"
/usr/bin/make -f CMakeFiles/cmTC_fa0d0.dir/build.make CMakeFiles/cmTC_fa0d0.dir/build
make[1]: Entering directory '/home/mac/freecad-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fa0d0.dir/CheckIncludeFile.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_fa0d0.dir/CheckIncludeFile.c.o   -c /home/mac/freecad-build/CMakeFiles/CMakeTm
p/CheckIncludeFile.c
/home/mac/freecad-build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: GL/gl.h: No such file or direc
tory
 #include <GL/gl.h>
          ^~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_fa0d0.dir/build.make:66: CMakeFiles/cmTC_fa0d0.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/home/mac/freecad-build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_fa0d0/fast] Error 2


Determining if the include file GL/gl.h exists failed with the following output:
Change Dir: /home/mac/freecad-build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_81e3a/fast"
/usr/bin/make -f CMakeFiles/cmTC_81e3a.dir/build.make CMakeFiles/cmTC_81e3a.dir/build
make[1]: Entering directory '/home/mac/freecad-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_81e3a.dir/CheckIncludeFile.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_81e3a.dir/CheckIncludeFile.c.o   -c /home/mac/freecad-build/CMakeFiles/CMakeTm
p/CheckIncludeFile.c
/home/mac/freecad-build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: GL/gl.h: No such file or direc
tory
 #include <GL/gl.h>
          ^~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_81e3a.dir/build.make:66: CMakeFiles/cmTC_81e3a.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/home/mac/freecad-build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_81e3a/fast] Error 2

Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Build on Debian 10.9

Post by Syres »

drmacro wrote: Wed Jun 09, 2021 5:23 pm Every new attempt to build FreeCAD is an adventure. :mrgreen:

Attempting to build on newly installed Debian 10.9.
I think you need to carefully go through the dependencies, you appear to be at the very least missing libxerces-c-dev, possibly more.
user1234
Veteran
Posts: 3350
Joined: Mon Jul 11, 2016 5:08 pm

Re: Build on Debian 10.9

Post by user1234 »

first: install missing libxerces-c-dev
second: maybe you also miss libgles-dev or libgl-dev or your cmake setttings are not correct.
third: try the cmake option FREECAD_BUILD_DEBIAN=1
00.png
00.png (35.49 KiB) Viewed 1239 times
Also maybe later some missing dependencies will occur.

Hints: if you get some errors about salomemesh, try the option mpic++
01.png
01.png (52.37 KiB) Viewed 1239 times

Also as far as i know the lowest C++ Compiler is C++14
02.png
02.png (14.04 KiB) Viewed 1239 times

Greetings
user1234
drmacro
Veteran
Posts: 8873
Joined: Sun Mar 02, 2014 4:35 pm

Re: Build on Debian 10.9

Post by drmacro »

user1234 wrote: Wed Jun 09, 2021 6:11 pm first: install missing libxerces-c-dev
second: maybe you also miss libgles-dev or libgl-dev or your cmake setttings are not correct.
third: try the cmake option FREECAD_BUILD_DEBIAN=1
00.pngAlso maybe later some missing dependencies will occur.

Hints: if you get some errors about salomemesh, try the option mpic++
01.png


Also as far as i know the lowest C++ Compiler is C++14
02.png


Greetings
user1234
I have no idea what the screens are you show. :mrgreen:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
drmacro
Veteran
Posts: 8873
Joined: Sun Mar 02, 2014 4:35 pm

Re: Build on Debian 10.9

Post by drmacro »

It turns out I had done the deps BEFORE installing Pyhon3.

After I re-did the deps after installing Python 3 all is good. :mrgreen:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
user1234
Veteran
Posts: 3350
Joined: Mon Jul 11, 2016 5:08 pm

Re: Build on Debian 10.9

Post by user1234 »

drmacro wrote: Wed Jun 09, 2021 6:38 pm I have no idea what the screens are you show.
What? That is the cmake GUI (see cmake-qt-gui package). How do you set up cmake without gui? That is insane for the fullness of options that FreeCAD offers. Try it, it is worth.

Greetings
user1234
drmacro
Veteran
Posts: 8873
Joined: Sun Mar 02, 2014 4:35 pm

Re: Build on Debian 10.9

Post by drmacro »

user1234 wrote: Wed Jun 09, 2021 6:56 pm
drmacro wrote: Wed Jun 09, 2021 6:38 pm I have no idea what the screens are you show.
What? That is the cmake GUI (see cmake-qt-gui package). How do you set up cmake without gui? That is insane for the fullness of options that FreeCAD offers. Try it, it is worth.

Greetings
user1234
To be honest, I haven't looked at how make or cmake works for decades.

In fact, I see what I'm doing as testing the FreeCAD build instructions provided on the FreeCAD wiki page.
To my knowledge, other than being included in the one line sudo for the deps, there is no mention of using the cmake gui.

If cmake and it's use are required, to build FreeCAD, then we need to update that wiki.

How the cmake gui is used, how it helps, etc. should be at least outlined in that case.

I will indeed check it out in more detail...now hat I know it exists ;)

Edit: I ran it, I got a nice dialogue with no neat checkboxes as you show. So, it is now a rabbit hole for me to spend time figuring out what it is good for. :(
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply