Skip to content

Compilation Error: fatal error: 'mex.hpp' file not found #3

@exAClior

Description

@exAClior

I am trying to compile the library on an Apple Silicon machine.

I follow the following instruction with only modification of

if (APPLE)
	set(CMAKE_CXX_COMPILER "/usr/bin/g++")
elseif (UNIX)
	set(CMAKE_CXX_COMPILER "/usr/bin/g++-12")
endif ()
git clone --recursive https://github.com/ajpgarner/moment.git
cd moment
cmake . -DCMAKE_BUILD_TYPE=Release
cmake --build .

and I get the following error

/Users/exaclior/projects/moment/cpp/mex_functions/errors.cpp:9:10: fatal error: 'mex.hpp' file not found
    9 | #include "mex.hpp"
      |          ^~~~~~~~~
1 error generated.
gmake[2]: *** [cpp/mex_functions/CMakeFiles/moment_mex.dir/build.make:93: cpp/mex_functions/CMakeFiles/moment_mex.dir/errors.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:577: cpp/mex_functions/CMakeFiles/moment_mex.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions