Out of date G++ installation in FreeCAD Docker Image

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
dreamy_jy
Posts: 7
Joined: Fri Mar 12, 2021 2:37 am

Out of date G++ installation in FreeCAD Docker Image

Post by dreamy_jy »

Hi everyone I'm trying to compile FreeCAD with Dockers. The process has been great but I'm running into one issue so far. When I run this command:

Code: Select all

/root/build_script.sh
I'm meet with this message indicating my need to update the G++ install in the docker container.

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
Call Stack (most recent call first):
  CMakeLists.txt:38 (CompilerChecksAndSetups)


-- Configuring incomplete, errors occurred!
See also "/mnt/build/CMakeFiles/CMakeOutput.log".
This is a known issue and I'm contacting the image maintainer, but I was hoping I could get some help from the forum as well.
Dreamy Jy's back at it again.
User avatar
dreamy_jy
Posts: 7
Joined: Fri Mar 12, 2021 2:37 am

Re: Out of date G++ installation in FreeCAD Docker Image

Post by dreamy_jy »

Hey I'm interested in becoming a new contributor and have been trapped trying to compile freecad is no one available that can help me out?
Kunda1 wrote:
wmayer wrote:
Dreamy Jy's back at it again.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Out of date G++ installation in FreeCAD Docker Image

Post by wmayer »

Well, the error message says it. Your compiler doesn't support C++17 which is mandatory since v0.20.

In the linked issue report it was said:
Salma Galaaoui @SalmaG98 · 1 month ago
Hello, I have the same issue and changing the compiler version requirement in the CompilerChecksAndSetups.cmake does not help, it causes another problem later on, can you let me know if you solved this? Thanks.
There was indeed a problem before we released v0.19. It was about boost::bind that caused problems when C++17 was used but this is already solved for a couple of months.
Post Reply