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

Core Solver - Fix use of MStringArray.indexOf() for compilation with Maya 2016 #124

Closed
david-cattermole opened this issue Sep 16, 2019 · 1 comment
Assignees
Labels
bug core solver Related to the low-level solver functions.
Milestone

Comments

@david-cattermole
Copy link
Owner

Problem

My implementation for #102 has caused compilation problems on Maya 2016, due to the lack of function MStringArray.indexOf(MString).

This must be fixed before release of v0.3.0

This is an example of the error:

[ 55%] Building CXX object CMakeFiles/mmSolver.dir/src/core/bundleAdjust_solveFunc.cpp.obj
bundleAdjust_solveFunc.cpp
C:\Users\user\dev\mayaMatchMoveSolver_windows\src\core\bundleAdjust_solveFunc.cpp(105) : error C2039: 'indexOf' : is not a member of 'MStringArray'
        C:\PROGRA~1\Autodesk\Maya2016\include\maya/MStringArray.h(67) : see declaration of 'MStringArray'
C:\Users\user\dev\mayaMatchMoveSolver_windows\src\core\bundleAdjust_solveFunc.cpp(113) : error C2039: 'indexOf' : is not a member of 'MStringArray'
        C:\PROGRA~1\Autodesk\Maya2016\include\maya/MStringArray.h(67) : see declaration of 'MStringArray'
C:\Users\user\dev\mayaMatchMoveSolver_windows\src\core\bundleAdjust_solveFunc.cpp(117) : error C2039: 'indexOf' : is not a member of 'MStringArray'
        C:\PROGRA~1\Autodesk\Maya2016\include\maya/MStringArray.h(67) : see declaration of 'MStringArray'
C:\Users\user\dev\mayaMatchMoveSolver_windows\src\core\bundleAdjust_solveFunc.cpp(124) : error C2039: 'indexOf' : is not a member of 'MStringArray'
        C:\PROGRA~1\Autodesk\Maya2016\include\maya/MStringArray.h(67) : see declaration of 'MStringArray'
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\X86_AM~1\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Software Versions

Latest "master" branch, or "tools_issue57" branch.

@david-cattermole david-cattermole added bug core solver Related to the low-level solver functions. labels Sep 16, 2019
@david-cattermole david-cattermole added this to the v0.3.0 milestone Sep 16, 2019
@david-cattermole david-cattermole self-assigned this Sep 16, 2019
@david-cattermole
Copy link
Owner Author

This issue is fixed in commit 58d5163 and will be merged into the master branch along with issue #57 and #72.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug core solver Related to the low-level solver functions.
Projects
None yet
Development

No branches or pull requests

1 participant