Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing qpOASES_e MATLAB interface #144

Open
eliasp525 opened this issue Oct 29, 2023 · 0 comments
Open

Error installing qpOASES_e MATLAB interface #144

eliasp525 opened this issue Oct 29, 2023 · 0 comments

Comments

@eliasp525
Copy link

eliasp525 commented Oct 29, 2023

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.

@eliasp525 eliasp525 changed the title Errors installing MATLAB interface Error installing qpOASES_e MATLAB interface Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant