Giter Site home page Giter Site logo

Comments (4)

sergiud avatar sergiud commented on June 9, 2024 1

You need to run CMake in the MINGW64 / MSYS2 shell not MSYS / MSYS2. You may need to install the mingw-w64-x86_64-cmake package. See our MinGW github action for reference:

mingw-w64-${{matrix.env}}-cmake
mingw-w64-${{matrix.env}}-gcc
mingw-w64-${{matrix.env}}-gflags
mingw-w64-${{matrix.env}}-ninja
mingw-w64-${{matrix.env}}-python-jinja
mingw-w64-${{matrix.env}}-python-lxml
mingw-w64-${{matrix.env}}-python-pip
mingw-w64-${{matrix.env}}-python-pygments

from glog.

sergiud avatar sergiud commented on June 9, 2024

Could you please provide the full output of cmake --build build --verbose?

from glog.

aiaimimi0920 avatar aiaimimi0920 commented on June 9, 2024

This is the complete output

$ cmake --build build --verbose
Change Dir: '/c/Users/xxx/Documents/glog/build'

Run Build Command(s): /usr/bin/cmake.exe -E env VERBOSE=1 /usr/bin/make.exe -f Makefile
/usr/bin/cmake.exe -S/c/Users/xxx/Documents/glog -B/c/Users/xxx/Documents/glog/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake.exe -E cmake_progress_start /c/Users/xxx/Documents/glog/build/CMakeFiles /c/Users/xxx/Documents/glog/build//CMakeFiles/progress.marks
/usr/bin/make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/c/Users/xxx/Documents/glog/build'
/usr/bin/make  -f CMakeFiles/glog_internal.dir/build.make CMakeFiles/glog_internal.dir/depend
make[2]: Entering directory '/c/Users/xxx/Documents/glog/build'
cd /c/Users/xxx/Documents/glog/build && /usr/bin/cmake.exe -E cmake_depends "Unix Makefiles" /c/Users/xxx/Documents/glog /c/Users/xxx/Documents/glog /c/Users/xxx/Documents/glog/build /c/Users/xxx/Documents/glog/build /c/Users/xxx/Documents/glog/build/CMakeFiles/glog_internal.dir/DependInfo.cmake "--color="
make[2]: Leaving directory '/c/Users/xxx/Documents/glog/build'
/usr/bin/make  -f CMakeFiles/glog_internal.dir/build.make CMakeFiles/glog_internal.dir/build
make[2]: Entering directory '/c/Users/xxx/Documents/glog/build'
[  3%] Building CXX object CMakeFiles/glog_internal.dir/src/demangle.cc.obj
/mingw64/bin/CC.exe -DGFLAGS_IS_A_DLL=0 -DGLOG_NO_SYMBOLIZE_DETECTION -DGLOG_USE_GFLAGS -DGLOG_USE_GLOG_EXPORT -DGOOGLE_GLOG_IS_A_DLL -I/c/Users/xxx/Documents/glog/src -I/c/Users/xxx/Documents/glog/build -I/usr/local/include -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/glog_internal.dir/src/demangle.cc.obj -MF CMakeFiles/glog_internal.dir/src/demangle.cc.obj.d -o CMakeFiles/glog_internal.dir/src/demangle.cc.obj -c /c/Users/xxx/Documents/glog/src/demangle.cc
In file included from C:/Users/xxx/Documents/glog/src/demangle.cc:44:
C:/Users/xxx/Documents/glog/src/utilities.h:61:12: fatal error: port.h: No such file or directory
   61 | #  include "port.h"
      |            ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/glog_internal.dir/build.make:76: CMakeFiles/glog_internal.dir/src/demangle.cc.obj] Error 1
make[2]: Leaving directory '/c/Users/xxx/Documents/glog/build'
make[1]: *** [CMakeFiles/Makefile2:861: CMakeFiles/glog_internal.dir/all] Error 2
make[1]: Leaving directory '/c/Users/xxx/Documents/glog/build'
make: *** [Makefile:166: all] Error 2

from glog.

aiaimimi0920 avatar aiaimimi0920 commented on June 9, 2024

Thanks for your guidance, it helps a lot.

I am indeed using MINGW64/MSYS2. It should be caused by not installing the software package mingw-w64-x86_64-cmake. Because I did not encounter this problem when compiling other projects normally, I did not take it into consideration.

All in all, thank you very much

from glog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.