coin-or / qpOASES

Open-source C++ implementation of the recently proposed online active set strategy
GNU Lesser General Public License v2.1
360 stars 121 forks source link

Error installing qpOASES_e MATLAB interface #144

Open eliasp525 opened 8 months ago

eliasp525 commented 8 months ago

Hi,

I am having trouble installing qpOASES_e for MATLAB. I am trying to do a benchmark of different QP solvers for MPC and I want them all to be implemented in C.

I get the following output after I run make in qpOASES-qpOASES_e\releases\3.1.2\interfaces\matlab:

>> make

qpOASES -- An Implementation of the Online Active Set Strategy.
Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
Christian Kirches et al. All rights reserved.

qpOASES is distributed under the terms of the
GNU Lesser General Public License 2.1 in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.

Building with 'MinGW64 Compiler (C)'.
Error using mex
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\c_mexapi_version.obj:c_mexapi_version.c:(.text+0x0): multiple definition of `_Exit'
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\qpOASES_e.obj:qpOASES_e.c:(.text+0x360): first defined here
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\c_mexapi_version.obj:c_mexapi_version.c:(.text+0x10): multiple definition of `llabs'
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\qpOASES_e.obj:qpOASES_e.c:(.text+0x370): first defined here
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\c_mexapi_version.obj:c_mexapi_version.c:(.text+0x30): multiple definition of `atoll'
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\qpOASES_e.obj:qpOASES_e.c:(.text+0x390): first defined here
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\c_mexapi_version.obj:c_mexapi_version.c:(.text+0x40): multiple definition of `lltoa'
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\qpOASES_e.obj:qpOASES_e.c:(.text+0x3a0): first defined here
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\c_mexapi_version.obj:c_mexapi_version.c:(.text+0x50): multiple definition of `ulltoa'
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\qpOASES_e.obj:qpOASES_e.c:(.text+0x3b0): first defined here
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\c_mexapi_version.obj:c_mexapi_version.c:(.text+0x60): multiple definition of `wtoll'
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\qpOASES_e.obj:qpOASES_e.c:(.text+0x3c0): first defined here
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\c_mexapi_version.obj:c_mexapi_version.c:(.text+0x70): multiple definition of `lltow'
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\qpOASES_e.obj:qpOASES_e.c:(.text+0x3d0): first defined here
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\c_mexapi_version.obj:c_mexapi_version.c:(.text+0x80): multiple definition of `ulltow'
C:\Users\asder\AppData\Local\Temp\mex_590856985632133_20328\qpOASES_e.obj:qpOASES_e.c:(.text+0x3e0): first defined here
collect2.exe: error: ld returned 1 exit status

Error in make (line 115)
            eval( cmd );

Any ideas on how to fix this? I have already installed the standard C++ interface and it works fine.