alicevision / MeshroomMaya

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

MayaConfig.cmake not found #194

Open RDelet opened 6 years ago

RDelet commented 6 years ago

Hello,

I try to build this project on Windows. I install MinGW for use makefile but I have an error

Could not find a package configuration file provided by "Maya" with any of the following names:

MayaConfig.cmake
maya-config.cmake

Anyone know how to find this file ?

simogasp commented 6 years ago

When using cmake you should give the path to the maya.exe inside this variable MAYA_EXECUTABLE. if you are using the command line

cmake -DMAYA_EXECUTABLE:PATH=/path/to/maya.exe

otherwise from the cmake gui you should create the variable MAYA_EXECUTABLE and paste the path

RDelet commented 6 years ago

This is my command

mingw32-make configure -DMAYA_EXECUTABLE:PATH="C:\Program Files\Autodesk\Maya2018\bin\maya.exe" -DQT_QMAKE_EXECUTABLEPATH="C:\Program Files\Autodesk\Maya2018\bin\qmake.exe" -DCMAKE_INSTALL_PREFIXPATH="D:\Work\Photogrammetrie\Soft\MeshroomMaya\build" -DCMAKE_BUILD_TYPE=release

And the command shelf error

C:\MinGW\bin\mingw32-make: invalid option -- M C:\MinGW\bin\mingw32-make: invalid option -- A C:\MinGW\bin\mingw32-make: invalid option -- Y C:\MinGW\bin\mingw32-make: invalid option -- A C:\MinGW\bin\mingw32-make: invalid option -- C:\MinGW\bin\mingw32-make: invalid option -- E C:\MinGW\bin\mingw32-make: invalid option -- X C:\MinGW\bin\mingw32-make: invalid option -- E C:\MinGW\bin\mingw32-make: invalid option -- Q C:\MinGW\bin\mingw32-make: invalid option -- T C:\MinGW\bin\mingw32-make: invalid option -- C:\MinGW\bin\mingw32-make: invalid option -- Q C:\MinGW\bin\mingw32-make: invalid option -- M C:\MinGW\bin\mingw32-make: invalid option -- A C:\MinGW\bin\mingw32-make: invalid option -- K C:\MinGW\bin\mingw32-make: invalid option -- E C:\MinGW\bin\mingw32-make: invalid option -- _ C:\MinGW\bin\mingw32-make: invalid option -- E C:\MinGW\bin\mingw32-make: invalid option -- X C:\MinGW\bin\mingw32-make: invalid option -- E Usage: mingw32-make [options] [target] ... Options: -b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY Change to DIRECTORY before doing anything. -d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides Environment variables override makefiles. --eval=STRING Evaluate STRING as a makefile statement. -f FILE, --file=FILE, --makefile=FILE Read FILE as a makefile. -h, --help Print this message and exit. -i, --ignore-errors Ignore errors from recipes. -I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles. -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. -k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N] Don't start multiple jobs unless load is below N. -L, --check-symlink-times Use the latest mtime between symlinks and target. -n, --just-print, --dry-run, --recon Don't actually run any recipe; just print them. -o FILE, --old-file=FILE, --assume-old=FILE Consider FILE to be very old and don't remake it. -p, --print-data-base Print make's internal database. -q, --question Run no recipe; exit status says if up to date. -r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. -s, --silent, --quiet Don't echo recipes. -S, --no-keep-going, --stop Turns off -k. -t, --touch Touch targets instead of remaking them. --trace Print tracing information. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when an undefined variable is referenced.

This program built for i686-pc-mingw32 Report bugs to bug-make@gnu.org

simogasp commented 6 years ago

I think you have to use Visual Studio to build the plugin (@fabiencastan ) You can do at command line using cmake and adding -G "Visual Studio 14 2015 Win64" and replacing it with the visual studio version you have on your computer (see here https://cmake.org/cmake/help/v3.12/manual/cmake-generators.7.html#visual-studio-generators) Otherwise you can achieve the same using the cmake gui specifying the same option.

RDelet commented 6 years ago

I don't have any file in cmake folder. I juste have CMakeFiles directory and CMakeCache.txt in build directory. I work with VisualStudio 2015

RDelet commented 5 years ago

I arrive to launch a cmake now but I have cmake error? Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "D:/Work/Photogrammetrie/Soft/MeshroomMaya/build/CMakeFiles/3.12.1/CompilerIdC". this error it's when I launche in command line. With CMakeUI I have other error. He didn't find AliceVision. I try to add path in CMakeUI or in command line but He didn't works.

EDIT: My command line

d:
cd work/photogrammetrie/soft
git clone https://github.com/alicevision/MeshroomMaya.git
cd meshroommaya
git submodule update --init --recursive
mkdir build && cd build
set MAYA_EXE="C:/Program Files/Autodesk/Maya2018/bin/maya.exe"
set MAYA_QMAKE="C:/Program Files/Autodesk/Maya2018/bin/qmake.exe"
set ALICE_DIR="D:/Work/Photogrammetrie/Soft/AliceVision"
cmake ../src -DAliceVision_DIR=%ALICE_DIR% -DMAYA_EXECUTABLE=%MAYA_EXE% -DQT_QMAKE_EXECUTABLE=%MAYA_QMAKE% -DCMAKE_BUILD_TYPE=release