Skip to content

How to build this project under msys2/mingw64 #43

@asmwarrior

Description

@asmwarrior

Hi, I have clone both the common and cppparser code repo, and put them in the same directory /g/code-temp/parser.

Now, here is the build log I use:

abc@mypc MINGW64 /g/code-temp/parser/cppparser/builds
# cmake .. -G "MinGW Makefiles"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: F:/msys2/mingw64/bin/cc.exe - 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: F:/msys2/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at G:/code-temp/parser/common/third_party/boost_tp/cmake/CMakeLists.txt:1
(cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Found 'flex' as G:/code-temp/parser/cppparser/cppparser/third_party/flex_tp/flex.exe
Markdown-pp NOT FOUND: README cannot be updated.
-- Configuring done (2.2s)
-- Generating done (0.3s)
-- Build files have been written to: G:/code-temp/parser/cppparser/builds

abc@mypc MINGW64 /g/code-temp/parser/cppparser/builds
# mingw32-make
[  1%] Building CXX object cppast/CMakeFiles/cppast.dir/src/cpp_attribute_specifier_sequence_contain
er.cpp.obj
G:/code-temp/parser/cppparser/cppast/src/cpp_attribute_specifier_sequence_container.cpp:4:10: error:
 'cppast/cpp_attribute_specifier_sequence_container.h' file not found [clang-diagnostic-error]
    4 | #include "cppast/cpp_attribute_specifier_sequence_container.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Error while processing G:/code-temp/parser/cppparser/cppast/src/cpp_attribute_specifier_sequence_con
tainer.cpp.
Found compiler error(s).
mingw32-make[2]: *** [cppast\CMakeFiles\cppast.dir\build.make:79: cppast/CMakeFiles/cppast.dir/src/c
pp_attribute_specifier_sequence_container.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:256: cppast/CMakeFiles/cppast.dir/all] Error 2
mingw32-make: *** [Makefile:145: all] Error 2

Any ideas?

I'm using the msys2's mingw64 platform, see here: MSYS2

Thanks.

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