Author Topic: [Solved] Problems when attempting to compile  (Read 3564 times)

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
[Solved] Problems when attempting to compile
« on: November 30, 2019, 09:44:21 am »
I am having issues configuring the repo under linux for self compilation:

Code: [Select]
:~/games/openxcom/OpenXcomExtended/build$ cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- Performing Test COMPILER_SUPPORTS_CXX17
-- Performing Test COMPILER_SUPPORTS_CXX17 - Failed
-- Performing Test COMPILER_SUPPORTS_CXX1Z
-- Performing Test COMPILER_SUPPORTS_CXX1Z - Failed
CMake Error at CMakeLists.txt:56 (message):
  The compiler /usr/bin/c++ has no C++17 support.  Please use a different C++
  compiler.


-- Configuring incomplete, errors occurred!
See also "~/games/openxcom/OpenXcomExtended/build/CMakeFiles/CMakeOutput.log".
See also "~/games/openxcom/OpenXcomExtended/build/CMakeFiles/CMakeError.log".

gcc Version is:_gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4

Is my GCC Version too old?
« Last Edit: February 06, 2023, 11:40:14 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9101
    • View Profile
Re: Problems when attempting to compile
« Reply #1 on: November 30, 2019, 09:47:41 am »
Is my GCC Version too old?

Yes, GCC with c++17 support is required.
I believe that is GCC 7.0 or higher.

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Problems when attempting to compile
« Reply #2 on: November 30, 2019, 10:19:45 am »
Yes, GCC with c++17 support is required.
I believe that is GCC 7.0 or higher.

Damn. I really need to get rid of this Ubuntu 14.10.

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: Problems when attempting to compile
« Reply #3 on: November 30, 2019, 06:04:25 pm »
Damn. I really need to get rid of this Ubuntu 14.10.

Not a bad idea. Unless you subscribed to ESM (Extended Security Maintenance) that distro has reached end of standard support in april this year. This should affect the amount of updates you get.