Open juhannc opened 3 years ago
Hello everyone,
I understand that macOS is currently not supported. Yet it is my main developing platform and I'm eager to get MATLAB Kortex working.
Now, the compilation does not succeed. Still, do you have an idea on how to start to get it working? Any help would be appreciated.
Heres my build log:
Hello everyone,
I understand that macOS is currently not supported. Yet it is my main developing platform and I'm eager to get MATLAB Kortex working.
Now, the compilation does not succeed. Still, do you have an idea on how to start to get it working? Any help would be appreciated.
Heres my build log:
spoiler
``` >> compileKortexMex Verbose mode is on. No MEX options file identified; looking for an implicit selection. ... Looking for compiler 'Xcode Clang++' ... ... Looking for environment variable 'DEVELOPER_DIR' ...No. ... Executing command 'xcode-select -print-path' ...Yes ('/Applications/Xcode.app/Contents/Developer'). ... Looking for folder '/Applications/Xcode.app/Contents/Developer' ...Yes. ... Executing command 'which xcrun' ...Yes ('/usr/bin/xcrun'). ... Looking for folder '/usr/bin' ...Yes. ... Executing command 'defaults read com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense' ...No. ... Executing command 'defaults read /Library/Preferences/com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense' ...Yes ('12.3'). ... Executing command ' agreed=12.3 if echo $agreed | grep -E '[\.\"]' >/dev/null; then lhs=`expr "$agreed" : '\([0-9]*\)[\.].*'` rhs=`expr "$agreed" : '[0-9]*[\.]\(.*\)$'` if echo $rhs | grep -E '[\."]' >/dev/null; then rhs=`expr "$rhs" : '\([0-9]*\)[\.].*'` fi if [ $lhs -gt 4 ] || ( [ $lhs -eq 4 ] && [ $rhs -ge 3 ] ); then echo $agreed else exit 1 fi fi' ...Yes ('12.3'). ... Executing command 'xcrun -sdk macosx --show-sdk-path' ...Yes ('/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk'). ... Executing command 'xcrun -sdk macosx --show-sdk-version | awk 'BEGIN {FS="."} ; {print $1"."$2}'' ...Yes ('11.1'). ... Executing command 'clang --version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]'|head -1' ...Yes ('12.0.0'). Found installed compiler 'Xcode Clang++'. Set INCLUDE = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/12.0.0/include;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks; Options file details ------------------------------------------------------------------- Compiler location: /Applications/Xcode.app/Contents/Developer Options file: /Applications/MATLAB_R2021a.app/bin/maci64/mexopts/clang++_maci64.xml CMDLINE200 : /usr/bin/xcrun -sdk macosx11.1 clang++ -Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=10.14 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -framework Cocoa -bundle -stdlib=libc++ -g -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/mexFunction.map" -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/c_exportsmexfileversion.map" -Wl,-U,_mexCreateMexFunction -Wl,-U,_mexDestroyMexFunction -Wl,-U,_mexFunctionAdapter -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/cppMexFunction.map" kortexApiMexInterface.o kortexApiWrapper.o proto_converter.o mexConverter.o cpp_mexapi_version.o -lSimplifiedApi -L/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/lib/Release -L"/Applications/MATLAB_R2021a.app/bin/maci64" -lmx -lmex -lmat -L"/Applications/MATLAB_R2021a.app/extern/bin/maci64" -lMatlabDataArray -lMatlabEngine -o kortexApiMexInterface.mexmaci64 CC : /usr/bin/xcrun -sdk macosx11.1 clang CXX : /usr/bin/xcrun -sdk macosx11.1 clang++ DEFINES : -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE MATLABMEX : -DMATLAB_MEX_FILE MACOSX_DEPLOYMENT_TARGET : 10.14 CFLAGS : -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk CXXFLAGS : -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ INCLUDE : -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" CXXOPTIMFLAGS : -O2 -fwrapv -DNDEBUG CXXDEBUGFLAGS : -g LD : /usr/bin/xcrun -sdk macosx11.1 clang LDXX : /usr/bin/xcrun -sdk macosx11.1 clang++ LDFLAGS : -Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=10.14 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -framework Cocoa -bundle -stdlib=libc++ LDBUNDLE : -bundle LINKEXPORT : -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/mexFunction.map" LINKEXPORTVER : -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/c_exportsmexfileversion.map" LINKEXPORTCPP : -Wl,-U,_mexCreateMexFunction -Wl,-U,_mexDestroyMexFunction -Wl,-U,_mexFunctionAdapter -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/cppMexFunction.map" LINKLIBS : -lSimplifiedApi -L/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/lib/Release -L"/Applications/MATLAB_R2021a.app/bin/maci64" -lmx -lmex -lmat -L"/Applications/MATLAB_R2021a.app/extern/bin/maci64" -lMatlabDataArray -lMatlabEngine LDOPTIMFLAGS : -O LDDEBUGFLAGS : -g OBJEXT : .o LDEXT : .mexmaci64 SETENV : CC="/usr/bin/xcrun -sdk macosx11.1 clang" CXX="/usr/bin/xcrun -sdk macosx11.1 clang++" CFLAGS="-fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE " CXXFLAGS="-fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE " COPTIMFLAGS="-O2 -fwrapv -DNDEBUG" CXXOPTIMFLAGS="-O2 -fwrapv -DNDEBUG" CDEBUGFLAGS="-g" CXXDEBUGFLAGS="-g" LD="/usr/bin/xcrun -sdk macosx11.1 clang" LDXX="/usr/bin/xcrun -sdk macosx11.1 clang++" LDFLAGS="-Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=10.14 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -framework Cocoa -bundle -stdlib=libc++ -lSimplifiedApi -L/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/lib/Release -L"/Applications/MATLAB_R2021a.app/bin/maci64" -lmx -lmex -lmat -L"/Applications/MATLAB_R2021a.app/extern/bin/maci64" -lMatlabDataArray -lMatlabEngine -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/mexFunction.map"" LDDEBUGFLAGS="-g" DEVELOPER_DIR_CHECK : XCODE_DIR : /Applications/Xcode.app/Contents/Developer XCRUN_DIR : /usr/bin XCODE_AGREED_VERSION : 12.3 ISYSROOT : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk SDKVER : 11.1 CLANG_VERSION : 12.0.0 MATLABROOT : /Applications/MATLAB_R2021a.app ARCH : maci64 SRC : "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/kortexApiMexInterface.cpp";"/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/kortexApiWrapper.cpp";"/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/proto_converter.cpp";"/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/mexConverter.cpp";"/Applications/MATLAB_R2021a.app/extern/version/cpp_mexapi_version.cpp" OBJ : kortexApiMexInterface.o;kortexApiWrapper.o;proto_converter.o;mexConverter.o;cpp_mexapi_version.o OBJS : kortexApiMexInterface.o kortexApiWrapper.o proto_converter.o mexConverter.o cpp_mexapi_version.o SRCROOT : /Users/johann/kortex/mex-wrapper/../mex-wrapper/src/kortexApiMexInterface DEF : /var/folders/93/lz70m4515f3flzmjd6mpj5n40000gn/T/mex_5204287111772_53153/kortexApiMexInterface.def EXP : "kortexApiMexInterface.exp" LIB : "kortexApiMexInterface.lib" EXE : kortexApiMexInterface.mexmaci64 ILK : "kortexApiMexInterface.ilk" MANIFEST : "kortexApiMexInterface.mexmaci64.manifest" TEMPNAME : kortexApiMexInterface EXEDIR : EXENAME : kortexApiMexInterface COMPFLAGS : OPTIM : -g LINKOPTIM : -g CMDLINE100_0 : /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/kortexApiMexInterface.cpp" -o kortexApiMexInterface.o CMDLINE100_1 : /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/kortexApiWrapper.cpp" -o kortexApiWrapper.o CMDLINE100_2 : /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/proto_converter.cpp" -o proto_converter.o CMDLINE100_3 : /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/mexConverter.cpp" -o mexConverter.o CMDLINE100_4 : /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Applications/MATLAB_R2021a.app/extern/version/cpp_mexapi_version.cpp" -o cpp_mexapi_version.o ------------------------------------------------------------------- Building with 'Xcode Clang++'. /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/kortexApiMexInterface.cpp" -o kortexApiMexInterface.o /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/kortexApiWrapper.cpp" -o kortexApiWrapper.o /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/proto_converter.cpp" -o proto_converter.o /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Users/johann/kortex/mex-wrapper/../mex-wrapper/src/mexConverter.cpp" -o mexConverter.o /usr/bin/xcrun -sdk macosx11.1 clang++ -c -D_OS_UNIX -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE -I"/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/client_stubs" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/common" -I"/Users/johann/kortex/mex-wrapper/../simplified_api/kortex_api/cpp/linux_gcc_x86-64/include/messages" -I"/Users/johann/kortex/mex-wrapper/../mex-wrapper/include" -I"/Applications/MATLAB_R2021a.app/extern/include" -I"/Applications/MATLAB_R2021a.app/simulink/include" -fno-common -arch x86_64 -mmacosx-version-min=10.14 -fexceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fobjc-arc -std=c++11 -stdlib=libc++ -g "/Applications/MATLAB_R2021a.app/extern/version/cpp_mexapi_version.cpp" -o cpp_mexapi_version.o /usr/bin/xcrun -sdk macosx11.1 clang++ -Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=10.14 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -framework Cocoa -bundle -stdlib=libc++ -g -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/mexFunction.map" -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/c_exportsmexfileversion.map" -Wl,-U,_mexCreateMexFunction -Wl,-U,_mexDestroyMexFunction -Wl,-U,_mexFunctionAdapter -Wl,-exported_symbols_list,"/Applications/MATLAB_R2021a.app/extern/lib/maci64/cppMexFunction.map" kortexApiMexInterface.o kortexApiWrapper.o proto_converter.o mexConverter.o cpp_mexapi_version.o -lSimplifiedApi -L/Users/johann/kortex/mex-wrapper/../simplified_api/install/package/lib/Release -L"/Applications/MATLAB_R2021a.app/bin/maci64" -lmx -lmex -lmat -L"/Applications/MATLAB_R2021a.app/extern/bin/maci64" -lMatlabDataArray -lMatlabEngine -o kortexApiMexInterface.mexmaci64 Error using mex ld: warning: ignoring file /Users/johann/kortex/simplified_api/install/package/lib/Release/libSimplifiedApi.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 ) Undefined symbols for architecture x86_64: "TrajectoryState::GetState()", referenced from: _kapi_GetMovementStatus in kortexApiWrapper.o "ArmBaseSimplifiedApi::GetTrajectoryManagerRef()", referenced from: _kapi_GetMovementStatus in kortexApiWrapper.o _kapi_GetLastError in kortexApiWrapper.o "ArmBaseSimplifiedApi::GetApiRef()", referenced from: _kapi_CreateRobotApisWrapper in kortexApiWrapper.o _kapi_InitVision in kortexApiWrapper.o _kapi_GetJointCount in kortexApiWrapper.o _kapi_RefreshFeedback in kortexApiWrapper.o _kapi_ReachCartesianPose in kortexApiWrapper.o _kapi_ReachJointAngles in kortexApiWrapper.o _kapi_SendJointSpeedCommand in kortexApiWrapper.o ... "ArmBaseSimplifiedApi::ArmBaseSimplifiedApi(std::__1::basic_string