alicevision / MeshroomMaya

Photomodeling plugin for Maya
http://alicevision.org
Mozilla Public License 2.0
140 stars 36 forks source link

Found unsuitable Qt version "5.6.1" - (macOS Maya2018) #196

Closed vvzen closed 5 years ago

vvzen commented 5 years ago

EDIT: I managed to fix this, see the second comment

Hi everyone! I'm trying to compile this plugin for maya 2018 on a mac.

I'm getting the _Could NOT find Maya (missing: MAYA_INCLUDEDIR) error. Here's a screenshot:

screen shot 2019-03-06 at 14 38 08

I suppose something in FindMaya.cmake didn't work properly. Can I specify the MAYA_INCLUDE_DIR manually? Any tips?

This is how I'm running the script currently (my launch_configure.sh):

export MAYA_BIN=/Applications/Autodesk/maya2018/Maya.app/Contents/bin/maya
export MAYA_QMAKE_PATH=/Applications/Autodesk/maya2018/Maya.app/Contents/bin/qmake
export INSTALL_DIRECTORY=/Users/admin/sandbox/baking-time/MeshroomMaya/build/final

./configure -DMAYA_EXECUTABLE=$MAYA_BIN -DQT_QMAKE_EXECUTABLE=$MAYA_QMAKE_PATH -DCMAKE_INSTALL_PREFIX=$INSTALL_DIRECTORY -DCMAKE_BUILD_TYPE=release

Thanks!

vvzen commented 5 years ago

Ok, I found that if I set export MAYA_BIN=/Applications/Autodesk/maya2018 I don't get the error anymore. I was thinking that the MAYA_BIN folder should point to maya binary instead it should just point to the main Maya directory.

But now I'm getting another error (maybe it's better if I open a new issue?). It's related to the Qt version.

Make Error at /usr/local/Cellar/cmake/3.13.1/share/cmake/Modules/FindQt4.cmake:1313 (message):
  Found unsuitable Qt version "5.6.1" from
  /Applications/Autodesk/maya2018/Maya.app/Contents/bin/qmake, this code
  requires Qt 4.x
screen shot 2019-03-06 at 14 53 22

PS: I've also switched to the master branch but I don't think it's related

vvzen commented 5 years ago

..is this project still alive?

fabiencastan commented 5 years ago

Yes, it is. The error is related to an old version of the code, so you should try to update the latest develop branch. Here in the code: https://github.com/alicevision/MeshroomMaya/blob/develop/src/CMakeLists.txt#L35 We use AliceVision, Maya, Qt5, so the issue is outdated.

If you still have errors, you can open a new issue with the log message.