CMake Error while building within Docker Container

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
randomdude-583
Posts: 1
Joined: Thu Aug 26, 2021 12:45 am

CMake Error while building within Docker Container

Post by randomdude-583 »

I am attempting to get FreeCAD to run within a Docker container using the instructions outlined here. I am able to get to the Build stage, but unfortunately I get a CMake error regarding the version of G++.

Code: Select all

CMake Error at cMake/FreeCAD_Helpers/CompilerChecksAndSetups.cmake:39 (message):
  FreeCAD 0.20 and later requires C++17.  G++ must be 7.3 or later, the used
  version is 6.3.0
What is the best way to address this issue?

Thanks!
User avatar
doia
Posts: 251
Joined: Sat May 29, 2021 5:47 am
Location: Düsseldorf

Re: CMake Error while building within Docker Container

Post by doia »

There are some PR's for the freecad/docker repo pending. But I don't know how current they are.

https://github.com/FreeCAD/Docker/pulls
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: CMake Error while building within Docker Container

Post by kkremitzki »

We are moving to maintaining Dockerfiles inside the FreeCAD repo itself, I think the wiki page may need to be updated to refer to them
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
doia
Posts: 251
Joined: Sat May 29, 2021 5:47 am
Location: Düsseldorf

Re: CMake Error while building within Docker Container

Post by doia »

Would it not make more sense to keep FreeCAD-Source and FreeCAD-Docker as separate repos? Also deleting the current /conda folders from source, as these don't work anyways (at least not for MAC) as there is a dedicated FreeCAD-Conda https://github.com/FreeCAD/FreeCAD_Conda repo.

This would keep the actual source clean and separate the many different build options: Conda, Docker, Homebrew etc.
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: CMake Error while building within Docker Container

Post by kkremitzki »

I don't have a strong opinion one way or the other on maintaining the Dockerfiles in the FreeCAD repo itself or in a separate one, but this is certainly something that could be discussed and changed.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: CMake Error while building within Docker Container

Post by adrianinsaval »

there was a separate docker repository but it was abandoned
paulywill
Posts: 1
Joined: Mon Jan 09, 2023 8:32 pm
Contact:

Re: CMake Error while building within Docker Container

Post by paulywill »

randomdude-583 wrote: Thu Aug 26, 2021 12:53 am I am attempting to get FreeCAD to run within a Docker container using the instructions outlined here. I am able to get to the Build stage, but unfortunately I get a CMake error regarding the version of G++.

Code: Select all

CMake Error at cMake/FreeCAD_Helpers/CompilerChecksAndSetups.cmake:39 (message):
  FreeCAD 0.20 and later requires C++17.  G++ must be 7.3 or later, the used
  version is 6.3.0
What is the best way to address this issue?

Thanks!
Same error message for me as well.

Finding working instructions to compile and build FreeCAD on macOS M1 almost non-existent.
Fragments of instructions here and there is frustrating at best.
Post Reply