Installation Issues

Hello there,

I am currently trying to install acados on a computer at the university. Unfortunately, when I run the cmake command, I get the following error messages. Do you have any idea what this could be?

I have added the environment variables as specified (cmake and mingw).

Setup
Matlab r2017b with minGW 5.3.0
cmake 3.19.8
All commands run as admin

I am looking forward to your answer and remain with kind regards
Björn

PS C:\Acados\build> cmake.exe -G "MinGW Makefiles" -DACADOS_INSTALL_DIR="$ACADOS_INSTALL_DIR" -DBUILD_SHARED_LIBS=OFF -DACADOS_WITH_OSQP=ON ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/gcc.exe
-- Check for working C compiler: C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/gcc.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/g++.exe
-- Check for working CXX compiler: C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/g++.exe - works
-- Build type is Release
-- ACADOS_WITH_OPENMP: OFF

CMAKE Error File

Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC".

The C compiler identification could not be found in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC/CMakeCCompilerId.o"

Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC".

Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC".

Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC".

Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC".

The C compiler identification could not be found in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC/CMakeCCompilerId.o"

Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC".

Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC".

Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdC".

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc.exe: fatal error: no input files
compilation terminated.
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc.exe: fatal error: no input files
compilation terminated.
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdCXX".

The CXX compiler identification could not be found in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdCXX/CMakeCXXCompilerId.o"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/g++.exe 
Build flags: 
Id flags: --c++ 

The output was:
1
g++.exe: error: unrecognized command line option '--c++'


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/g++.exe 
Build flags: 
Id flags: --ec++ 

The output was:
1
g++.exe: error: unrecognized command line option '--ec++'


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdCXX".

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdCXX".

The CXX compiler identification could not be found in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdCXX/CMakeCXXCompilerId.o"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/g++.exe 
Build flags: 
Id flags: --c++ 

The output was:
1
g++.exe: error: unrecognized command line option '--c++'


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/g++.exe 
Build flags: 
Id flags: --ec++ 

The output was:
1
g++.exe: error: unrecognized command line option '--ec++'


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" did not produce an executable in "C:/Acados/build/CMakeFiles/3.19.8/CompilerIdCXX".

Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
g++.exe: fatal error: no input files
compilation terminated.
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
g++.exe: fatal error: no input files
compilation terminated.
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: C:/Acados/build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/mingw32-make.exe cmTC_01aa6/fast && C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/mingw32-make.exe  -f CMakeFiles\cmTC_01aa6.dir\build.make CMakeFiles/cmTC_01aa6.dir/build

mingw32-make.exe[1]: Entering directory 'C:/Acados/build/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_01aa6.dir/CMakeCCompilerABI.c.obj

C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\gcc.exe    -o CMakeFiles\cmTC_01aa6.dir\CMakeCCompilerABI.c.obj -c "C:\Program Files\CMake\share\cmake-3.19\Modules\CMakeCCompilerABI.c"

Linking C executable cmTC_01aa6.exe

"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_01aa6.dir\link.txt --verbose=1

C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\gcc.exe CMakeFiles/cmTC_01aa6.dir/CMakeCCompilerABI.c.obj -o cmTC_01aa6.exe 
mingw32-make.exe[1]: Leaving directory 'C:/Acados/build/CMakeFiles/CMakeTmp'



Cannot copy output executable
  ''
to destination specified by COPY_FILE:
  'C:/Acados/build/CMakeFiles/3.19.8/CMakeDetermineCompilerABI_C.bin'
Unable to find the executable at any of:
  C:/Acados/build/CMakeFiles/CMakeTmp/cmTC_01aa6.exe
  C:/Acados/build/CMakeFiles/CMakeTmp/Debug/cmTC_01aa6.exe
  C:/Acados/build/CMakeFiles/CMakeTmp/Development/cmTC_01aa6.exe


Detecting CXX compiler ABI info failed to compile with the following output:
Change Dir: C:/Acados/build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/mingw32-make.exe cmTC_2b70a/fast && C:/ProgramData/MATLAB/SupportPackages/R2017b/3P.instrset/mingw_w64.instrset/bin/mingw32-make.exe  -f CMakeFiles\cmTC_2b70a.dir\build.make CMakeFiles/cmTC_2b70a.dir/build

mingw32-make.exe[1]: Entering directory 'C:/Acados/build/CMakeFiles/CMakeTmp'

Building CXX object CMakeFiles/cmTC_2b70a.dir/CMakeCXXCompilerABI.cpp.obj

C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++.exe    -o CMakeFiles\cmTC_2b70a.dir\CMakeCXXCompilerABI.cpp.obj -c "C:\Program Files\CMake\share\cmake-3.19\Modules\CMakeCXXCompilerABI.cpp"

Linking CXX executable cmTC_2b70a.exe

"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_2b70a.dir\link.txt --verbose=1

C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++.exe CMakeFiles/cmTC_2b70a.dir/CMakeCXXCompilerABI.cpp.obj -o cmTC_2b70a.exe 
mingw32-make.exe[1]: Leaving directory 'C:/Acados/build/CMakeFiles/CMakeTmp'



Cannot copy output executable
  ''
to destination specified by COPY_FILE:
  'C:/Acados/build/CMakeFiles/3.19.8/CMakeDetermineCompilerABI_CXX.bin'
Unable to find the executable at any of:
  C:/Acados/build/CMakeFiles/CMakeTmp/cmTC_2b70a.exe
  C:/Acados/build/CMakeFiles/CMakeTmp/Debug/cmTC_2b70a.exe
  C:/Acados/build/CMakeFiles/CMakeTmp/Development/cmTC_2b70a.exe

Hi Björn,

I never saw this error.
Just to rule that out, could it be that you don’t have enough rights on that computer?
I remember there were some issues with machines from your university.

Best,
Jonathan

Hello all,

finally I have fixed the problem. Following are the steps that helped me:

  1. get mingw as a standalone exe from sourceforge (mingw-w64-install.exe). Make sure you have the 64 bit version.
  2. install mingw (I took the same gcc version that was installed by matlab). You can get the version in matlab with the following command.

cc = mex.getCompilerConfigurations

  1. don’t forget to define the compiler bin path in the PATH variable. I put it at the beginning of the list.
  2. restart your system
  3. start the cmake compilation again. It may be necessary to delete every other compiler path in the PATH variable. If you delete the other compiler paths, remember to add them again before using acadoso.

With kind regards
Björn

–closed–

1 Like