% cmake ../src -G Xcode -DBUILD_OPNAV=ON
CMake Error: The source directory "/Users/enrique/src" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
% cmake ../src -G Xcode -DBUILD_OPNAV=ON
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/enrique/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - 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: /Users/enrique/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /Users/enrique/basilisk/.venv/bin/python3 (found suitable version "3.8.9", minimum required is "3")
CMake Error at /usr/local/Cellar/cmake/3.22.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
(Required is at least version "3")
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.22.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.22.0/share/cmake/Modules/FindPythonLibs.cmake:310 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:380 (find_package)
-- Configuring incomplete, errors occurred!
See also "/Users/enrique/basilisk/dist3/CMakeFiles/CMakeOutput.log".
% cmake ../src -G Xcode -DBUILD_OPNAV=ON \
-DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
But then it failed because it couldn't find SWIG:
CMake Error at /usr/local/Cellar/cmake/3.22.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
I guess I could try a similar solution than the one used with PYTHON_LIBRARY and PYTHON_INCLUDE_DIRS, but there's something going on with cmake not being able to find things that is puzzling me.
I would really appreciate some help with this. If there is any context information that is missing to diagnose the problem please let me know.
Thank you very much,
Enrique