Open hurak opened 1 year ago
Debugging mac build is a bit tough for me, since I don't have one. As a first step I included a new GitHub action for mac-build (see f7c974160a8a0f14f6ecbf5cb105c0d3517bf9fb). Unfortunately it passed, so I am getting no new insights.
What I do see is that OSQP built a shared library
[ 84%] Linking C shared library out/libosqp.dylib
whereas we are looking for the .so
extension
cp: /Users/hurak/Documents/tmp/LCQPow/build/external/src/osqp-build/out/libosqp.so: No such file or directory
I updated this part in the build process: now all libraries are copied. Please checkout the branch mac-build
and try again.
Now with the mac-build
branch it fails even earlier – with qpoasis
:
➜ LCQPow git:(mac-build) mkdir build
➜ LCQPow git:(mac-build) cd build
➜ build git:(mac-build) cmake ..
-- The CXX compiler identification is AppleClang 15.0.0.15000040
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_BUILD_TYPE Release
EXAMPLES ON
BUILD_MATLAB_INTERFACE ON
BUILD_PYTHON_INTERFACE ON
UNIT_TESTS ON
PROFILING OFF
QPOASES_SCHUR OFF
-- Found Matlab: /Applications/MATLAB_R2023a.app/extern/include (found version "9.14")
-- Performing Test HAS_MINUS_PTHREAD
-- Performing Test HAS_MINUS_PTHREAD - Success
CMake Deprecation Warning at external/pybind11/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- pybind11 v2.9.0 dev1
CMake Warning (dev) at external/pybind11/tools/FindPythonLibsNew.cmake:98 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
external/pybind11/tools/pybind11Tools.cmake:50 (find_package)
external/pybind11/tools/pybind11Common.cmake:206 (include)
external/pybind11/CMakeLists.txt:200 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: /opt/homebrew/bin/python3.11 (found version "3.11.5")
-- Found PythonLibs: /opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/lib/libpython3.11.dylib
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Configuring done (2.3s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/hurak/Documents/tmp/LCQPow/build
➜ build git:(mac-build) make
[ 1%] Creating directories for 'qpoases'
[ 2%] Performing download step for 'qpoases'
[ 3%] No update step for 'qpoases'
[ 5%] No patch step for 'qpoases'
[ 6%] Performing configure step for 'qpoases'
[ 7%] Performing build step for 'qpoases'
Creating /Users/hurak/Documents/tmp/LCQPow/build/external/src/qpoases/src/LAPACKReplacement.o
Creating /Users/hurak/Documents/tmp/LCQPow/build/external/src/qpoases/src/BLASReplacement.o
Creating SQProblem.o
Creating QProblem.o
Creating QProblemB.o
Creating SQProblemSchur.o
Creating Bounds.o
Creating Constraints.o
Creating SubjectTo.o
Creating Indexlist.o
Creating Flipper.o
Creating Utils.o
Creating Options.o
Creating Matrices.o
Creating MessageHandling.o
Creating SparseSolver.o
Creating SolutionAnalysis.o
Creating OQPinterface.o
Creating static lib /Users/hurak/Documents/tmp/LCQPow/build/external/src/qpoases/bin/libqpOASES.a
ar: creating archive /Users/hurak/Documents/tmp/LCQPow/build/external/src/qpoases/bin/libqpOASES.a
Creating shared lib /Users/hurak/Documents/tmp/LCQPow/build/external/src/qpoases/bin/libqpOASES.so
[ 8%] Performing install step for 'qpoases'
cp: /Users/hurak/Documents/tmp/LCQPow/build/external/src/qpoases/bin/libqpOASES.*: No such file or directory
make[2]: *** [external/src/qpoases-stamp/qpoases-install] Error 1
make[1]: *** [CMakeFiles/qpoases.dir/all] Error 2
make: *** [all] Error 2
Hi, I am failing to compile on MacBook Air M2. Below is the complete listing from the command line. The error message (displayed at the very end of the listing) is
which suggests that compilation of OSQP failed. Any idea what to do next?
By the way, when compiling OSQP from sources following their instructions on https://osqp.org/docs/get_started/sources.html, I encounter no problems.