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

Building error with MacOS with Maya2022 #162

Open
lobenichou opened this issue Jun 18, 2021 · 4 comments
Open

Building error with MacOS with Maya2022 #162

lobenichou opened this issue Jun 18, 2021 · 4 comments

Comments

@lobenichou
Copy link

Hey there,

Running into this build error. Looks like this might have to do with devkit but I thought the install wasn't needed anymore. I ran ./osx_create_project.sh MAYA_VERSION with MAYA_VERSION being 2022. Any idea what's going on?

Running MacOS Catalina 10.15.7

-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Maya (missing: MAYA_INCLUDE_DIR MAYA_LIBRARIES)
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  modules/FindMaya.cmake:62 (find_package_handle_standard_args)
  CMakeLists.txt:11 (find_package)
@ziriax
Copy link
Contributor

ziriax commented Jun 18, 2021

I don't have a Mac nearby now, so it's hard for me to help right away.

You might still have to install the devkit?

https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2022/Autodesk_Maya_2022_DEVKIT_Mac.dmg

@lobenichou
Copy link
Author

Ok so I did that and just an FYI, it looks like the instructions for installation have changed and that may influence the build on Mac.

From the DevKit 2022 README:

Once you've installed cmake, download and install the Maya dev kit to a directory of your choice. Make sure **not** to install the Dev Kit to your Maya installation directory (e.g.,  `C:\"Program Files"\Autodesk\Maya<version>`).

Lastly, create the environment variable `DEVKIT_LOCATION` and set it to the `devkitBase` subdirectory. To build devkit application examples in Linux, create the environment variable `MAYA_LOCATION` and set it to where Maya is installed (default location:  `/usr/autodesk/maya<version>`)

The FindMaya.cmake file currently looks for devkit within the Maya installation directory, unless I am not reading this correctly:

# Maya include directory
find_path(MAYA_INCLUDE_DIR maya/MFn.h
  PATHS
    ${MAYA_LOCATION}
    $ENV{MAYA_LOCATION}
  PATH_SUFFIXES
    "include/"
    "devkit/include/"
  DOC "Maya include path"
)

@lobenichou
Copy link
Author

I made it work by following the readme instructions in the devkit folder and changing the lines above to:

# Maya include directory
find_path(MAYA_INCLUDE_DIR maya/MFn.h
  PATHS
    ${DEVKIT_LOCATION}
    $ENV{DEVKIT_LOCATION}
  PATH_SUFFIXES
    "include/"
    "devkit/include/"
  DOC "Maya include path"
)

@ziriax
Copy link
Contributor

ziriax commented Oct 28, 2021

I tried this on a Mac recently and I didn't have to install any devkit at all, it just all worked out of the box?

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

2 participants