On OS X I recently blew away my build dir to start over and ran into an issues on the trunk
I had the wrong QT path in my machine.cmake file but no error was tossed. That is because I had the right path in my PATH environment variable (I use Qt Designer). As such CMakeList.txt is able to find:
-- moc location: /Users/allen/Projects/VisIt/Thirdparty/trunk/third_party/qt/5.14.2/i386-apple-darwin20_clang/bin/moc
When compiling though the wrong path is used.
make[2]: No rule to make target /Users/allen/Projects/VisIt/Thirdparty/trunk/third_party/qt/**5.10.1**/i386-apple-darwin20_clang/bin/moc', needed bytools/dev/clipeditor/moc_Viewer.cxx'. Stop.
make[1]: [tools/dev/clipeditor/CMakeFiles/clipeditor.dir/all] Error 2
Note the version difference
As such, CMakeList.txt needs to look for the moc in the path specified in the machine.cmake path only.
To duplicate:
Put the the qt bin in your PATH
Put the wrong qt path in you machine.cmake file:
On OS X I recently blew away my build dir to start over and ran into an issues on the trunk
I had the wrong QT path in my machine.cmake file but no error was tossed. That is because I had the right path in my PATH environment variable (I use Qt Designer). As such CMakeList.txt is able to find:
-- moc location: /Users/allen/Projects/VisIt/Thirdparty/trunk/third_party/qt/5.14.2/i386-apple-darwin20_clang/bin/moc
When compiling though the wrong path is used.
make[2]: No rule to make target
/Users/allen/Projects/VisIt/Thirdparty/trunk/third_party/qt/**5.10.1**/i386-apple-darwin20_clang/bin/moc', needed by
tools/dev/clipeditor/moc_Viewer.cxx'. Stop. make[1]: [tools/dev/clipeditor/CMakeFiles/clipeditor.dir/all] Error 2Note the version difference
As such, CMakeList.txt needs to look for the moc in the path specified in the machine.cmake path only.
To duplicate:
Put the the qt bin in your PATH Put the wrong qt path in you machine.cmake file:
SETUP_APP_VERSION(QT 5.14.2) VISIT_OPTION_DEFAULT(VISIT_QT_DIR ${VISITHOME}/qt/${QT_VERSION}/${VISITARCH})
Create a new build dir.
cmake ../src
it will complete without an error.
make
will get a No rule to make target error.